Skip to content

Commit 9a43790

Browse files
committed
Fix #225: Deprecate module level functions
* Add test cases * 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.parse - semver.parse_version_info - semver.format_version - semver.bump_{major,minor,patch,prerelease,build} - semver.finalize_version - semver.replace Add also a deprecation notice in the docstrings of these functions * Update CHANGELOG.rst
1 parent 34f038d commit 9a43790

File tree

4 files changed

+199
-104
lines changed

4 files changed

+199
-104
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,20 @@ Additions
2727

2828
* :pr:`228`: Added better doctest integration
2929

30+
3031
Removals
3132
--------
33+
* :gh:`225` (:pr:`229`): Output a DeprecationWarning for the following functions:
34+
35+
- ``semver.parse``
36+
- ``semver.parse_version_info``
37+
- ``semver.format_version``
38+
- ``semver.bump_{major,minor,patch,prerelease,build}``
39+
- ``semver.finalize_version``
40+
- ``semver.replace``
41+
42+
These functions will be removed in major 3 of semver.
43+
3244

3345

3446
Version 2.9.1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy