Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5abeda6

Browse filesBrowse files
authored
Merge pull request #402 from tomschr/compare-258
Fix #258: Keep semver._deprecated.compare
2 parents c40b6a4 + 47b49ca commit 5abeda6
Copy full SHA for 5abeda6

10 files changed

+83
-709
lines changed

‎CHANGELOG.rst

Copy file name to clipboardExpand all lines: CHANGELOG.rst
+9-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This section covers the changes between major version 2 and version 3.
2121
Version 3.0.0
2222
=============
2323

24-
:Released: 2023-03-19
24+
:Released: 2023-04-02
2525
:Maintainer: Tom Schraitle
2626

2727

@@ -95,6 +95,14 @@ Deprecations
9595
didn't cast many votes, the majority agreed to remove support for
9696
Python 3.6.
9797

98+
* :pr:`402`: Keep :func:`semver.compare <semver._deprecated.compare>`.
99+
Although it breaks consistency with module level functions, it seems it's
100+
a much needed/used function. It's still unclear if we should deprecate
101+
this function or not (that's why we use :py:exc:`PendingDeprecationWarning`).
102+
103+
As we don't have a uniform initializer yet, this function stays in the
104+
:file:`_deprecated.py` file for the time being until we find a better solution. See :gh:`258` for details.
105+
98106

99107
Features
100108
--------

‎docs/api.rst

Copy file name to clipboardExpand all lines: docs/api.rst
+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Deprecated Functions in :mod:`semver._deprecated`
1717

1818
.. automodule:: semver._deprecated
1919

20+
.. autofunction:: semver._deprecated.compare
21+
2022
.. autofunction:: semver._deprecated.bump_build
2123

2224
.. autofunction:: semver._deprecated.bump_major
@@ -27,8 +29,6 @@ Deprecated Functions in :mod:`semver._deprecated`
2729

2830
.. autofunction:: semver._deprecated.bump_prerelease
2931

30-
.. autofunction:: semver._deprecated.compare
31-
3232
.. autofunction:: semver._deprecated.deprecated
3333

3434
.. autofunction:: semver._deprecated.finalize_version

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.