-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreleasesteps
35 lines (29 loc) · 925 Bytes
/
releasesteps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
###################### Testing ################
cd tests
pytest
cd ../devtests
bash devtests.sh
cd ..
###################### Update version #########
update version in: setup.py, setup.cfg
###################### Write docs #############
######### (from root ltempy directory)
pdoc --html --force -c latex_math=True -o docs ltempy
mv docs/ltempy/* docs/
rm -r docs/ltempy
##################### VCS #####################
git add .
git commit -m 'commit message'
git tag {version number}
git push --tags
git push origin
##################### Build the Dist and upload to PyPi
rm -rf build dist *.egg-info
pip install --upgrade build twine
python -m build
python -m twine upload dist/*
################### Check the install from PyPi #######
python -m venv ivenv
source ivenv/bin/activate
pip install (--extra-index-url https://test.pypi.org/simple/) ltempy
Parentheses for deployment to test.pypi.org rather than pypi.org