File: Makefile

package info (click to toggle)
python-libarchive-c 2.1-3.1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 836 kB
  • sloc: python: 808; makefile: 26; sh: 8
file content (26 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (2)
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
clean:
	rm -rf build dist *.egg-info
	find . -name \*.pyc -delete

env: requirements_tests.txt
	virtualenv3 ./env
	virtualenv2 ./env
	./env/bin/pip3 install -r requirements_tests.txt
	./env/bin/pip2 install -r requirements_tests.txt

dist:
	python3 setup.py sdist bdist_wheel
	python2 setup.py sdist

lint: env
	./env/bin/flake8 libarchive tests

test: env
	./env/bin/py.test-3.4 -s -vv --cov libarchive --cov-report html ./tests
	./env/bin/py.test-2.7 -s -vv --cov libarchive ./tests
	@$(MAKE) --no-print-directory lint

tests: test

upload:
	python3 setup.py sdist bdist_wheel upload