Skip to content

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

@graingert-coef

Description

@graingert-coef

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" ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions