-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mart Somermaa
committed
Oct 21, 2018
1 parent
4142afd
commit 827a358
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Publishing | ||
|
||
See https://packaging.python.org/tutorials/packaging-projects/ | ||
|
||
## Steps | ||
|
||
```sh | ||
pip install --user --upgrade setuptools wheel | ||
pip install --user --upgrade twine | ||
|
||
python setup.py sdist bdist_wheel | ||
twine upload -r pypi dist/* | ||
``` | ||
|
||
## ~/.pypirc | ||
|
||
```ini | ||
[distutils] | ||
index-servers = pypi pypitest | ||
|
||
[pypi] | ||
repository: https://upload.pypi.org/legacy/ | ||
username: mrts | ||
password: ... | ||
|
||
[pypitest] | ||
repository: https://test.pypi.org/legacy/ | ||
username: mrts | ||
password: ... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters