On Mon, Nov 17, 2014 at 1:04 PM, Matt Wilkie <[email protected]> wrote:

> python setup.py sdist upload



This is the tricky part, there's a bunch of prep-work that's hidden,
involving getting a properly formatted ~/.pypirc. It looks very
straightforward, according to docs, but in practice I've found devilishly
difficult. There are bugs lurking in distutils/setuptools/something. I've
had my .pypirc mangled by "register" and had to rebuild manually. Anyway:

Step 1:
python setup.py register

and answer wizard steps, you'll need your pypi user and pass handy. DO save
at end.

Step 2: manually edit %HOME%\.pypirc and make sure it resembles below. DONT
use httpS.

Step 3: the commands in previous message (`python setup.py sdist upload`)


Here's my .pypirc:

[distutils]
index-servers =
    pypi
    testpypi

[pypi]
repository: http://pypi.python.org/pypi
username: {{omitted}}
password: {{omitted}}

[testpypi]
repository: http://testpypi.python.org/pypi
username: {{omitted}}
password: {{omitted}}


It really is a horrible system. The user and pass are sent in clear text. I
don't know what's taking them so long to use SSH keys or OpenID or..., but
frankly it's to Python's detriment. I hope they get it sorted out sooner
than later.

-matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to