-
Notifications
You must be signed in to change notification settings - Fork 306
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
Improve usability by providing command to build and upload in a single step #160
Comments
To submit a new package, you simply need to have your package ready to registration and then you can do
You've asked us to stream-line something without proposing what pieces to stream-line. Do you want us to remove the necessity to install |
It's good to know that runs to pip install -U twine My suggestion for streamlining would be to implement the single-command workflow, e.g.
This would
There's no way to automate the |
So I'm very wary of overloading
Which will build the package files (based on the arguments you provide) into
To test things first. The other consideration is that we need to know exactly which parameters
|
I like that. |
🍰 I'm working on something right now, but I should be able to get around to this sometime this weekend unless you'd like to take a crack at this. |
See also pypa/packaging-problems#60 I'd like commands |
pip publish would rock! I do think creating the sdists and/or wheels should be a separate step, but love the idea of being able to use pip to just publish all the recent versions of my extensions or packages. It would be nice if we didn't have to specify the particular sdist or whl like we do now with register. Looking forward to the new api. |
@sigmavirus24 As the last maintainer to comment on this (albeit 3+ years ago), do you have any more thoughts? As a new maintainer, this feels out of scope for Twine, and I'm inclined to close this issue. |
A much broader level discussion on this topic: https://discuss.python.org/t/building-distributions-and-drawing-the-platypus/2062 |
Closing as a duplicate of #593. |
Imagine you're trying to convince someone new to Python Packaging into uploading their first package to PyPI. Here's what you used to say to them:
python setup.py sdist register upload
EDIT: I'd forgotten that step 1 wasn't necessary -- if you don't have an account, running
python setup.py register
will offer to create one for you, according to the Python Packaging Guide.With Twine this instead becomes
dist/
:rm -rf dist
(assuming they're not using Windows)python setup.py sdist
pip install twine
twine upload dist/*
This extra process complexity drives people into continuing to use the less-secure
python setup.py sdist register upload
alternative. Can we streamline the Twine-based process for uploading new packages?The text was updated successfully, but these errors were encountered: