-
Notifications
You must be signed in to change notification settings - Fork 96
Create semver package #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
194345d
Create semver package
tlaferriere d38813d
Rename VersionInfo to Version to close #305
tlaferriere e1b3851
Doc: Create new section of semver2 vs. semver3
tomschr 37c9e3b
Improve API documentation
tomschr 5e5dd98
Distinguish between changlog for version 2 and 3
tomschr 30a5568
Document migration from semver2 to semver3
tomschr 8711494
Correct black and docformatter issues
tomschr fa7b440
Update changelog.d/169.feature.rst
tlaferriere 7838196
Update docs/coerce.py
tlaferriere 0b60d15
Fix Travis error in doctests
tomschr 4ef918d
Support PEP-561 py.typed
tomschr 89df81e
Add and improve docstrings
tomschr 18b9cf9
Improve API documentation (second attempt)
tomschr 551eb3c
Doc: Add semver version in footer
tomschr 80f0d24
Add semver.__about__ to API doc
tomschr 3c636f3
Fix formatting
tomschr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,7 +259,8 @@ fabric.properties | |
# -------- | ||
|
||
|
||
|
||
# Patch/Diff Files | ||
*.patch | ||
*.diff | ||
docs/_api | ||
!docs/_api/semver.__about__.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,323 +102,6 @@ Trivial/Internal Changes | |
* :pr:`290`: Add supported Python versions to :command:`black`. | ||
|
||
|
||
|
||
---- | ||
|
||
|
||
Version 2.13.0 | ||
============== | ||
|
||
:Released: 2020-10-20 | ||
:Maintainer: Tom Schraitle | ||
|
||
|
||
Features | ||
-------- | ||
|
||
* :pr:`287`: Document how to create subclass from ``VersionInfo`` | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :pr:`283`: Ensure equal versions have equal hashes. | ||
Version equality means for semver, that ``major``, | ||
``minor``, ``patch``, and ``prerelease`` parts are | ||
equal in both versions you compare. The ``build`` part | ||
is ignored. | ||
|
||
|
||
Additions | ||
--------- | ||
|
||
n/a | ||
|
||
|
||
Deprecations | ||
------------ | ||
|
||
n/a | ||
|
||
|
||
---- | ||
|
||
|
||
Version 2.12.0 | ||
============== | ||
|
||
:Released: 2020-10-19 | ||
:Maintainer: Tom Schraitle | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`291` (:pr:`292`): Disallow negative numbers of | ||
``major``, ``minor``, and ``patch`` for :class:`semver.VersionInfo` | ||
|
||
|
||
---- | ||
|
||
|
||
Version 2.11.0 | ||
============== | ||
|
||
:Released: 2020-10-17 | ||
:Maintainer: Tom Schraitle | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`276` (:pr:`277`): ``VersionInfo.parse`` should be a class method | ||
Also add authors and update changelog in :gh:`286` | ||
* :gh:`274` (:pr:`275`): Py2 vs. Py3 incompatibility TypeError | ||
|
||
|
||
---- | ||
|
||
|
||
Version 2.10.2 | ||
============== | ||
|
||
:Released: 2020-06-15 | ||
:Maintainer: Tom Schraitle | ||
|
||
Features | ||
-------- | ||
|
||
:gh:`268`: Increase coverage | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`260` (:pr:`261`): Fixed ``__getitem__`` returning None on wrong parts | ||
* :pr:`263`: Doc: Add missing "install" subcommand for openSUSE | ||
|
||
|
||
Deprecations | ||
------------ | ||
|
||
* :gh:`160` (:pr:`264`): | ||
* :func:`semver.max_ver` | ||
* :func:`semver.min_ver` | ||
|
||
|
||
---- | ||
|
||
|
||
Version 2.10.1 | ||
============== | ||
|
||
:Released: 2020-05-13 | ||
:Maintainer: Tom Schraitle | ||
|
||
|
||
Features | ||
-------- | ||
|
||
* :pr:`249`: Added release policy and version restriction in documentation to | ||
help our users which would like to stay on the major 2 release. | ||
* :pr:`250`: Simplified installation semver on openSUSE with ``obs://``. | ||
* :pr:`256`: Made docstrings consistent | ||
|
||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`251` (:pr:`254`): Fixed return type of ``semver.VersionInfo.next_version`` | ||
to always return a ``VersionInfo`` instance. | ||
|
||
|
||
---- | ||
|
||
|
||
|
||
Version 2.10.0 | ||
============== | ||
|
||
:Released: 2020-05-05 | ||
:Maintainer: Tom Schraitle | ||
|
||
Features | ||
-------- | ||
|
||
* :pr:`138`: Added ``__getitem__`` magic method to ``semver.VersionInfo`` class. | ||
Allows to access a version like ``version[1]``. | ||
* :pr:`235`: Improved documentation and shift focus on ``semver.VersionInfo`` instead of advertising | ||
the old and deprecated module-level functions. | ||
* :pr:`230`: Add version information in some functions: | ||
|
||
* Use ``.. versionadded::`` RST directive in docstrings to | ||
make it more visible when something was added | ||
* Minor wording fix in docstrings (versions -> version strings) | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`224` (:pr:`226`): In ``setup.py``, replaced in class ``clean``, | ||
``super(CleanCommand, self).run()`` with ``CleanCommand.run(self)`` | ||
* :gh:`244` (:pr:`245`): Allow comparison with ``VersionInfo``, tuple/list, dict, and string. | ||
|
||
|
||
Additions | ||
--------- | ||
|
||
* :pr:`228`: Added better doctest integration | ||
|
||
|
||
Deprecations | ||
------------ | ||
* :gh:`225` (:pr:`229`): Output a DeprecationWarning for the following functions: | ||
|
||
- ``semver.parse`` | ||
- ``semver.parse_version_info`` | ||
- ``semver.format_version`` | ||
- ``semver.bump_{major,minor,patch,prerelease,build}`` | ||
- ``semver.finalize_version`` | ||
- ``semver.replace`` | ||
- ``semver.VersionInfo._asdict`` (use the new, public available | ||
function ``semver.VersionInfo.to_dict()``) | ||
- ``semver.VersionInfo._astuple`` (use the new, public available | ||
function ``semver.VersionInfo.to_tuple()``) | ||
|
||
These deprecated functions will be removed in semver 3. | ||
|
||
|
||
---- | ||
|
||
|
||
Version 2.9.1 | ||
============= | ||
:Released: 2020-02-16 | ||
:Maintainer: Tom Schraitle | ||
|
||
Features | ||
-------- | ||
|
||
* :gh:`177` (:pr:`178`): Fixed repository and CI links (moved https://github.com/k-bx/python-semver/ repository to https://github.com/python-semver/python-semver/) | ||
* :pr:`179`: Added note about moving this project to the new python-semver organization on GitHub | ||
* :gh:`187` (:pr:`188`): Added logo for python-semver organization and documentation | ||
* :gh:`191` (:pr:`194`): Created manpage for pysemver | ||
* :gh:`196` (:pr:`197`): Added distribution specific installation instructions | ||
* :gh:`201` (:pr:`202`): Reformatted source code with black | ||
* :gh:`208` (:pr:`209`): Introduce new function :func:`semver.VersionInfo.isvalid` | ||
and extend :command:`pysemver` with :command:`check` subcommand | ||
* :gh:`210` (:pr:`215`): Document how to deal with invalid versions | ||
* :pr:`212`: Improve docstrings according to PEP257 | ||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`192` (:pr:`193`): Fixed "pysemver" and "pysemver bump" when called without arguments | ||
|
||
|
||
---- | ||
|
||
Version 2.9.0 | ||
============= | ||
:Released: 2019-10-30 | ||
:Maintainer: Sébastien Celles <[email protected]> | ||
|
||
Features | ||
-------- | ||
|
||
* :gh:`59` (:pr:`164`): Implemented a command line interface | ||
* :gh:`85` (:pr:`147`, :pr:`154`): Improved contribution section | ||
* :gh:`104` (:pr:`125`): Added iterator to :func:`semver.VersionInfo` | ||
* :gh:`112`, :gh:`113`: Added Python 3.7 support | ||
* :pr:`120`: Improved test_immutable function with properties | ||
* :pr:`125`: Created :file:`setup.cfg` for pytest and tox | ||
* :gh:`126` (:pr:`127`): Added target for documentation in :file:`tox.ini` | ||
* :gh:`142` (:pr:`143`): Improved usage section | ||
* :gh:`144` (:pr:`156`): Added :func:`semver.replace` and :func:`semver.VersionInfo.replace` | ||
functions | ||
* :gh:`145` (:pr:`146`): Added posargs in :file:`tox.ini` | ||
* :pr:`157`: Introduce :file:`conftest.py` to improve doctests | ||
* :pr:`165`: Improved code coverage | ||
* :pr:`166`: Reworked :file:`.gitignore` file | ||
* :gh:`167` (:pr:`168`): Introduced global constant :data:`SEMVER_SPEC_VERSION` | ||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`102`: Fixed comparison between VersionInfo and tuple | ||
* :gh:`103`: Disallow comparison between VersionInfo and string (and int) | ||
* :gh:`121` (:pr:`122`): Use python3 instead of python3.4 in :file:`tox.ini` | ||
* :pr:`123`: Improved :func:`__repr__` and derive class name from :func:`type` | ||
* :gh:`128` (:pr:`129`): Fixed wrong datatypes in docstring for :func:`semver.format_version` | ||
* :gh:`135` (:pr:`140`): Converted prerelease and build to string | ||
* :gh:`136` (:pr:`151`): Added testsuite to tarball | ||
* :gh:`154` (:pr:`155`): Improved README description | ||
|
||
Removals | ||
-------- | ||
|
||
* :gh:`111` (:pr:`110`): Dropped Python 3.3 | ||
* :gh:`148` (:pr:`149`): Removed and replaced ``python setup.py test`` | ||
|
||
|
||
---- | ||
|
||
Version 2.8.2 | ||
============= | ||
:Released: 2019-05-19 | ||
:Maintainer: Sébastien Celles <[email protected]> | ||
|
||
Skipped, not released. | ||
|
||
---- | ||
|
||
Version 2.8.1 | ||
============= | ||
:Released: 2018-07-09 | ||
:Maintainer: Sébastien Celles <[email protected]> | ||
|
||
Features | ||
-------- | ||
|
||
* :gh:`40` (:pr:`88`): Added a static parse method to VersionInfo | ||
* :gh:`77` (:pr:`47`): Converted multiple tests into pytest.mark.parametrize | ||
* :gh:`87`, :gh:`94` (:pr:`93`): Removed named tuple inheritance. | ||
* :gh:`89` (:pr:`90`): Added doctests. | ||
|
||
Bug Fixes | ||
--------- | ||
|
||
* :gh:`98` (:pr:`99`): Set prerelease and build to None by default | ||
* :gh:`96` (:pr:`97`): Made VersionInfo immutable | ||
|
||
|
||
---- | ||
|
||
Version 2.8.0 | ||
============= | ||
:Released: 2018-05-16 | ||
:Maintainer: Sébastien Celles <[email protected]> | ||
|
||
|
||
Changes | ||
------- | ||
|
||
* :gh:`82` (:pr:`83`): Renamed :file:`test.py` to :file:`test_semver.py` so | ||
py.test can autodiscover test file | ||
|
||
Additions | ||
--------- | ||
|
||
* :gh:`79` (:pr:`81`, :pr:`84`): Defined and improve a release procedure file | ||
* :gh:`72`, :gh:`73` (:pr:`75`): Implemented :func:`__str__` and :func:`__hash__` | ||
|
||
Removals | ||
-------- | ||
|
||
* :gh:`76` (:pr:`80`): Removed Python 2.6 compatibility | ||
|
||
|
||
.. | ||
Local variables: | ||
coding: utf-8 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Deprecate CLI functions not imported from ``semver.cli``. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Create semver package and split code among different modules in the packages. | ||
|
||
* Remove :file:`semver.py` | ||
* Create :file:`src/semver/__init__.py` | ||
* Create :file:`src/semver/cli.py` for all CLI methods | ||
* Create :file:`src/semver/_deprecated.py` for the ``deprecated`` decorator and other deprecated functions | ||
* Create :file:`src/semver/__main__.py` to allow calling the CLI using :command:`python -m semver` | ||
* Create :file:`src/semver/_types.py` to hold type aliases | ||
* Create :file:`src/semver/version.py` to hold the :class:`Version` class (old name :class:`VersionInfo`) and its utility functions | ||
* Create :file:`src/semver/__about__.py` for all the metadata variables |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add another file
305.deprecation.rst
to describe the deprecation of VersionInfo > Version?Oh, I see, you have that as a documentation issue. Hmn... not sure, if people will find it. IMHO it wouldn't hurt to add this here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will just rename the file
305.doc.rst
to305.deprecation.rst
.