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

Fix package name based on local sdist archive #536

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

beenje
Copy link
Contributor

@beenje beenje commented Apr 15, 2024

When using a local sdist as source, the package name of the conda recipe was based on the sdist filename.
This used to be the same (at least as far as I know) but since setuptools 69.3.0, the sdist filename is now normalized.
For example, if a package name contains a dash, it's converted to underscore (for my-package, the sdist is now my_package-1.0.0.tar.gz instead of my-package-1.0.0.tar.gz as before).

The initial package name extracted from the filename has to be overwritten with the name retrieved from the metadata.

When using a local sdist as source, the package name of the conda recipe
was based on the sdist filename.
This used to be the same but since setuptools 69.3.0, the sdist filename is now normalized.
For example, if a package name contains a dash, it's converted to underscore.

The package name should be extracted from the metadata and not the sdist filename.
@beenje beenje requested a review from a team as a code owner April 15, 2024 13:32
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

1 participant