-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (40 loc) · 1.28 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
clean:
rm -rf *.egg-info
rm -rf ./build ./dist
rm -rf .pytest_cache
build: clean
#python3.11 setup.py sdist bdist_wheel
python3.11 -m build --sdist --wheel --outdir dist/ .
check:
twine check dist/*
publish: build check
twine upload --repository pypi dist/*
release: build check
git tag -a `python3.11 -c "import slambuc;print(slambuc.__version__)"` -m "New version release"
git pull origin main
git push origin main
git push --tags
twine upload --repository pypi dist/*
######## Testing
test:
python3.11 tests/validate_algs.py
python3.11 -m pytest -vv tests/
python3.10 -m pytest -vv tests/
test-publish: build check
twine upload --repository testpypi dist/*
######## Installation
install-req:
python3.11 -m pip install -U -r requirements.txt
dev-install: install-req
python3.11 -m pip install --no-cache-dir --no-deps -e .
test-install: build
python3.11 -m pip install --no-cache-dir --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ slambuc
uninstall:
python3.11 -m pip uninstall slambuc
######## Documentation
doc:
pydoc-markdown --with-processors --dump | docspec -m --dump-tree
pydoc-markdown -p slambuc -v --py3 --render-toc > docs/slambuc_api.md
.PHONY: clean check test install-req uninstall doc
.DEFAULT_GOAL := build