-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 940 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 940 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
clean:
find . \( -type d -name __pycache__ -o -name .pytest_cache \) | xargs rm -r
rm -rf .mypy_cache
rm -rf .coverage
prereqs prerequisites:
./scripts/setup_prerequisites.sh
tests: lint mypy bandit ftests
lint:
python -m pylint module_resources/
mypy:
python -m mypy module_resources/
bandit:
python -m bandit -r .
ftests functional_tests:
python -m pytest -vv tests/functional/
preview-deployment:
-rm -r dist/
python setup.py sdist
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* -p $(TWINE_TEST_PASSWORD)
deployment:
-rm -r dist/
python setup.py sdist
python -m twine upload dist/*
virtualenv:
virtualenv --python=python3.7 .venv
. .venv/bin/activate && pip install -r requirements-dev.txt && pip install -r requirements-publish.txt
contributors:
git log --format='%ae' | uniq > CONTRIBUTORS.txt
tag-%:
git tag -a $(shell ./scripts/bump_tag.py $(subst tag-,,$@))
.PHONY: tests