Skip to content

Conversation

@jwodder
Copy link
Contributor

@jwodder jwodder commented Jul 19, 2020

This PR adds a note to the setup.py-parsing option for single-sourcing project versions that setuptools' attr: directive does the same thing (without importing dependencies) starting in version 46.4.0.

.. code-block:: ini
[metadata]
version = attr:package.__version__
Copy link
Member

Choose a reason for hiding this comment

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

I believe that a whitespace after the colon is necessary

Suggested change
version = attr:package.__version__
version = attr: package.__version__

(even if not, it reads better this way)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not necessary, but I added it anyway.

@pradyunsg pradyunsg merged commit 29aea30 into pypa:master Aug 30, 2020
@pradyunsg
Copy link
Member

Thank you! ^>^

@jwodder jwodder deleted the mention-attr branch November 23, 2020 22:50
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