File tree 9 files changed +598
-442
lines changed
9 files changed +598
-442
lines changed Original file line number Diff line number Diff line change @@ -58,23 +58,23 @@ commands:
58
58
- save_cache :
59
59
paths :
60
60
- ~/.cache/pip
61
- key : drr-pip-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-test .lock.txt" }}
61
+ key : drr-pip-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-ci .lock.txt" }}
62
62
restore_pip_cache :
63
63
steps :
64
64
- restore_cache :
65
65
keys :
66
- - drr-pip-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-test .lock.txt" }}
66
+ - drr-pip-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-ci .lock.txt" }}
67
67
save_py_venv_cache :
68
68
steps :
69
69
- save_cache :
70
70
paths :
71
71
- ~/.venv
72
- key : drr-py-venv-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-test .lock.txt" }}
72
+ key : drr-py-venv-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-ci .lock.txt" }}
73
73
restore_py_venv_cache :
74
74
steps :
75
75
- restore_cache :
76
76
keys :
77
- - drr-py-venv-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-test .lock.txt" }}
77
+ - drr-py-venv-{{ .Environment.CACHE_VERSION }}-{{ checksum "requirements/requirements-ci .lock.txt" }}
78
78
save_project_workspace :
79
79
steps :
80
80
- persist_to_workspace :
97
97
- restore_pip_cache
98
98
- restore_py_venv_cache
99
99
- run : python -m venv --copies ~/.venv
100
- - run : source ~/.venv/bin/activate && make install_test
100
+ - run : source ~/.venv/bin/activate && make install_ci
101
101
- save_pip_cache
102
102
- save_py_venv_cache
103
103
- save_project_workspace
Original file line number Diff line number Diff line change @@ -50,16 +50,22 @@ install_dev: ## install all pip requirements and the package as editable
50
50
${PYTHON} -m pip install -r requirements/requirements-dev.lock.txt ${ARGS}
51
51
${PYTHON} -m pip install -e .
52
52
53
+ .PHONY : install_ci
54
+ install_ci : # # install all pip requirements needed for CI and the package as editable
55
+ ${PYTHON} -m pip install -r requirements/requirements-ci.lock.txt ${ARGS}
56
+ ${PYTHON} -m pip install -e .
57
+
53
58
.PHONY : install_test
54
59
install_test : # # install all pip requirements needed for testing and the package as editable
55
60
${PYTHON} -m pip install -r requirements/requirements-test.lock.txt ${ARGS}
56
61
${PYTHON} -m pip install -e .
57
62
58
63
.PHONY : upgrade_requirements_lockfiles
59
64
upgrade_requirements_lockfiles : # # upgrade pip requirements lock files
60
- ${PIP_COMPILE} ${PIP_COMPILE_OPTS} --output-file=requirements/requirements-base.lock.txt
61
- ${PIP_COMPILE} ${PIP_COMPILE_OPTS} --output-file=requirements/requirements-test.lock.txt requirements/requirements-base.lock.txt requirements/requirements-test.in
62
- ${PIP_COMPILE} ${PIP_COMPILE_OPTS} --output-file=requirements/requirements-dev.lock.txt requirements/requirements-test.lock.txt requirements/requirements-dev.in
65
+ ${PIP_COMPILE} ${PIP_COMPILE_OPTS} setup.py requirements/requirements-base.in --output-file=requirements/requirements-base.lock.txt
66
+ ${PIP_COMPILE} ${PIP_COMPILE_OPTS} requirements/requirements-base.lock.txt requirements/requirements-test.in --output-file=requirements/requirements-test.lock.txt
67
+ ${PIP_COMPILE} ${PIP_COMPILE_OPTS} requirements/requirements-test.lock.txt requirements/requirements-ci.in --output-file=requirements/requirements-ci.lock.txt
68
+ ${PIP_COMPILE} ${PIP_COMPILE_OPTS} requirements/requirements-ci.lock.txt requirements/requirements-dev.in --output-file=requirements/requirements-dev.lock.txt
63
69
64
70
.PHONY : upgrade_dev
65
71
upgrade_dev : upgrade_requirements_lockfiles install_dev # # upgrade all pip requirements and reinstall package as editable
Original file line number Diff line number Diff line change
1
+ # asgiref 3.8+ requires Py 3.8+
2
+ asgiref<3.8.0
Original file line number Diff line number Diff line change 2
2
# This file is autogenerated by pip-compile with Python 3.10
3
3
# by the following command:
4
4
#
5
- # pip-compile --output-file=requirements/requirements-base.lock.txt
5
+ # pip-compile --output-file=requirements/requirements-base.lock.txt requirements/requirements-base.in setup.py
6
6
#
7
- asgiref==3.8.1
8
- # via django
9
- django==5.0.7
7
+ asgiref==3.7.2
8
+ # via
9
+ # -r requirements/requirements-base.in
10
+ # django
11
+ django==5.0.8
10
12
# via
11
13
# django-rest-registration (setup.py)
12
14
# djangorestframework
Original file line number Diff line number Diff line change
1
+ # linting
2
+ flake8
3
+ flake8-comprehensions
4
+ flake8-debugger
5
+ flake8-isort
6
+ flake8-pyproject
7
+ flake8-print
8
+ flake8-tuple
9
+ isort[pyproject]
10
+ pylint
11
+
12
+ # type checking
13
+ mypy
14
+ django-stubs
15
+ djangorestframework-stubs
16
+
17
+ # package building
18
+ build
19
+ docutils
20
+ Pygments>=2.2.0
21
+ twine>=1.11.0
22
+ wheel>=0.31.0
23
+ readme_renderer[md]
24
+
25
+ # documentation
26
+ Sphinx
27
+ # not fixing this causes
28
+ # pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed
29
+ sphinx_rtd_theme==2.0
30
+ sphinx-autobuild
31
+ sphinx-jinja
32
+ doc8
33
+
34
+ # cookbook
35
+ pyjwt
You can’t perform that action at this time.
0 commit comments