forked from 360youlun/targetprocess-client
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 897 Bytes
/
Makefile
File metadata and controls
47 lines (37 loc) · 897 Bytes
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
help:
@echo " env create a development environment using virtualenv"
@echo " deps install dependencies"
@echo " clean remove unwanted stuff"
@echo " coverage run tests with code coverage"
@echo " test run tests"
env_pre:
pip install virtualenv
env_post:
. env/bin/activate && \
make deps
env2: clean
make env_pre
virtualenv -p python2.7 env
make env_post
env3: clean
make env_pre
virtualenv -p python3 env
make env_post
deps:
pip install -r requirements.txt
clean:
rm -rf build
rm -rf dist
rm -rf env
rm -rf targetprocess_client.egg-info
find . -name '*.pyc' -exec rm -f {} \;
coverage:
coverage run --omit=tests -m unittest discover
test:
python -m unittest discover
build: clean
python setup.py sdist
python setup.py bdist_wheel
upload: clean
python setup.py sdist upload -r pypi
python setup.py bdist_wheel upload -r pypi