-
Notifications
You must be signed in to change notification settings - Fork 310
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
Make twine work without a config file #143
Comments
👍 |
@johnnoone is that a 👍 you'd like to tackle this or a 👍 for some other reason? If you're in favor of this feature, could you please articulate why you're in favor of it and how you plan to use it? That would be far more helpful than a 👍 |
@sigmavirus24 Would you take a PR which enables twine to get the username and password from the environment? |
Usage: set these variables via the CI UI (e.g by using a secure string in |
I would like to publish automatically my packages in a in-house repository when it pass all checks. Making config file optional and adding a 'repository-url' parameter would improve CI workflow. This is an example of an actual CI scripts: python -m pip install twine wheel
python setup.py sdist bdist_wheel
cat <<- EOF > .pypirc
[$REPOSITORY]
repository: $URL
username: $USER
password: $PASSWORD
EOF
twine upload --config-file .pypirc -r $REPOSITORY dist/* And the same with an hypothetical repository-url parameter: python -m pip install twine wheel
python setup.py sdist bdist_wheel
twine upload -u $USER -p $PASSWORD --repository-url $URL dist/* |
Implementing #144 (comment) would help for password and username... Then it only needs an additional |
I wanted to add twine to a CI script but it wasn't trivial to find the pypirc file, so I had to regenerate via echo "..." calls (windows).
It would be nice of twine could work with https://testpypi.python.org/pypi without first adding a config file .
The text was updated successfully, but these errors were encountered: