Skip to content

Commit 9aad44f

Browse files
author
Deromir Neves Jr
committed
Add deployment instructions
1 parent a99d0a5 commit 9aad44f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Deployment instructions
2+
3+
### Global
4+
Before deployment, change the project _version_ on `setup.py` file and set the correct _download_url_.
5+
Then make sure you have the file `~/.pypirc` with the content below and the correct credentials instead of the provided placeholders:
6+
```
7+
[distutils]
8+
index-servers =
9+
pypi
10+
pypitest
11+
12+
[pypi]
13+
repository:https://upload.pypi.org/legacy/
14+
username:myusername
15+
password:mypassword
16+
17+
[pypitest]
18+
repository:https://test.pypi.org/legacy/
19+
username:myusername
20+
password:mypassword
21+
```
22+
23+
### Test environment
24+
Run ```python setup.py sdist upload -r pypitest``` inside the project directory.
25+
26+
### Live environment
27+
Run ```python setup.py sdist upload -r pypi``` inside the project directory.

0 commit comments

Comments
 (0)