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

Dependency packages aren't listed in PyPI API #425

Closed
wch opened this issue May 30, 2022 · 2 comments
Closed

Dependency packages aren't listed in PyPI API #425

wch opened this issue May 30, 2022 · 2 comments

Comments

@wch
Copy link

wch commented May 30, 2022

When querying the PyPI JSON API, the dependency packages aren't listed in the requires_dist field: https://pypi.org/pypi/siuba/json

I think that in order to determine the dependencies of the package, the wheel or sdist must be downloaded, and then it has to run setup.py. This is slower and more complicated to implement.

I think this can be addressed by using a setup.cfg file.

Here's a similar issue: jupyter/jupyter#361

@machow
Copy link
Owner

machow commented May 31, 2022

Thanks for opening--does the latest release resolve the issue for you? (looks like requires_dist has entries now!)

image

I think the problem was that--up until this last release--siuba only deployed sdists. I implemented the CI to also publish wheels, and then manually pushed a wheel for the last release. But it turns out that pypi cares about the order you publish releases in. pypi/warehouse#474 (comment)

Since it now releases both sdist and wheel at the same time, pypi should fill out requires_dist now!

@wch
Copy link
Author

wch commented May 31, 2022

It's good now, thanks!

@wch wch closed this as completed May 31, 2022
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

No branches or pull requests

2 participants