-
Notifications
You must be signed in to change notification settings - Fork 30
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
TG Gowda
committed
Mar 20, 2024
1 parent
3d6cb30
commit 5002ffb
Showing
1 changed file
with
33 additions
and
0 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,33 @@ | ||
# Release instructions | ||
|
||
Using twine : https://twine.readthedocs.io/en/latest/ | ||
|
||
1. Update the `__version__` in `mtdata/__init__.py` | ||
Clear `rm -r build dist *.egg-info` if those dir exist. | ||
2. Build :: `$ python setup.py sdist bdist_wheel` | ||
where `sdist` is source code; `bdist_wheel` is universal ie. for all platforms | ||
3. Make docs: `docs/make-docs.sh` | ||
4. Upload to **testpypi** :: `$ twine upload -r testpypi dist/*` | ||
5. Upload to **pypi** :: `$ twine upload -r pypi dist/*` | ||
|
||
|
||
### The `.pypirc` file | ||
|
||
The rc file `~/.pypirc` should have something like this | ||
```ini | ||
[distutils] | ||
index-servers = | ||
pypi | ||
testpypi | ||
|
||
[pypi] | ||
repository: https://upload.pypi.org/legacy/ | ||
username:Thamme.Gowda | ||
password:<password_here> | ||
|
||
|
||
[testpypi] | ||
repository: https://test.pypi.org/legacy/ | ||
username:Thamme.Gowda | ||
password:<password_here> | ||
``` |