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

Drop runtime dependency on setuptools #9

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Feb 16, 2022

The setuptools package is a huge overkill to get self-version.

Use the standard library instead on Python 3.8+,
or a smaller package on older Pythons.

Declare support for new Pythons (extra commit).

@hroncok
Copy link
Contributor Author

hroncok commented Feb 16, 2022

I am not sure I understand the mypy failure. Should I noqa it?

@nforro
Copy link
Member

nforro commented Feb 16, 2022

I am not sure I understand the mypy failure. Should I noqa it?

It seems to be a known issue: python/mypy#1153

@hroncok
Copy link
Contributor Author

hroncok commented Feb 16, 2022

Added # type: ignore

@hroncok
Copy link
Contributor Author

hroncok commented Feb 16, 2022

But the pre-commit thing now made it uglier :(

The setuptools package is a huge overkill to get self-version.

Use the standard library instead on Python 3.8+,
or a smaller package on older Pythons.
Verified 3.10 support by running the tests in Fedora Rawhide.
Assuming Python 3.9 support as well.
@hroncok
Copy link
Contributor Author

hroncok commented Feb 16, 2022

I've tried really hard to make it both readable and acceptable by the robot overlords.

Copy link
Member

@nforro nforro left a comment

Choose a reason for hiding this comment

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

Thanks!

@nforro nforro merged commit 4854b88 into packit:main Feb 16, 2022
@hroncok hroncok deleted the importlib_metadata branch February 16, 2022 11:15
@TomasTomecek
Copy link
Member

Very nice, I didn't know there is a more lightweight way to do this.

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.

3 participants