forked from davedoesdev/python-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (30 loc) · 947 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (30 loc) · 947 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
export PYTHONPATH=.
name=$(shell grep name= setup.py | awk -F "'" '{print $$2}')
version=$(shell grep version= setup.py | awk -F "'" '{print $$2}')
all: lint test
docs: build_docs
build_docs:
cd docs && make html
lint:
pylint python_jwt test bench
test: run_test
run_test:
./test/run/run_pyvows.py -v test
coverage: run_coverage
run_coverage:
./test/run/run_coverage.py run --source=python_jwt -m test.run.run_pyvows -v test
./test/run/run_coverage.py html --fail-under=85 -d coverage/html
./test/run/run_coverage.py xml --fail-under=85 -o coverage/coverage.xml
bench: run_bench
run_bench:
for b in ./bench/*_bench.py; do $$b; done
bench_gfm:
for b in ./bench/*_bench.py; do $$b --gfm; done
node_deps:
mkdir -p node_modules && npm install --python=python2.7 jose sinon
dist: make_dist
make_dist:
python3 setup.py sdist
python3 setup.py bdist_wheel --universal
upload:
python3 -m twine upload dist/$(name)-$(version)*