Twine: Uploading to testpypi

Created on 15 Nov 2015  路  12Comments  路  Source: pypa/twine

I had some trouble with using twine to upload a package to testpypi. I tried like this

$ twine upload -r testpypi dist/sphinxcontrib-lunrsearch-0.1.tar.gz
Uploading distributions to https://pypi.python.org/pypi
Uploading sphinxcontrib-lunrsearch-0.1.tar.gz

But it looks like it went to regular pypi. I assume I'm doing something wrong here, but any docs on how twine and testpypi together would be appreciated.

Most helpful comment

No. I decided I don't care.

All 12 comments

Were you able to resolve the issue?

No. I decided I don't care.

Isn't it called pypitest, not testpypi?

That's probably why it's defaulting to pypi...

What up Reddit.

We've all been there
https://www.reddit.com/r/ProgrammerHumor/comments/6kmq6s/weve_all_been_there/

Crosslinking. Since it's funny :)

For anyone who is looking for the solution, it's likely that your ~/.pypirc file is misconfigured and you copied and pasted the pypi URL into the entry for testpypi.

Ensure the testpypi repo entry matches something like this

[testpypi]
repository = https://testpypi.python.org/pypi
username = <your user name goes here>
password = <your test password goes here>

Real answer is always in the comments 馃憤

@rmcgibbo its okay, @SippieCup solved it for ya

Hi reddit

Hey guys, it would be really nice if you would stop posting unrelated comments about Reddit. This is not a forum or discussion board. Please be respectful to the repository owner(s).

Waddup reddit!

Thanks to folks who have commented here and shared bug reports and tips.

The newly improved Test PyPI guide has .pypirc instructions -- feel free to signal-boost it. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brainwane picture brainwane  路  6Comments

anentropic picture anentropic  路  8Comments

sigmavirus24 picture sigmavirus24  路  8Comments

gaborbernat picture gaborbernat  路  6Comments

edmorley picture edmorley  路  11Comments