File: Makefile

package info (click to toggle)
python-argparse-addons 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 96 kB
  • sloc: python: 116; makefile: 26
file content (27 lines) | stat: -rw-r--r-- 640 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
.PHONY: examples

test:
	python3 setup.py test

examples:
	! PYTHONPATH=. python3 examples/integer.py --min-max -1
	! PYTHONPATH=. python3 examples/integer.py --min -1
	! PYTHONPATH=. python3 examples/integer.py --max 1000
	! PYTHONPATH=. python3 examples/integer.py --any a
	PYTHONPATH=. python3 examples/integer.py \
	    --min-max 47 --min 1000 --max -5 --any 1

test-sdist:
	rm -rf dist
	python3 setup.py sdist
	cd dist && \
	mkdir test && \
	cd test && \
	tar xf ../*.tar.gz && \
	cd argparse_addons-* && \
	python3 setup.py test

release-to-pypi:
	python3 setup.py sdist
	python3 setup.py bdist_wheel --universal
	twine upload dist/*