-
-
Notifications
You must be signed in to change notification settings - Fork 316
/
Makefile
55 lines (38 loc) · 1.35 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
.PHONY: tests clean clean-pyc upload-pypi-test upload-pypi requirements docs \
code-cov docs-clean requirements-dev.txt
clean:
python setup.py clean
clean-pyc:
find . -name '*.pyc' -exec rm {} \;
upload-pypi-test:
python setup.py sdist bdist_wheel && \
twine upload --repository-url https://test.pypi.org/legacy/ dist/* && \
rm -rf dist
upload-pypi:
python setup.py sdist bdist_wheel && \
twine upload dist/* && \
rm -rf dist
requirements:
pip install -r requirements-dev.txt
docs-clean:
rm -rf docs/source/reference/generated docs/**/generated docs/**/methods docs/_build docs/source/_contents
docs: docs-clean
python -m sphinx -W -E "docs/source" "docs/_build" && make -C docs doctest
quick-docs:
python -m sphinx -E "docs/source" "docs/_build" && make -C docs doctest
code-cov:
pytest --cov-report=html --cov=pandera tests/
nox:
nox -r --envdir .nox-virtualenv
NOX_FLAGS ?= "-r"
nox-mamba:
nox -db mamba --envdir .nox-mamba ${NOX_FLAGS}
deps-from-conda:
python scripts/generate_pip_deps_from_conda.py
nox-ci-requirements: deps-from-conda
nox -db mamba --envdir .nox-mamba -s ci_requirements ${NOX_FLAGS}
nox-dev-requirements: deps-from-conda
nox -db mamba --envdir .nox-mamba -s dev_requirements ${NOX_FLAGS}
nox-requirements: nox-ci-requirements nox-dev-requirements
nox-tests:
nox -db mamba --envdir .nox-mamba -s tests ${NOX_FLAGS}