Skip to content

pin packaging to keep LegacyVersion support - #2706

Merged
pramodk merged 2 commits into
masterfrom
heeren/readthedocs-rabbithole
Feb 5, 2024
Merged

pin packaging to keep LegacyVersion support#2706
pramodk merged 2 commits into
masterfrom
heeren/readthedocs-rabbithole

Conversation

@heerener

@heerener heerener commented Feb 5, 2024

Copy link
Copy Markdown
Collaborator

Support was dropped in 22.0 (see https://packaging.pypa.io/en/latest/changelog.html). This breaks our readthedocs build for any branch that does not parse as a clean version number.

22.0 dropped LegacyVersion: pypa/packaging#407
This makes it so our branches can no longer be parsed as versions
@heerener
heerener requested review from JCGoran and pramodk February 5, 2024 15:36
@pramodk
pramodk enabled auto-merge (squash) February 5, 2024 15:39
@pramodk pramodk mentioned this pull request Feb 5, 2024
@sonarqubecloud

sonarqubecloud Bot commented Feb 5, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@azure-pipelines

Copy link
Copy Markdown

✔️ b95b892 -> Azure artifacts URL

@pramodk
pramodk merged commit ab5d4e5 into master Feb 5, 2024
@pramodk
pramodk deleted the heeren/readthedocs-rabbithole branch February 5, 2024 16:26
JCGoran pushed a commit that referenced this pull request May 27, 2025
As per
pypa/setuptools#4483 (comment)
setuptools version 71 and above is not compatible with packaging version
22 and below. In #2706 we pinned packaging to 21.3, but since
merging #3370 this should no longer be required. This allows us to
install a more recent version of setuptools (which is not used for
building NEURON, but only for detecting the compiler version in
binwrapper.py at run-time).
JCGoran added a commit that referenced this pull request May 30, 2025
As per
pypa/setuptools#4483 (comment)
setuptools version 71 and above is not compatible with packaging version
22 and below. In #2706 we pinned packaging to 21.3, but since
merging #3370 this should no longer be required. This allows us to
install a more recent version of setuptools (which is not used for
building NEURON, but only for detecting the compiler version in
binwrapper.py at run-time).
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.

3 participants