Skip to content

Commit

Permalink
Lock requirements versions with pip-tools (#153)
Browse files Browse the repository at this point in the history
* Lock requirements versions with pip-tools

* Update requirement file paths in the GitHub workflows

Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com>
  • Loading branch information
greyli and Aiee committed Nov 9, 2021
1 parent 4df4c57 commit 819d154
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel twine
pip install -r requirements-dev.txt
pip install -r requirements/dev.txt
- name: Test with pytest
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements/dev.txt
- name: Test with pytest
run: |
docker-compose up -d
Expand Down
6 changes: 0 additions & 6 deletions requirements-dev.txt

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt → requirements/base.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
future
six
httplib2
httplib2
pytz
16 changes: 16 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
#
# pip-compile requirements/base.in
#
future==0.18.2
# via -r requirements/base.in
httplib2==0.20.1
# via -r requirements/base.in
pyparsing==2.4.7
# via httplib2
pytz==2021.3
# via -r requirements/base.in
six==1.16.0
# via -r requirements/base.in
4 changes: 4 additions & 0 deletions requirements/dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r base.in
prettytable
pytest
pip-tools
50 changes: 50 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
#
# pip-compile requirements/dev.in
#
attrs==21.2.0
# via pytest
click==8.0.3
# via pip-tools
future==0.18.2
# via -r requirements/base.in
httplib2==0.20.1
# via -r requirements/base.in
iniconfig==1.1.1
# via pytest
packaging==21.0
# via pytest
pep517==0.11.0
# via pip-tools
pip-tools==6.4.0
# via -r requirements/dev.in
pluggy==1.0.0
# via pytest
prettytable==2.2.1
# via -r requirements/dev.in
py==1.10.0
# via pytest
pyparsing==2.4.7
# via
# httplib2
# packaging
pytest==6.2.5
# via -r requirements/dev.in
pytz==2021.3
# via -r requirements/base.in
six==1.16.0
# via -r requirements/base.in
toml==0.10.2
# via pytest
tomli==1.2.1
# via pep517
wcwidth==0.2.5
# via prettytable
wheel==0.37.0
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools

0 comments on commit 819d154

Please sign in to comment.