diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index de1ff5a..1739919 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -10,7 +10,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r requirements/formatting.txt - name: Run code checks run: | make lint-check diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4e344d8..260f607 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,7 +10,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install cbor flask==2.3.2 flask_smorest==0.42.0 marshmallow Pillow psycopg[pool] pylibmc pytest toml + pip install -r requirements/api.txt + pip install -r requirements/tests.txt - name: Run pytest run: | python -m pytest diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 1fe80af..0000000 --- a/requirements.txt +++ /dev/null @@ -1,22 +0,0 @@ -black==24.2.0 -cbor==1.0.0 -flake8==7.0.0 -flake8-bugbear==24.2.6 -flake8-implicit-str-concat==0.4.0 -Flask==2.3.2 -flask_smorest==0.42.0 -gevent==23.7.0 -gunicorn==21.2.0 -isort==5.13.2 -marshmallow==3.20.1 -matplotlib==3.5.3 -numpy==1.24.4 -Pillow==10.0.0 -pre-commit==3.3.3 -prometheus_client==0.15.0 -psutil==5.8.0 -psycopg==3.1.12 -psycopg-pool==3.1.8 -pylibmc==1.6.1 -pytest==7.4.0 -toml==0.10.2 diff --git a/requirements/api.txt b/requirements/api.txt new file mode 100644 index 0000000..1851b83 --- /dev/null +++ b/requirements/api.txt @@ -0,0 +1,6 @@ +Flask==2.3.2 +flask_smorest==0.42.0 +gevent==23.7.0 +gunicorn==21.2.0 +marshmallow==3.20.1 +psycopg-pool==3.1.8 diff --git a/requirements/base.txt b/requirements/base.txt new file mode 100644 index 0000000..9e07eeb --- /dev/null +++ b/requirements/base.txt @@ -0,0 +1,13 @@ +cbor==1.0.0 +matplotlib==3.5.3 +numpy==1.24.4 +Pillow==10.0.0 +prometheus_client==0.15.0 +psutil==5.8.0 +psycopg==3.1.12 +pylibmc==1.6.1 +toml==0.10.2 + +-r requirements/api.txt # pytest dependencies +-r requirements/formatting.txt # includes all formatting packages +-r requirements/tests.txt # pytest dependencies diff --git a/requirements/formatting.txt b/requirements/formatting.txt new file mode 100644 index 0000000..a38827a --- /dev/null +++ b/requirements/formatting.txt @@ -0,0 +1,6 @@ +black==24.2.0 +flake8==7.0.0 +flake8-bugbear==24.2.6 +flake8-implicit-str-concat==0.4.0 +isort==5.13.2 +pre-commit==3.3.3 diff --git a/requirements/tests.txt b/requirements/tests.txt new file mode 100644 index 0000000..70613be --- /dev/null +++ b/requirements/tests.txt @@ -0,0 +1 @@ +pytest==7.4.0