Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Python 2 setup extras requirement loading#120

Open
lazydreamy wants to merge 1 commit into
pjkundert:master from
lazydreamy:pr/fix-py2-setup-extras
Open

Fix Python 2 setup extras requirement loading #120
lazydreamy wants to merge 1 commit into
pjkundert:master from
lazydreamy:pr/fix-py2-setup-extras

Conversation

@lazydreamy

@lazydreamy lazydreamy commented Jun 10, 2026

Copy link
Copy Markdown

Summary

Make setup.py parse requirement extras without Python 3-only f-string syntax.

The package still supports Python 2, but setup.py used an f-string while building extras_require. That makes setup.py fail to parse under Python 2 before installation metadata can be inspected.

Changes

  • Replace the f-string expression in setup.py with str.format().
  • Keep the generated extras keys unchanged.

Testing

  • py -2.7 setup.py --version
  • python setup.py --version

Avoid an f-string while building extras_require so setup.py remains parseable on Python 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /