-
Notifications
You must be signed in to change notification settings - Fork 306
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
Uploading broken #258
Comments
Did you read the URL in the error message that tells you how to point your twine to the new uploading endpoint and is that not working for you? |
I did upload it successfully with |
It seems as though your configuration is mildly broken in hard-coding the old URL for PyPI uploads. Twine is not broken, although we could probably do something and detect (in newest version(s) only) if you're trying to use Legacy PyPI for uploads. |
I flagged this on stackoverflow, but thought it might be helpful to share here as well... I followed the official documentation for uploading packages to PyPI, as well as the information provided in PyPI readme, but I get a HTTP 400 error each time:$ twine upload dist/*
I am using a ~/.pypirc
For packages, I am using When I use
I have not specified the repository, as that is recommendation that is given by the API when uploading. I am seeing a 404 error at the link that PyPI recommends and am not seeing an alternative site I should use!This is my first package, and I am not seeing this error elsewhere on the internet. Any thoughts re: what's going on? |
This indicates that your package contains an incorrect URI value ( |
Sorry, I think I take that back. I was looking at my checkout of the old |
i am seeing similar trying to update two packages i have had up for a while on pypi - sba and argus. when i did old python setup.py upload i got errors saying the site had moved to pypi.org; when i made the changes to .pypirc and switched to twine i get the same error messages as the original poster. i do't think it's the home page in the setup.py - on mine that is and has always been the bitbucket or github pages for the code rcs repository... |
In both I get the sense that There aren't any alternative URIs in the documentation, which is confusing for me. I thought it might just be new projects being registered, but @devangel77b makes it seem like it might be a more global issue? |
both packages i am trying to update i had registered previously on the old pypi.python.org and they have been there for some time. i get similar problems for both packages and on a few different machines, and when i tried to clone the example package and then do my own testpypi one. |
I think there's some confusion here, because there are two URLs at play. One is the URL you're uploading to, which from the error message appears that you've gotten correct ( The flip side here is that Warehouse has gotten stricter about some things, and once is validating that if your metadata includes a home page URL, that it is, in fact, a valid home page URL and not something that doesn't make sense as an URL. I suspect if you look at your |
For an example of the metadata I'm talking about, take a look a pip's setup.py#L61. You can see our value there is |
That was exactly it!! Thank you so much. By the way, the URL was for my personal website, but did not contain any code related to the package. |
I just ran into the issue. I had the URL in setup.cfg instead of setup.py. |
@lrntct I'm sorry you had that trouble! I'm going to bring this up in pypa/packaging-problems#29 because I think this is a policy question first, then an implementation question. Thanks for the report. |
I get this error when uploading files:
The text was updated successfully, but these errors were encountered: