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

Move setup information to declarative setup.cfg #495

Merged
merged 1 commit into from
Jun 11, 2020
Merged

Move setup information to declarative setup.cfg #495

merged 1 commit into from
Jun 11, 2020

Conversation

jdufresne
Copy link
Contributor

Use a declarative syntax to avoid mixing code and configuration.
Simplifies handling of long description and version by reducing some
boilerplate.

For details on this setuptools feature, see:
https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files

Use a declarative syntax to avoid mixing code and configuration.
Simplifies handling of long description and version by reducing some
boilerplate.

For details on this setuptools feature, see:
https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
@coveralls
Copy link

coveralls commented Jun 11, 2020

Pull Request Test Coverage Report for Build 219

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 218: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@auvipy auvipy merged commit 2194df2 into jpadilla:master Jun 11, 2020
tests =
pytest>=4.0.1,<5.0.0
pytest-cov>=2.6.0,<3.0.0

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdufresne is it possible to do something like this using this setup?

EXTRAS_REQUIRE["dev"] = (
    EXTRAS_REQUIRE["tests"]
    + EXTRAS_REQUIRE["cryptography"]
    + EXTRAS_REQUIRE["jwks-client"]
    + ["mypy", "pre-commit"]
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, values can't be added in setup.cfg like in Python code, but we could add a dev extras and just copy the entries manually.

@jdufresne jdufresne deleted the setup-cfg branch June 15, 2020 13:37
jpadilla pushed a commit that referenced this pull request Jun 19, 2020
Use a declarative syntax to avoid mixing code and configuration.
Simplifies handling of long description and version by reducing some
boilerplate.

For details on this setuptools feature, see:
https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
@jpadilla jpadilla added this to the v2.0.0 milestone Sep 1, 2020
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

Successfully merging this pull request may close these issues.

None yet

4 participants