Skip to content

Commit 2a0eb73

Browse files
authored
Merge pull request #131 from about dependency handling
Fix: remove invalid string, modify workflow python-app yml file
2 parents 60b4411 + d1e6840 commit 2a0eb73

3 files changed

Lines changed: 10 additions & 33 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip # Upgrade pip to the latest version
32+
pip install pip-tools # run pip-compile silently to create requirements.txt in memory
33+
pip-compile --quiet requirements.in -o requirements.txt
34+
# command will exit with error code if there's a diff
35+
git diff --exit-code requirements.txt
3236
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3337
- name: Lint with flake8
3438
run: |

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ scikit-learn==1.3.0
1414
xgboost==1.7.6
1515

1616
# Tooling
17-
dvc[all]
17+
dvc[all]==3.61.0
1818
flake8
1919
pytest
2020
pytest-html

requirements.txt

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
1-
# requirements.txt from pip-tools
2-
dvc==3.23.0
3-
dvc[all]==3.23.0
4-
flake8==6.1.0
5-
numpy==1.23.5
6-
pandas==2.0.3
7-
ydata-profiling==4.9.0
8-
scikit-learn==1.3.0
9-
xgboost==1.7.6
10-
pytest==7.4.0
11-
pytest_html==4.0.0
12-
requests==2.32.0
13-
fastapi==0.115.3
14-
uvicorn==0.27.0
15-
starlette>=0.40.0,<0.42.0
16-
httpx==0.25.0
17-
pydantic>=2
18-
gunicorn==23.0.0
19-
matplotlib==3.6.2
20-
seaborn==0.12.2
21-
scipy==1.10.1
22-
colorama==0.4.6
23-
joblib==1.3.2
24-
# --- for safety reasons by Snyk to avoid a vulnerability
25-
pillow>=10.3.0
26-
setuptools>=78.1.1
27-
fonttools>=4.43.0
28-
zipp>=3.19.1
29-
=======
301
#
31-
# This file part is autogenerated by pip-compile with Python 3.11 via
32-
# pip-compile requirements.in
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile requirements.in
336
#
347
adlfs==2024.12.0
358
# via dvc-azure
@@ -757,4 +730,4 @@ zipp==3.23.0
757730
# via -r requirements.in
758731

759732
# The following packages are considered to be unsafe in a requirements file:
760-
# setuptools - exits because of udacity history reason
733+
# setuptools

0 commit comments

Comments
 (0)