forked from gtalarico/pyairtable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (43 loc) · 1 KB
/
Makefile
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
48
49
50
51
52
53
54
55
56
.PHONY: test docs setup
usage:
cat Makefile
setup:
git config core.hooksPath scripts/githooks
pip install -e .
pip install -r requirements-test.txt -r requirements-dev.txt
release:
make clean
python -m build --sdist --wheel --outdir ./dist
twine upload ./dist/*
release-test:
make clean
python -m build --sdist --wheel --outdir ./dist
twine upload --repository testpypi ./dist/*
bump:
@bash -c "./scripts/bump.sh"
test:
pytest -v -m 'not integration'
test-e2e:
pytest -v
tox:
tox -e py
coverage:
pytest --cov=pyairtable --cov-report=html
open htmlcov/index.html
lint:
flake8 .
black --diff .
format:
black .
docs:
bash -c "cd ./docs; make html"
open ./docs/build/html/index.html
clean:
python3 -c "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python3 -c "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('pytest_cache')]"
rm -rdf ./docs/build
rm -rdf ./dist
rm -rdf ./build
rm -rdf ./htmlcov
rm -rdf pyairtable.egg-info
rm -rdf .pytest_cache