Skip to content

remove bdist_wheel universal if py3-only #6

Description

@thatch

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions