Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (65 loc) · 2.29 KB
/
Copy pathMakefile
File metadata and controls
73 lines (65 loc) · 2.29 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
install:
{ python3.7 -m venv venv || py -3.7 -m venv venv ; } && \
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
pip install --upgrade pip wheel && \
pip install -c requirements.txt pre-commit flake8 mypy black tox pytest -e . && \
pre-commit install\
--hook-type pre-push --hook-type pre-commit && \
{ mypy --install-types --non-interactive || echo "" ; } && \
echo "Installation complete"
ci-install:
{ python3 -m venv venv || py -3 -m venv venv ; } && \
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
python3 -m pip install --upgrade pip wheel && \
pip install -c requirements.txt tox -e . && \
echo "Installation complete"
reinstall:
{ rm -R venv || echo "" ; } && \
{ python3.7 -m venv venv || py -3.7 -m venv venv ; } && \
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
pip install --upgrade pip wheel && \
pip install pre-commit flake8 mypy black tox pytest -e . && \
pre-commit install\
--hook-type pre-push --hook-type pre-commit && \
{ mypy --install-types --non-interactive || echo "" ; } && \
make requirements && \
echo "Installation complete"
editable:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools install-editable --upgrade-strategy eager -ed . && \
make upgrade
clean:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools uninstall-all\
-e .\
-e pyproject.toml\
-e tox.ini\
-e pre-commit\
-e requirements.txt && \
daves-dev-tools clean
distribute:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools distribute --skip-existing
upgrade:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
pip install --upgrade pre-commit && \
pre-commit autoupdate && \
daves-dev-tools requirements freeze\
-nv '*' . pyproject.toml tox.ini \
> .requirements.txt && \
pip install --upgrade --upgrade-strategy eager\
-r .requirements.txt && \
rm .requirements.txt && \
make requirements
requirements:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools requirements update\
-aen all\
setup.cfg pyproject.toml tox.ini && \
daves-dev-tools requirements freeze\
-e pip\
-e wheel\
. pyproject.toml tox.ini\
> requirements.txt
test:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && python3 -m tox -r