← 输入框|github.com|刷新
Skip to content

build(deps): expand Deprecated dependency range to include v3.0+ - #1515

Open
itzzdev09 wants to merge 1 commit into
python-semantic-release:masterfrom
itzzdev09:allow-deprecated-3
Open

itzzdev09 wants to merge 1 commit into
python-semantic-release:masterfrom
itzzdev09:allow-deprecated-3

Conversation

@itzzdev09

Copy link
Copy Markdown

Purpose

pyproject.toml pins Deprecated ~= 1.2 (i.e. <2). Deprecated 3.0.0 was released on 26 Sep (there is no 2.x), so python-semantic-release can't be installed next to packages that require it.

Rationale

PSR only uses deprecated.sphinx.deprecated (on the version declaration classes). Deprecated 3.0 keeps that API unchanged; it drops Python < 3.12 (pip keeps older Pythons on 1.3.x, so the 3.8 backport use case is unaffected) and removes deprecated.__date__ / deprecated.classic.string_types, which PSR doesn't use. This changes the range to >= 1.2, < 4.

How did you test?

pytest tests/unit on Python 3.12 with the test extra, once with Deprecated 1.3.1 and once with 3.0.0: identical results (4268 passed, 15 skipped). The same 26 tests fail on both versions on my Windows machine because of CRLF line endings and path separators. I also checked that instantiating a VersionDeclarationABC subclass still emits the DeprecationWarning with 3.0.0.

How to Verify

  1. pip install -e .[test] "Deprecated==3.0.0" on Python 3.12+
  2. pytest tests/unit

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant