Skip to content

Commit

Permalink
fix(build): use stricter requirement syntax
Browse files Browse the repository at this point in the history
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#opt-2

In install_requires and extras_require, values are parsed as list-semi. This implies that in order to include markers, each requirement must be dangling in a new line:

```
[options]
install_requires =
    importlib-metadata; python_version<"3.8"

[options.extras_require]
all =
    importlib-metadata; python_version < "3.8"
```
  • Loading branch information
Ned Batchelder committed Oct 3, 2023
1 parent 3dee201 commit 9f2be77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ console_scripts =
scriv = scriv.cli:cli

[options.extras_require]
toml = tomli;python_version<3.11
yaml = pyyaml
toml =
tomli; python_version < "3.11"
yaml =
pyyaml

[scriv]
ghrel_template = file: ghrel_template.md.j2
Expand Down

0 comments on commit 9f2be77

Please sign in to comment.