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

remove bdist_wheel universal if py3-only #6

Open
thatch opened this issue Mar 13, 2020 · 0 comments
Open

remove bdist_wheel universal if py3-only #6

thatch opened this issue Mar 13, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@thatch
Copy link
Member

thatch commented Mar 13, 2020

The snippet I have in skel for setup.cfg includes the following:

[bdist_wheel]
universal = true

When a project has requires_python that only makes it work on py3, this is a little silly to make a py2.py3 wheel that only works on 3. That config value should be removed if requires_python does not allow py2.

from packaging.specifiers import SpecifierSet

spec = SpecifierSet(requires_python)
if not "2.8" in spec:
  # then remove 

Then add something in opine/suggestions that checks for it in setup.cfg, and runs after UseDeclarativeConfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant