-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (29 loc) · 907 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
34
35
36
37
38
39
update-and-push:
sh ./update-and-push.sh version
nvenv: make-venv
make-venv:
wget https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py
pip2.7 install virtualenv
python2.7 -m virtualenv ~/nvenv --python=python2.7 --no-site-packages
install-deps: make-venv
~/nvenv/bin/pip install -Ur requirements.txt
~/nvenv/bin/pip install coverage nose codacy-coverage
test-unit:
. ~/nvenv/bin/activate
mayapy -m nose -c tests/.noserc --xunit-file=$(TEST_PATH)/noselog$(MAYA_VERSION).xml
upload-coverage:
. ~/nvenv/bin/activate
~/nvenv/bin/coverage xml
~/nvenv/bin/python-codacy-coverage -r coverage.xml
verify-git-tag: make-venv
. ~/nvenv/bin/activate
~/nvenv/bin/python setup.py verify
dist:
# create a source distribution
~/nvenv/bin/python setup.py sdist
# create a wheel
~/nvenv/bin/python setup.py bdist_wheel
upload-to-pypi:
. ~/nvenv/bin/activate
~/nvenv/bin/twine upload dist/*