forked from man-group/pytest-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (54 loc) · 1.86 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
67
68
69
# Package list, in order of ancestry
# removed pytest-qt-app
EXTRA_DEPS = setuptools-git \
pytest-timeout \
pypandoc \
wheel \
coverage \
python-jenkins \
redis \
pymongo \
psycopg2 \
boto3 \
rethinkdb \
docker \
kubernetes
COPY_FILES = VERSION CHANGES.md common_setup.py MANIFEST.in LICENSE
UPLOAD_OPTS =
# removed from PHONY: circleci_sip circleci_pyqt
.PHONY: extras copyfiles wheels eggs sdists install develop test upload clean
extras:
pip install $(EXTRA_DEPS)
copyfiles:
./foreach.sh 'for file in $(COPY_FILES); do cp ../$$file .; done'
wheels: copyfiles
pip install -U wheel
./foreach.sh --changed 'python setup.py bdist_wheel'
eggs: copyfiles
./foreach.sh --changed 'python setup.py bdist_egg'
sdists: copyfiles
./foreach.sh --changed 'python setup.py sdist'
install: copyfiles
pip install -U wheel
./foreach.sh 'python setup.py bdist_wheel'
./foreach.sh 'pip install dist/*.whl'
develop: copyfiles extras
./foreach.sh 'pip install -e.[tests]'
test:
rm -f FAILED-*
./foreach.sh 'DEBUG=1 python setup.py test -sv -ra || touch ../FAILED-$$PKG'
bash -c "! compgen -G 'FAILED-*'"
test-ci:
rm -f FAILED-*
./foreach.sh 'cat *.egg-info/top_level.txt | xargs -Ipysrc coverage run -p --source=pysrc setup.py test -sv -ra --timeout 120 || touch ../FAILED-$$PKG'
upload:
pip install twine
./foreach.sh --changed '[ -f common_setup.py ] && twine upload $(UPLOAD_OPTS) dist/*'
clean:
./foreach.sh 'rm -rf build dist *.xml *.egg-info .eggs htmlcov .cache $(COPY_FILES)'
rm -rf pytest-pyramid-server/vx pip-log.txt
find . -name *.pyc -delete
find . -name .coverage -delete
find . -name .coverage.* -delete
rm -f FAILED-*
all: extras develop test