-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 1009 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
29
30
31
32
33
PROJECT = optim
ENV = env
dependencies:
test -e $(ENV) || virtualenv $(ENV) --system-site-packages
. $(ENV)/bin/activate; pip install pip setuptools --upgrade
. $(ENV)/bin/activate; pip install -r requirements.txt --use-wheel
develop: dependencies
. $(ENV)/bin/activate; python setup.py develop
install: dependencies
. $(ENV)/bin/activate; python setup.py install
clean:
find $(PROJECT) -iname "*.pyc" | xargs -I {} rm "{}"
rm -rf *.egg-info
cleanenv: clean
rm -rf $(ENV)
publish: test
echo "Are you sure you really want to publish to PyPI? [yN] "; \
read really_push; \
if [[ "$$really_push" == "y" ]]; then \
. $(ENV)/bin/activate; python setup.py sdist upload; \
echo "Publishing."; \
else \
echo "Not publishing."; \
fi
test: dependencies
. $(ENV)/bin/activate; python -m nose