File: makefile

package info (click to toggle)
locket 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 120 kB
  • sloc: python: 419; makefile: 25
file content (28 lines) | stat: -rw-r--r-- 603 bytes parent folder | download
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
.PHONY: test upload clean bootstrap

test:
	sh -c '. _virtualenv/bin/activate; nosetests tests'

upload:
	_virtualenv/bin/python setup.py sdist bdist_wheel upload
	make clean

register:
	python setup.py register

clean:
	rm -f MANIFEST
	rm -rf dist

bootstrap: _virtualenv
	_virtualenv/bin/pip install -e .
ifneq ($(wildcard test-requirements.txt),)
	_virtualenv/bin/pip install -r test-requirements.txt
endif
	make clean

_virtualenv:
	python3 -m venv _virtualenv
	_virtualenv/bin/pip install --upgrade pip
	_virtualenv/bin/pip install --upgrade setuptools
	_virtualenv/bin/pip install --upgrade wheel