Commit 9a43790
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.rst1 parent 34f038d commit 9a43790
4 files changed
+199
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
| |||
0 commit comments