-
Notifications
You must be signed in to change notification settings - Fork 308
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
--repository-url test.pypi.org has no effect #269
Comments
Reading this rant: https://gist.github.com/boppreh/ac7522b3a4ac46b4f6010eecddc57f21 I found that the correct URL is https://test.pypi.org/legacy/. So this is just a documentation/timing issue, I suppose. I left the decision to close this to the maintainers. |
This behavior is a bit confusing to me as well: With nothing in
However with a
It attempts to upload to
Where I would expect it to just fail and complain about an incomplete URL. |
I'm looking into this. This comment is basically a note to myself as I try to figure out more about the issue and fix it:
|
I can still reproduce this on git master.
I have a WIP branch where I change this by making us far less tolerant of
from |
Check for repository URL that has no protocol prefix and raise exception, asking user for https:// or http:// URL. Assume the user wants to upload to PyPI if there's no conflicting repository URL given on the command line AND there's a `pypi` section in .pypirc. Remove assumption that a 'pypirc' section in .pypirc should override CLI argument. Fixes #269.
Check for repository URL that has no protocol prefix and raise exception, asking user for https:// or http:// URL. Assume the user wants to upload to PyPI if there's no conflicting repository URL given on the command line AND there's a `pypi` section in .pypirc. Remove assumption that a 'pypi' section in .pypirc should override CLI argument. Fixes #269.
Check for repository URL that has no protocol prefix and raise exception, asking user for https:// or http:// URL. Assume the user wants to upload to PyPI if there's no conflicting repository URL given on the command line AND there's a `pypi` section in .pypirc. Remove assumption that a 'pypi' section in .pypirc should override CLI argument. Fixes #269.
I am able to successfully upload my package using twine upload dist/*. However, when I try using TestPyPI with the command: twine upload --repository testpypi dist/*, I get the following error: InvalidConfiguration: Missing 'testpypi' section from the configuration file How can I fix this? |
@Addicted-to-coding Can you share the contents of your Also, what's the output of |
I just tried to do a test upload to https://test.pypi.org/ (which I assumed is the equivalent of https://testpypi.python.org/pypi) but it got uploaded to https://pypi.org/ instead. Is this a Twine bug?
The text was updated successfully, but these errors were encountered: