You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add test cases
- Add additional test case for "check"
- test_should_process_check_iscalled_with_valid_version
- Test also missing finalize_version
- Test the warning more thouroughly with pytest.warns instead
of just pytest.deprecated_call
* In `setup.cfg`, add deprecation warnings filter for pytest
* Implement DeprecationWarning with warnings module and
the new decorator `deprecated`
* Output a DeprecationWarning for the following functions:
- semver.bump_{major,minor,patch,prerelease,build}
- semver.format_version
- semver.finalize_version
- semver.parse
- semver.parse_version_info
- semver.replace
- semver.VersionInfo._asdict
- semver.VersionInfo._astuple
Add also a deprecation notice in the docstrings of these
functions
* Introduce new public functions:
- semver.VersionInfo.to_dict (from former _asdict)
- semver.VersionInfo.to_tuple (from former _astuple)
- Keep _asdict and _astuple as a (deprecated) function for
compatibility reasons
* Update CHANGELOG.rst
* Update usage documentation:
- Add deprecation warning
- Explain how to replace deprecated functions
- Explain how to display deprecation warnings from semver
* Improve documentation of deprecated functions
- List deprecated module level functions
- Make recommendation and show equivalent code
- Mention that deprecated functions will be replaced in
semver 3. That means, all deprecated function will be still
available in semver 2.x.y.
* Move _increment_string into VersionInfo class
- Makes removing deprecating functions easier as, for example,
bump_prerelease is no longer dependant from an "external"
function.
- Move _LAST_NUMBER regex into VersionInfo class
- Implement _increment_string as a staticmethod
Co-authored-by: Karol <karol@ppkt.eu>
Co-authored-by: scls19fr <scls19fr@users.noreply.github.com>
0 commit comments