mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-17 17:42:02 -05:00
1.5 KiB
1.5 KiB
Production
Of course, until you start these steps, make sure the package have passed all tests and checkers before continue.
-
Create a
.pypirc
file in your home folder with this[distutils] index-servers = pypi testpypi [pypi] repository:https://pypi.python.org/pypi username=your username [testpypi] repository: https://test.pypi.org/legacy/ username=your username
If you want to put also your password in that file, remember to set appropriated permission to it.
Note that you need to create an account for both sites.
-
Install TWine
sudo apt install twine
-
Register if necessary
python setup.py register
-
Create a distribution (code package and wheel)
python setup.py sdist bdist_wheel
-
Test uploading using Twine
twine upload -r testpypi dist/*
-
Check if things are OK on PyPI test page.
-
Test installing using pip from test PyPI
pip install --index-url https://test.pypi.org/project/ qdarkstyle
-
If you make sure all things are OK, upload officialy
twine upload -r pypi dist/*
-
Check if things are OK on PyPI official page.
-
Test installing using pip
pip install qdarkstyle