For details see Quickstart: uploading, testing, pushing releases
Update C:\Users\username\pip\pip.ini on Windows 8/10, or ~/.config/pip/pip.conf on Linux
[global]
index_url=https://[email protected]/<firstname_lastname>/dev/
OR Set env variable PIP_INDEX:
set PIP_INDEX_URL=https://[email protected]/<firstname_lastname>/dev/
Configuration file locations can be found here
-
Update the version variable in setup.py accordingly.
-
See also the test.bat or test.sh file in your repo.
-
Then run:
python setup.py bdist_wheel
# Login
$ devpi login <firstname_lastname> --password <pw>
# Change to your devpi index
$ devpi use https://login:[email protected]/<firstname_lastname>/dev/
# Upload your wheel
$ devpi upload <wheel_name>.whl
# Login
$ devpi login <firstname_lastname> --password <pw>
# Change to your devpi index
$ devpi use https://[email protected]/<firstname_lastname>/dev/
# Remove
$ devpi remove <wheel_name_with_or_without_version>
(Not recommended. Please try not to create this situation in the first place.)
# step 1: ask an admin to help. They will need ssh access to the devpi server
$ ssh [email protected]
# sudo to the devpi account. This will automatically activate the appropriate python environment as well
$ sudo su devpi
# use bash's CTL+R search to find this command with the password intact
$ devpi login root ...
$ devpi use shared/third-party
# make index editable
$ devpi index shared/third-party volatile=True
# delete the package
$ devpi remove <package_name>
# restore non-volativity
$ devpi index shared/third-party volatile=False
$ devpi index <index> acl_upload=<user list>
$ devpi user -l | tr "\\n" "," | xargs -i devpi index biarri/dev 'acl_upload={}'