# just some notes about how to deal with Python modules and pip packages


# ===== pip install
pip install setuptools
pip install wheel
pip install twine


# ===== (un)install current module
pip uninstall memory_graph
pip install .
pip install --upgrade .


# ===== prepare packages for upload
# - increase version number in: setup.py memory_graph/__init__.py 
# - update images:
cd images; bash create_images.sh; cd ..
# - git commit -am "version X.X.X" && git push
rm -f ./dist/*
python setup.py check
python setup.py sdist
python setup.py bdist_wheel --universal


# ===== upload packages to pypi for 'pip install' purposes
# - upload to test url:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# - upload to pypi for real:
twine upload dist/*
