-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
45 lines (35 loc) · 1.08 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
.PHONY: init test clean_coverage test_coverage distclean distcheck dist install
init36:
# packages are deprecating support, so this uses exact versions
pip install -r requirements.txt
init:
pip install --use-feature=in-tree-build .
unit:
PYTHONPATH=. py.test --doctest-modules cdx_toolkit tests/unit -v -v
test:
PYTHONPATH=. py.test --doctest-modules cdx_toolkit tests -v -v
PYTHONPATH=. examples/iter-and-warc.py
clean_coverage:
rm -f .coverage
test_coverage: clean_coverage
# PYTHONPATH=. coverage run -a --source=cdx_toolkit,examples examples/iter-and-warc.py
# -rA to see all output, pass or fail
# LOGLEVEL=DEBUG
# -vvvv -s
PYTHONPATH=. py.test -rA -s --doctest-modules --cov-report=xml --cov-append --cov cdx_toolkit tests -v -v
coverage report
distclean:
rm -rf dist/
distcheck: distclean
python ./setup.py sdist
twine check dist/*
dist: distclean
echo " Finishe CHANGELOG.md and commit it."
echo " git tag --list"
echo " git tag 0.x.x # no v"
echo " git push --tags"
python ./setup.py sdist
twine check dist/*
twine upload dist/* -r pypi
install:
pip install .