Skip to content

build requirement gets removed for no apparent reason #2

@Dobatymo

Description

@Dobatymo

Discussed in https://github.com/tox-dev/pyproject-fmt/discussions/265

Hi, great project!

I have the following in my pyproject file

[build-system]
requires = [
  "cython==3.0.11",
  "numpy==1.22.2; python_version<'3.9'",
  "numpy>=2; python_version>='3.9'",
  "setuptools",
]

when running pyproject-fmt==2.2.4 using pre-commit the "numpy==1.22.2; python_version<'3.9'", line gets removed. It looks like a bug.

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