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

Confusing registration argument, package #175

Closed
mmulich opened this issue May 24, 2016 · 4 comments
Closed

Confusing registration argument, package #175

mmulich opened this issue May 24, 2016 · 4 comments

Comments

@mmulich
Copy link

mmulich commented May 24, 2016

It's not real clear what the package argument should be when using the register command.

My inclination is to either supply the name of the package I want to register or the path to the distribution. But neither of these seems to work? What is it that I am suppose to be using?

> twine register -r pypitest mypackage
Registering package to https://testpypi.python.org/pypi
PackageNotFound: "mypackage" does not exist on the file system.
> twine register -r pypitest .
Registering package to https://testpypi.python.org/pypi
ValueError: Unknown distribution format: '.'
> twine register -r pypitest mypackage/
Registering package to https://testpypi.python.org/pypi
ValueError: Unknown distribution format: ''

Falling back to setup.py register for now... 😦

Note, I see something similar in #8.

@annaraven
Copy link
Contributor

I believe you need to either use mypackage/* or mypackage/foo.whl

@sigmavirus24
Copy link
Member

It should be along the lines of:

python setup.py sdist
twine register -r pypitest dist/my-package.tar.gz

As mentioned in https://github.com/pypa/twine#usage

@annaraven
Copy link
Contributor

I think this can be closed now.

@sigmavirus24
Copy link
Member

Thanks @annaraven! (I've become bad at closing bugs)

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

No branches or pull requests

3 participants