Skip to content

Incorrect requires-python version on /simple/ if Python version was changed during the release #18482

@Andrej730

Description

@Andrej730

Hi, we've run into a problem posting a release on PyPi - we posted in two parts:

  • 3.9-3.12
  • 3.13, the same release but we've changed 'requires-python' from ">=3.9,<3.13" to "">=3.9,<3.14"".

But now a problem occurred, when user is trying to install pip install ifcopenshell on Python 3.13 they get:

ERROR: Ignored the following versions that require a different python version: 0.7.0.240406 Requires-Python <3.13,>=3.9; 0.7.0.240418 Requires-Python <3.13,>=3.9; 0.7.0.240423 Requires-Python <3.13,>=3.9; 0.7.0.240518 Requires-Python <3.13,>=3.9; 0.7.0.240521 Requires-Python <3.13,>=3.9; 0.7.0.240627 Requires-Python <3.13,>=3.9; 0.7.0.250519 Requires-Python <3.13,>=3.9; 0.7.10 Requires-Python <3.13,>=3.9; 0.8.0 Requires-Python <3.13,>=3.9; 0.8.1 Requires-Python <3.13,>=3.9; 0.8.1.post1 Requires-Python <3.13,>=3.9; 0.8.2 Requires-Python <3.13,>=3.9; 0.8.3 Requires-Python <3.13,>=3.9; 0.8.3.post1 Requires-Python <3.13,>=3.9

I've investigated pip code and I believe the page it's relying on for identifying python versions is https://pypi.org/simple/ifcopenshell/

And there's a bit of a problem with this page - it still lists >=3.9,<3.13, even for Python 3.13 package.

<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py311-none-win_amd64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py312-none-macosx_10_15_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py312-none-macosx_11_0_arm64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py312-none-manylinux_2_31_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py312-none-win_amd64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b" data-core-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b">ifcopenshell-0.8.3.post1-py313-none-macosx_10_15_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b" data-core-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b">ifcopenshell-0.8.3.post1-py313-none-macosx_11_0_arm64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b" data-core-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b">ifcopenshell-0.8.3.post1-py313-none-manylinux_2_31_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b" data-core-metadata="sha256=2116f9dd9d7aa4f92e50016a191e3a41a4f14ed77053a707aee21f4890b0f60b">ifcopenshell-0.8.3.post1-py313-none-win_amd64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py39-none-macosx_10_15_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py39-none-macosx_11_0_arm64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py39-none-manylinux_2_31_x86_64.whl</a><br />
<a href="" data-requires-python="&lt;3.13,&gt;=3.9" data-dist-info-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7" data-core-metadata="sha256=44c5222276f7decb7006a049bc7f79f2a354752f46a12180a703f2461ed497e7">ifcopenshell-0.8.3.post1-py39-none-win_amd64.whl</a><br />

E.g. if you download one of the 3.13 wheels -
https://files.pythonhosted.org/packages/79/1b/d1f1c9da1ff4c6f4a39eb720d31c1dab82937afe710441cac7a34d61a29d/ifcopenshell-0.8.3.post1-py313-none-manylinux_2_31_x86_64.whl#sha256=a32e8f13e1c7d34d539e91d293378028224e707bbc7274a045938cc3eb1c66fd

It has Requires-Python: <3.14,>=3.9 in it's "METADATA".

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedIssues we can't or shouldn't get to yetbug 🐛

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions