-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
60 lines (53 loc) · 1.84 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
57
58
59
60
# python 3.6 is used, for the time being, in order to ensure compatibility
install:
{ python3.6 -m venv venv || python3 -m venv venv || \
py -3.6 -m venv venv || py -3 -m venv venv ; } && \
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
python3 -m pip install --upgrade pip twine && \
python3 -m pip install\
-r requirements.txt\
-e . && \
mypy --install-types --non-interactive && \
echo "Success!"
editable:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools install-editable --upgrade-strategy eager && \
make upgrade
clean:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools uninstall-all\
-e .\
-e pyproject.toml\
-e tox.ini\
-e requirements.txt && \
daves-dev-tools clean && \
echo "Success!"
distribute:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
python3 scripts/update_gcp_prefix_format_list.py && \
daves-dev-tools distribute --skip-existing && \
echo "Success!"
upgrade:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
daves-dev-tools requirements freeze\
-nv '*' . pyproject.toml tox.ini daves-dev-tools \
> .unversioned_requirements.txt && \
python3 -m pip install --upgrade --upgrade-strategy eager\
-r .unversioned_requirements.txt && \
rm .unversioned_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\
-nv setuptools -nv filelock -nv platformdirs\
. pyproject.toml tox.ini daves-dev-tools\
> requirements.txt && \
echo "Success!"
test:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && tox -r -p
gcp:
{ . venv/bin/activate || venv/Scripts/activate.bat ; } && \
python3 scripts/update_gcp_prefix_format_list.py