-
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
upload to testpypi.python.org #189
Comments
Hi Mojeto: Have you tried specifying the repo when you upload? By default twine will upload to pypi. If you want to specifying, change your pypirc to something like: [pypi] [testpypi] <---Note the different repo name Then change your command line to specify the repo with: |
@annaraven thanks for your help! @mojeto however has identified a real bug in the code. :) |
#192 will probably fix this. |
Fixed in afc9956. |
Hi,
I'm trying to upload package into testpypi.python.org.
my ~/.pypirc file:
[distutils]
index-servers=
pypi
[pypi]
repository = https://testpypi.python.org/pypi
username = mojeto
password = ........
I run 'twine register dist/....' it works and register my package to testpypi.python.org.
Next I run 'twine upload dist/*'
that fails with
Uploading distributions to https://testpypi.python.org/pypi
ValueError: No JSON object could be decoded
I debug it and I think problem is here https://github.com/pypa/twine/blob/master/twine/repository.py#L163
It tries load information about package from pypi.python.org, but I register my package on testpypi.python.org only so it fails.
The text was updated successfully, but these errors were encountered: