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

Add package name to setup.py #433

Closed
wants to merge 1 commit into from

Conversation

yegorich
Copy link

No description provided.

@@ -2,5 +2,6 @@
import setuptools

setuptools.setup(
name='mock',
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain why this is needed / desirable? I don't like the duplication of metadata that this creates.

Copy link
Author

Choose a reason for hiding this comment

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

This keyword is required by Buildroot's script scanpypi in order to automatically add Python package to Buildroot's tree. At the point of invocation setup metadata won't be expanded though pbr, so 'name' is missing.

So basically my PR should remove 'name' from setup.cfg and add it to setup.py.

Copy link
Member

Choose a reason for hiding this comment

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

Well pip manages to figure it out just fine - I think you've got a bug in scanpypi.

@yegorich yegorich closed this Aug 13, 2018
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.

None yet

2 participants