blob: fc0a91809b74545a3043049061c6ac27e563475b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# This is a small script to upload
# new releases to PyPI
# Create virtual environment
python3 -m venv /tmp/ws-venv/
source /tmp/ws-venv/bin/activate
# Install dependencies
pip3 install -U setuptools wheel twine
# build the package
python3 setup.py sdist bdist_wheel
# Run Twine check to verify descriptions are valid
twine check dist/*
# Upload to test PyPI first to verify everything
twine upload --repository testpypi dist/*
# Now upload to actual PyPI
twine upload dist/*
|