Python Semver Versions Save

Python package to work with Semantic Versioning (https://semver.org/)

3.0.2

7 months ago

Documentation: https://python-semver.rtfd.io/en/3.0.2/ PyPI: https://pypi.org/project/semver/3.0.2/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.1...3.0.2 Full Changelog between last 2 release and 3: https://github.com/python-semver/python-semver/compare/3.0.1...3.0.2

What's Changed

New Contributors

Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.1...3.0.2

3.0.1

11 months ago

Related pr: #413

Documentation: https://python-semver.rtfd.io/en/3.0.1/ PyPI: https://pypi.org/project/semver/3.0.1/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0...3.0.1 Full Changelog between last 2 release and 3: https://github.com/python-semver/python-semver/compare/2.13.0...3.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0...3.0.1

3.0.0

1 year ago

Related pr: #403

Documentation: https://python-semver.rtfd.io/en/3.0.0/ PyPI: https://pypi.org/project/semver/3.0.0/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0-rc.1...3.0.0 Full Changelog between last 2 release and 3: https://github.com/python-semver/python-semver/compare/2.13.0...3.0.0

What's Changed

3.0.0-rc.1

1 year ago

Related pr: #399

Documentation: https://python-semver.rtfd.io/en/3.0.0-rc.1/ PyPI: https://pypi.org/project/semver/3.0.0rc1/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0-dev.4...3.0.0-rc.1

What's Changed

Apart from the above issues/pull request, for this release there were made some additional changes:

  • Combine all dev releases together in one changelog
  • Remove all changelog.d entries and integrate it into CHANGELOG
  • Move dev releases to file changelog-semver3-devel.rst
  • Split contributing into different sections
  • Some doc polishing; use :meth: consistently for semver.Version methods
  • Fix also some doc bugs
  • Amend list of contributors and sorted alphabetically by lastname
  • Correct docstrings on some deprecated functions

New Contributors

Thanks to all! :heart:

3.0.0-dev.4

1 year ago

Related pr: https://github.com/python-semver/python-semver/issues/385

  • Released 2022-12-20

  • Maintainer Tom Schraitle

Documentation: https://python-semver.rtfd.io/en/3.0.0-dev.4/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0-dev.3...3.0.0-dev.4 PyPI: https://pypi.org/project/semver/3.0.0dev4/

Bug Fixes

  • #374: Correct Towncrier’s config entries in the pyproject.toml file. The old entries [[tool.towncrier.type]] are deprecated and need to be replaced by [tool.towncrier.fragment.<TYPE>].

Deprecations

  • #372: Deprecate support for Python 3.6 Python 3.6 reached its end of life and isn’t supported anymore. At the time of writing (Dec 2022), the lowest version is 3.7.

    Although the poll didn’t cast many votes, the majority agree to remove support for Python 3.6.

Improved Documentation

  • #335: Add new section “Converting versions between PyPI and semver” the limitations and possible use cases to convert from one into the other versioning scheme.
  • #340: Describe how to get version from a file
  • #343: Describe combining Pydantic with semver in the “Advanced topic” section.
  • #350: Restructure usage section. Create subdirectory “usage/” and splitted all section into different files.
  • #351: Introduce new topics for:
    • “Migration to semver3”
    • “Advanced topics”

Features

  • PR #359: Add optional parameter optional_minor_and_patch in Version.parse() to allow optional minor and patch parts.
  • PR #362: Make Version.match() accept a bare version string as match expression, defaulting to equality testing.
  • #364: Enhance pyproject.toml to make it possible to use the pyproject-build command from the build module. For more information, see Building semver.
  • #365: Improve pyproject.toml.
    • Use setuptools, add metadata. Taken approach from A Practical Guide to Setuptools and Pyproject.toml.
    • Doc: Describe building of semver
    • Remove .travis.yml in MANIFEST.in (not needed anymore)
    • Distinguish between Python 3.6 and others in tox.ini
    • Add skip_missing_interpreters option for tox.ini
    • GH Action: Upgrade setuptools and setuptools-scm and test against 3.11.0-rc.2

Trivial/Internal Changes

  • #378: Fix some typos in Towncrier configuration

Contributors

(in alphabetical order)

  • @b0uh (new contributor)
  • @calebstewart
  • @jmi2k
  • @Nagidal (new contributor)
  • @OidaTiftla (new contributor)

Thanks to all! :heart:

3.0.0-dev.3

2 years ago

Related pr: #315

  • Released 2022-01-20

  • Maintainer Tom Schraitle

Documentation: https://python-semver.rtfd.io/en/3.0.0-dev.3/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0-dev.2...3.0.0-dev.3

Bug Fixes

  • #310: Rework API documentation. Follow a more “semi-manual” attempt and add auto directives into docs/api.rst.

Improved Documentation

  • #312: Rework “Usage” section.

    • Rename VersionInfo to Version class, but keep the old name as alias
    • Remove semver. prefix in doctests to make examples shorter
    • Correct some references to dunder methods like __getitem__(), __gt__() etc.
    • Remove inconsistencies and mention module level function as deprecated and discouraged from using
    • Make empty super() call in semverwithvprefix.py example
  • #315: Improve release procedure text

  • #337: Improve documentation for semver max/min

Trivial/Internal Changes

  • #309: Some (private) functions from the semver.version module has been changed. The following functions got renamed as it is only useful inside the Version class:

    • function semver.version.comparator got renamed to semver.version._comparator()
    • function semver.version.cmp got renamed to semver.version._cmp()

    The following functions got integrated into the Version class:

    • function semver.version._nat_cmd as a class method
    • function semver.version.ensure_str
  • #313: Correct tox.ini for changelog entry to skip installation for semver. This should speed up the execution of towncrier.

  • #316: Comparisons of Version class and other types return now a NotImplemented constant instead of a TypeError exception.

    The NotImplemented section of the Python documentation recommends returning this constant when comparing with __gt__, __lt__, and other comparison operators to “to indicate that the operation is not implemented with respect to the other type”.

  • #319: Introduce stages in .travis.yml.

  • #322: Switch from Travis CI to GitHub Actions.

  • #347: Support Python 3.10 in GitHub Action and other config files.

  • Start supporting Python 3.10

Contributors

(in alphabetical order)

  • @mzjp2 (new contributor)
  • @tlaferriere

Thanks to all! :heart:

3.0.0-dev.2

3 years ago

Related pr: #307

  • Released 2020-11-01

  • Maintainer Tom Schraitle

Documentation: https://python-semver.rtfd.io/en/3.0.0-dev.2/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.0-dev.1...3.0.0-dev.2

Deprecations

  • #169: Deprecate CLI functions not imported from semver.cli.

Features

  • #169: Create semver package and split code among different modules in the packages:
    • Remove semver.py
    • Create src/semver/__init__.py
    • Create src/semver/cli.py for all CLI methods
    • Create src/semver/_deprecated.py for the deprecated decorator and other deprecated functions
    • Create src/semver/__main__.py to allow calling the CLI using python -m semver
    • Create src/semver/_types.py to hold type aliases
    • Create src/semver/version.py to hold the Version class (old name VersionInfo) and its utility functions
    • Create src/semver/__about__.py for all the metadata variables
  • #305: Rename VersionInfo to Version but keep an alias for compatibility

Improved Documentation

  • #304: Several improvements in documentation:
    • Reorganize API documentation.
    • Add migration chapter from semver2 to semver3.
    • Distinguish between changlog for version 2 and 3
  • #305: Add note about Version rename.

Trivial/Internal Changes

  • #169: Adapted infrastructure code to the new project layout.

    • Replace setup.py with setup.cfg because the setup.cfg is easier to use
    • Adapt documentation code snippets where needed
    • Adapt tests
    • Changed the deprecated to hardcode the semver package name in the warning.

    Increase coverage to 100% for all non-deprecated APIs

  • #304: Support PEP-561 py.typed.

    According to the mentioned PEP:

    "Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing."

    Add package_data to setup.cfg to include this marker in dist and whl file.

Contributors

(in alphabetical order)

  • @tlaferriere

Thanks to all! :heart:

3.0.0-dev.1

3 years ago

Related pr: #295

  • Released 2020-10-26

  • Maintainer Tom Schraitle

Documentation https://python-semver.rtfd.io/en/3.0.0-dev.1/

Deprecations

  • PR #290: For semver 3.0.0-alpha0:
    • Remove anything related to Python2
    • In tox.ini and .travis.yml Remove targets py27, py34, py35, and pypy. Add py38, py39, and nightly (allow to fail)
    • In setup.py simplified file and remove Tox and Clean classes
  • Remove old Python versions (2.7, 3.4, 3.5, and pypy) from Travis
  • #234: In setup.py simplified file and remove Tox and Clean classes

Features

  • PR #290: Create semver 3.0.0-alpha0:
    • Update README.rst, mention maintenance branch maint/v2.
    • Remove old code mainly used for Python2 compatibility, adjusted code to support Python3 features.
    • Split test suite into separate files under tests/ directory
    • Adjust and update setup.py. Requires Python >=3.6.* Extract metadata directly from source (affects all the __version__, __author__ etc. variables)
  • #276: Document how to create a sublass from VersionInfo class
  • #270: Configure Towncrier (PR #273):
    • Add changelog.d/.gitignore to keep this directory
    • Create changelog.d/README.rst with some descriptions
    • Add changelog.d/_template.rst as Towncrier template
    • Add [tool.towncrier] section in pyproject.toml
    • Add “changelog” target into tox.ini. Use it like tox -e changelog -- CMD whereas CMD is a Towncrier command. The default tox -e changelog calls Towncrier to create a draft of the changelog file and output it to stdout.
    • Update documentation and add include a new section “Changelog” included from changelog.d/README.rst.
  • #213: Add typing information

Bug Fixes

  • #291: Disallow negative numbers in VersionInfo arguments for major, minor, and patch.

Improved Documentation

  • PR #290: Several improvements in the documentation:
    • New layout to distinguish from the semver2 development line.
    • Create new logo.
    • Remove any occurances of Python2.
    • Describe changelog process with Towncrier.
    • Update the release process.

Trivial/Internal Changes

  • PR #290: Add supported Python versions to black.

Contributors

(in alphabetical order)

  • @sbrudenell
  • @tlaferriere

Thanks to all! :heart:

2.13.0

3 years ago

Related pr: #295

  • Released 2020-10-20

  • Maintainer Tom Schraitle

Documentation https://python-semver.rtfd.io/en/2.13.0

Features

  • #287: Document how to create subclass from VersionInfo

Bugfixes

  • #283: Ensure equal versions have equal hashes

Contributors

(in alphabetical order)

  • @Anvil
  • @sbrudenell

Thanks to all! :heart:

2.12.0

3 years ago

Related pr: #294

  • Released 2020-10-19

  • Maintainer Tom Schraitle

Documentation https://python-semver.rtfd.io/en/2.12.0

Features

n/a

Bugfixes

  • #291 (PR #292) Disallow negative numbers in VersionInfo

Deprecations

n/a

Contributors

n/a