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

PyPI distribution doesn't include sources for v0.16.0 #175

Closed
davidbrochart opened this issue Jul 24, 2022 · 8 comments · Fixed by #176
Closed

PyPI distribution doesn't include sources for v0.16.0 #175

davidbrochart opened this issue Jul 24, 2022 · 8 comments · Fixed by #176
Labels

Comments

@davidbrochart
Copy link
Collaborator

Description

The source distribution is not included in PyPI for v0.16.0. It used to be in v0.15.0.
I think this is the cause of this conda-forge package issue.

Example Code

No response

Watchfiles Output

No response

Operating System & Architecture

N/A

Environment

No response

Python & Watchfiles Version

v0.16.0

Rust & Cargo Version

No response

@samuelcolvin
Copy link
Owner

Makes sense, weird it's not. Will fix tomorrow.

@samuelcolvin
Copy link
Owner

samuelcolvin commented Jul 25, 2022

Explained by PyO3/maturin-action#58 (comment).

Fix building now.

@davidbrochart
Copy link
Collaborator Author

I can see the source distribution on PyPI, but I get a 404 with:

wget https://pypi.io/packages/source/w/watchfiles/watchfiles-0.16.1.tar.gz

While this works fine:

wget https://pypi.io/packages/source/w/watchfiles/watchfiles-0.15.0.tar.gz

Any idea?

@samuelcolvin
Copy link
Owner

PyPI's cache being weird,

The following (link copied from https://pypi.org/project/watchfiles/0.16.1/#files) works fine

➤  curl -IL https://files.pythonhosted.org/packages/49/91/a9fbbe005ebb36fc17f78cf0dbe54ba71423375a7d6d6c75c01328fee6f0/watchfiles-0.16.1.tar.gz
HTTP/2 200 
last-modified: Mon, 25 Jul 2022 16:04:38 GMT
...

@davidbrochart
Copy link
Collaborator Author

But this is the URL schema for Python packages hosted on PyPI in conda-forge:

https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz

With name = watchfiles and version = 0.16.1. It has always been like that and I don't think we can change it.

@davidbrochart
Copy link
Collaborator Author

@samuelcolvin your URL has a hash, but this seems to work:

https://files.pythonhosted.org/packages/source/w/watchfiles/watchfiles-0.16.1.tar.gz

Not sure if it's a general URL change in PyPI or a temporary issue.

@davidbrochart
Copy link
Collaborator Author

davidbrochart commented Jul 25, 2022

https://pypi.io/packages/source/w/watchfiles/watchfiles-0.16.1.tar.gz seems to work again, I'm updating the feedstock.

@samuelcolvin
Copy link
Owner

Thanks, my guess is you tried the URL before the file was ready and pypi or some part of it's CDN cached the 404, but hard to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants