-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease_new_version.sh
28 lines (23 loc) · 1.06 KB
/
release_new_version.sh
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
echo "make sure you changed version number in setup.py"
rm -r build/
rm -r dist/
rm -r flexpy.egg-info/
/usr/bin/python3.8 setup.py sdist bdist_wheel
# # to test without having to change version number: install via pip directly from git branch (on remote)
# python -m pip install git+https://github.com/kuhron/flexpy.git@main
# # upload to testpypi
# twine upload --repository testpypi dist/*
# # use virtualenv to test new version
# mkvirtualenv flexpy
# # (if it already exists, rmvirtualenv it and make new one)
# workon flexpy
# # (it will already put you in virtualenv after you make it, but workon is how you enter an existing one)
# cd # get out of the flexpy dir or that module will be in python's vision and it will think you already got the new version from pip
# python -m pip install --index-url https://test.pypi.org/simple/ flexpy
# # now new flexpy should be installed in the venv so you can try it out
# python # test stuff
# deactivate # exit virtualenv
# rmvirtualenv flexpy
# # upload to pypi
# twine upload dist/*
# python -m pip install flexpy --upgrade