3.0.0-dev.2
Pre-release
Pre-release
Related pr: #307
-
Released
2020-11-01 -
Maintainer
Tom Schraitle
Documentation: https://python-semver.rtfd.io/en/3.0.0-dev.2/
Full Changelog: 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.pyfor all CLI methods - Create
src/semver/_deprecated.pyfor thedeprecateddecorator and other deprecated functions - Create
src/semver/__main__.pyto allow calling the CLI usingpython -m semver - Create
src/semver/_types.pyto hold type aliases - Create
src/semver/version.pyto hold theVersionclass (old nameVersionInfo) and its utility functions - Create
src/semver/__about__.pyfor all the metadata variables
- Remove
- #305: Rename
VersionInfotoVersionbut 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
Versionrename.
Trivial/Internal Changes
-
#169: Adapted infrastructure code to the new project layout.
- Replace
setup.pywithsetup.cfgbecause the
setup.cfgis easier to use - Adapt documentation code snippets where needed
- Adapt tests
- Changed the
deprecatedto hardcode thesemverpackage name in the warning.
Increase coverage to 100% for all non-deprecated APIs
- Replace
-
#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 namedpy.typedto their
package supporting typing."Add package_data to
setup.cfgto include this marker in dist and whl file.
Contributors
(in alphabetical order)
Thanks to all! ❤️