Skip to content
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

doesn't work with my pypirc file. #61

Closed
rbtcollins opened this issue Nov 17, 2014 · 8 comments · Fixed by #83
Closed

doesn't work with my pypirc file. #61

rbtcollins opened this issue Nov 17, 2014 · 8 comments · Fixed by #83
Assignees
Milestone

Comments

@rbtcollins
Copy link

My ~/.pypirc file contains:
"""[server-login]
username:name
password:password
""""

but twine barfs on this. setup.py upload works fine.

@rbtcollins rbtcollins changed the title doesn doesn't work with my pypirc file. Nov 17, 2014
@wernerfb
Copy link

Similar issue:
my pypirc contains:
[distutils]
index-servers=
pypi
test

[test]
repository = https://testpypi.python.org/pypi
username = id
password = pw

[pypi]
repository = https://pypi.python.org/pypi
username = id
password = pw

It works with setup.py upload but with this command:
D:\devTools\ObjectListView>c:\python27\scripts\twine-upload.exe upload dist/* -r https://testpypi.python.org/pypi
I get a key error:
KeyError: Missing 'https://testpypi.python.org/pypi' section from the configuration file

@sigmavirus24
Copy link
Member

@wernerfb I think twine is expecting you to do -r test not -r https://testpypi.python.org/pypi.

@sigmavirus24 sigmavirus24 added this to the 1.4 milestone Dec 8, 2014
@wernerfb
Copy link

wernerfb commented Dec 8, 2014

Hi Ian,

On 12/8/2014 4:38, Ian Cordasco wrote:

@wernerfb https://github.com/wernerfb I think twine is expecting you
to do |-r test| not |-r https://testpypi.python.org/pypi|.

Thanks, yeap that is working.

Werner

@sigmavirus24
Copy link
Member

@rbtcollins could you provide a better description of what "barfs" means please? I think I know what the issue is, but I want to make sure. Also could you provide a little more detail about your .pypirc?

@sigmavirus24 sigmavirus24 modified the milestones: next, 1.4 Dec 12, 2014
@sigmavirus24
Copy link
Member

So this is supported by distutils and is the "old format" of the .pypirc file (it may also be deprecated). It shouldn't be too hard to support (now that I'm certain it should work).

@sorenwacker
Copy link

The website https://packaging.python.org/tutorials/packaging-projects/ seems to be terribly outdated.

@sigmavirus24
Copy link
Member

@soerendip this is not the place to complain about that.

@pypa pypa locked and limited conversation to collaborators Feb 12, 2020
@bhrutledge
Copy link
Contributor

@soerendip A more appropriate place would be https://github.com/pypa/packaging.python.org/issues, though I'd encourage you to review the existing issues before filing a new one. And, if you choose to update or add an issue, provide details on how you feel that the docs could be improved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants