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

Fix setup.py reading setup.cfg manually #21

Merged

Conversation

dgelessus
Copy link
Contributor

Fixes #20.

Reading setup.cfg manually is not supported by setuptools and causes errors with some setup.cfg features (see pypa/setuptools#1869). The supported way to use setup.cfg is to call setup() with no arguments and let setuptools read and parse setup.cfg itself.

Reading setup.cfg manually is not supported by setuptools and causes
errors with some setup.cfg features (see pypa/setuptools#1869).
The supported way to use setup.cfg is to call setup() with no arguments
and let setuptools read and parse setup.cfg itself.
Copy link
Contributor

@KOLANICH KOLANICH left a comment

Choose a reason for hiding this comment

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

You probably should also add pyproject.toml

@KOLANICH
Copy link
Contributor

BTW, yet another transition will be needed in future: https://www.python.org/dev/peps/pep-0621/

Copy link
Member

@generalmimon generalmimon left a comment

Choose a reason for hiding this comment

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

@dgelessus LGTM, thanks for the fix!

You probably should also add pyproject.toml

I have no idea if it will help anything, but sure, feel free to open a new PR for that. I'll just merge this as it is, let's keep the PRs small and easy to review.

@generalmimon generalmimon merged commit c2a9645 into kaitai-io:master Jun 30, 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.

Fix setup.py to work with setuptools 41.4.0 and later
3 participants