Skip to content

Commit 7a4a12b

Browse files
authored
Copy list of runtime dependencies to requirements.txt (#465)
This allows us to install the complete set of dependencies (both development and runtime) in a single call to pip.
1 parent dd0039f commit 7a4a12b

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/
1010

1111
RUN /usr/local/bin/python3 -m pip install --upgrade pip
1212

13+
COPY requirements.txt /tmp/pip-tmp/
1314
COPY dev-requirements*.txt /tmp/pip-tmp/
1415
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/dev-requirements-py3.txt && rm -rf /tmp/pip-tmp
1516

.github/workflows/push.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
if: ${{ startsWith(matrix.python-version, '3.') }}
3737
run: pip install --upgrade -r dev-requirements-py3.txt
3838

39-
- name: Install package
40-
run: pip install -e .
41-
4239
- name: Run tests
4340
run: pytest tests --cov=./
4441

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-r ./requirements.txt
12
pytest
23
pytest-cov
34
mock

requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Note: please keep this in sync with `setup.py`.
2+
click>=6.7
3+
pyjwt>=1.7.0
4+
oauthlib>=3.1.0
5+
requests>=2.17.3
6+
tabulate>=0.7.7
7+
six>=1.10.0
8+
configparser>=0.3.5;python_version < "3.6"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
version=version,
3535
packages=find_packages(exclude=['tests', 'tests.*']),
3636
install_requires=[
37+
# Note: please keep this in sync with `requirements.txt`.
3738
'click>=6.7',
3839
'pyjwt>=1.7.0',
3940
'oauthlib>=3.1.0',

0 commit comments

Comments
 (0)