Workflow instructions for
protes
developers.
-
Create and activate a virtual environment:
conda create --name PROTES python=3.10 -y && conda activate PROTES
-
Install special dependencies (for developers only):
pip install jupyterlab twine
-
Install
protes
from the source:python setup.py install
You may also use the command
pip install --no-cache-dir protes
to install the current public version. -
Reinstall
protes
from the source (after updates of the code):clear && pip uninstall protes -y && python setup.py install
-
Optionally delete virtual environment at the end of the work:
conda activate && conda remove --name PROTES --all -y
-
Reinstall the package from the source and run the demo scripts to check the correctness of the code:
pip uninstall protes -y && python setup.py install && clear && python demo/demo_func.py && python demo/demo_qubo.py && python demo/demo_func_general.py
-
Update version (like
0.3.X
) inprotes/__init__.py
andREADME.md
files, whereX
is a new subversion number -
Do commit like
Update version (0.3.X)
and push -
Upload new version to
pypi
(login: AndreiChertkov)rm -r ./dist && python setup.py sdist bdist_wheel && twine upload dist/*
-
Reinstall the package from
pypi
and check that the installed version is new:pip uninstall protes -y && pip install --no-cache-dir --upgrade protes