forked from capytaine/capytaine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 805 Bytes
/
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
install:
pip install .
develop:
pip install -e .[develop]
test: develop
python -m pytest
clean:
rm -f capytaine/green_functions/libs/*.so
rm -rf build/
rm -rf dist/
rm -rf capytaine.egg-info/
rm -rf docs/_build
rm -rf .pytest_cache/
rm -rf .hypothesis/
rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__
full_archive: clean
# See https://github.com/capytaine/capytaine/issues/221 for the motivation
read -p "Version number:" version && tar caf /tmp/capytaine-full-$$version.tar.gz --transform "s,^./,capytaine-$$version/," --exclude '*.tar.gz' --exclude './.git/*' --exclude-vcs-ignores . && mv /tmp/capytaine-full-$$version.tar.gz ./
pypi: clean
python setup.py sdist
python -m twine upload dist/capytaine*.tar.gz
.PHONY: install develop test clean full_archive pypi