Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misparsed requires-python="~=3.12.7" #20

Open
graingert-coef opened this issue Nov 7, 2024 · 0 comments
Open

misparsed requires-python="~=3.12.7" #20

graingert-coef opened this issue Nov 7, 2024 · 0 comments

Comments

@graingert-coef
Copy link

input:

[build-system]
build-backend = "flit_core.buildapi"

requires = [ "flit-core>=3.2,<4" ]

[project]
name = "demo-requires-python"
license = { file = "LICENSE" }
authors = [ { name = "Thomas Grainger", email = "[email protected]" } ]
requires-python = "~=3.12.7"
classifiers = [
  "License :: OSI Approved :: MIT License",
]
dynamic = [ "description", "version" ]

output:

[build-system]
build-backend = "flit_core.buildapi"

requires = [ "flit-core>=3.2,<4" ]

[project]
name = "demo-requires-python"
license = { file = "LICENSE" }
authors = [ { name = "Thomas Grainger", email = "[email protected]" } ]
requires-python = "~=3.12.7"
classifiers = [
  "License :: OSI Approved :: MIT License",
  "Programming Language :: Python :: 3 :: Only",
  "Programming Language :: Python :: 3.9",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: 3.13",
]
dynamic = [ "description", "version" ]

expected output:

[build-system]
build-backend = "flit_core.buildapi"

requires = [ "flit-core>=3.2,<4" ]

[project]
name = "demo-requires-python"
license = { file = "LICENSE" }
authors = [ { name = "Thomas Grainger", email = "[email protected]" } ]
requires-python = "~=3.12.7"
classifiers = [
  "License :: OSI Approved :: MIT License",
  "Programming Language :: Python :: 3 :: Only",
  "Programming Language :: Python :: 3.12",
]
dynamic = [ "description", "version" ]
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

No branches or pull requests

1 participant