-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (49 loc) · 1.1 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
setup: ## Sets up the dev environment
./setup.sh
install:
( \
source .venv/bin/activate; \
pip install --editable .; \
)
package:
( \
source .venv/bin/activate; \
rm -rf ./dist; \
python setup.py sdist bdist_wheel; \
)
test-publish:
( \
source .venv/bin/activate; \
python -m twine upload --repository testpypi dist/*; \
python -m pip install --extra-index-url https://test.pypi.org/simple sdo-cli==0.0.3; \
)
publish: package
( \
source .venv/bin/activate; \
python -m twine upload --verbose -r pypi dist/*; \
VERSION=$$(python setup.py --version); \
echo $${VERSION}; \
git tag $${VERSION}; \
git push origin --tags; \
gh release create $${VERSION} --generate-notes; \
)
dev:
docker compose up
dev-down:
docker compose down --remove-orphans --volumes
pip-freeze:
pip freeze > requirements.txt
pip-list-outdated:
pip list --outdated
notebook:
( \
source .venv/bin/activate; \
trap "deactivate; exit" INT; \
jupyter notebook; \
)
visdom:
( \
source .venv/bin/activate; \
trap "deactivate; exit" INT; \
python3 -m visdom.server -port 8080; \
)