forked from ekalinin/nodeenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (55 loc) · 1.93 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
60
61
62
63
64
65
66
.PHONY: deploy deploy-github deploy-pypi update-pypi clean tests
deploy-github:
git tag `grep "nodeenv_version =" nodeenv.py | grep -o -E '[0-9]\.[0-9]\.[0-9]{1,2}'`
git push --tags origin master
deploy-pypi:
python setup.py sdist upload
update-pypi:
python setup.py register
deploy: deploy-github deploy-pypi
clean:
@rm -rf nodeenv.egg-info/
@rm -rf dist/
@rm -rf build/
@rm -rf env/
@rm -rf nodeenv/
test1:
@echo " * test1: separate nodejs's env"
@rm -rf env && \
virtualenv --no-site-packages env && \
. env/bin/activate && \
python setup.py install && \
rm -rf nodeenv && \
nodeenv -j 4 nodeenv
test2:
@echo " * test2: the same virtualenv's env, with 4 jobs"
@rm -rf env && \
virtualenv --no-site-packages env && \
. env/bin/activate && \
python setup.py install && \
nodeenv -j 4 -p
test3:
@echo " * test3: the same virtualenv's env, without any params"
@rm -rf env && \
virtualenv --no-site-packages env && \
. env/bin/activate && \
python setup.py install && \
nodeenv -p
test4:
@echo " * test4: separate nodejs's env for python3.3"
@rm -rf env && \
virtualenv --no-site-packages --python=python3.3 env && \
. env/bin/activate && \
python3.3 setup.py install && \
python3.3 nodeenv -j 4 -p
tests: clean test1 clean test2 clean test3 clean
contributors:
@echo "Nodeenv is written and maintained by Eugene Kalinin." > AUTHORS
@echo "" >> AUTHORS
@echo "Patches and Suggestions" >> AUTHORS
@echo '```````````````````````' >> AUTHORS
@echo "" >> AUTHORS
@git log --raw | grep "^Author: " | \
sort | uniq -c | sort -n -r | \
cut -d ':' -f 2 | sed 's/^/- /' | \
cut -d '<' -f1 | uniq | tail -n +3 >> AUTHORS