-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.txt
More file actions
28 lines (19 loc) · 775 Bytes
/
Copy pathinstall.txt
File metadata and controls
28 lines (19 loc) · 775 Bytes
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
# just some notes about how to deal with Python modules and pip packages
# ===== pip install
pip install --upgrade build twine setuptools wheel
# ===== (un)install current module
pip uninstall invocation_tree
pip install .
pip install --upgrade .
# ===== prepare packages for upload
# - increase version number in: pyproject.toml invocation_tree/__init__.py
# - update images:
cd images; bash create_images.sh; cd ..
# - git commit -am "version X.X.X" && git push
git status | grep 'invocation_tree'
rm -rf ./dist/ ./build/ ./*.egg-info && python -m build -n -s -w
# ===== 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/*