To use git flow
install it by: sudo apt install git-flow
git flow release start 0.4.35 | git checkout -b release/0.4.35 develop
-
setup( name='ibllib', version='0.4.34', --> version='0.4.35' ...
Committ changes normally to current release/0.4.35 branch
Normal push and pull for sharing an unfinished release branch apply
git flow release finish 0.4.35 | git checkout master
| git merge --no-ff release/0.4.35
| git tag -a 0.4.35
| git checkout develop
| git merge --no-ff release/0.4.35
| git branch -d release/0.4.35
git push origin master
git push origin develop
git push origin --tags
.
.
.
.
First remove anything in ibllib/python/dist/*
Then build
rm -R dist
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
As lib
Activate environment and upgrade
conda activate iblenv
pip install ibllib --upgrade
As code installed with pip install -e .
cd /my/ibllib/repo/path
git reset --hard
git pull