Skip to content

Commit

Permalink
improve requirements management
Browse files Browse the repository at this point in the history
  • Loading branch information
bouttier committed Aug 4, 2022
1 parent 0112f91 commit c992f3a
Show file tree
Hide file tree
Showing 10 changed files with 384 additions and 48 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install \
-e .[tests] \
-r requirements-common.txt \
-e file:dependencies/UsersHub-authentification-module#egg=pypnusershub \
-e file:dependencies/Utils-Flask-SQLAlchemy#egg=utils-flask-sqlalchemy \
-e file:dependencies/RefGeo#egg=pypn-ref-geo
-r requirements-dev.txt
- name: Install database
run: |
flask db upgrade taxonomie@head -x local-srid=2154
Expand Down
10 changes: 10 additions & 0 deletions requirements-common.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Flask<2.0
Flask-Cors
Flask-SQLAlchemy
Flask-Migrate
marshmallow-sqlalchemy
SQLAlchemy<1.4
psycopg2
python-dotenv
boto3
pillow
19 changes: 0 additions & 19 deletions requirements-common.txt

This file was deleted.

3 changes: 3 additions & 0 deletions requirements-dependencies.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
utils-flask-sqlalchemy>=0.2.6,<1.0
pypnusershub>=1.5.10,<2.0
pypn-ref-geo>=1.0.1,<2.0
6 changes: 6 additions & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-r requirements-common.in
-r requirements-submodules.in
flake8
pytest
pytest-flask
schema
203 changes: 195 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,195 @@
-r requirements-common.txt
-e dependencies/UsersHub-authentification-module
-e dependencies/Utils-Flask-SQLAlchemy
-e dependencies/RefGeo
flake8==3.7.9
pytest==5.4.3
pytest-flask==1.0.0
schema==0.7.2
#
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile requirements-dev.in
#
-e file:dependencies/RefGeo#egg=pypn-ref-geo
# via -r requirements-submodules.in
-e file:dependencies/UsersHub-authentification-module#egg=pypnusershub
# via -r requirements-submodules.in
-e file:dependencies/Utils-Flask-SQLAlchemy#egg=utils-flask-sqlalchemy
# via
# -r requirements-submodules.in
# pypn-ref-geo
# pypnusershub
# utils-flask-sqlalchemy-geo
alembic==1.8.1
# via
# flask-migrate
# pypn-ref-geo
# pypnusershub
attrs==22.1.0
# via
# fiona
# pytest
bcrypt==3.2.2
# via pypnusershub
boto3==1.24.45
# via -r requirements-common.in
botocore==1.27.45
# via
# boto3
# s3transfer
certifi==2022.6.15
# via
# fiona
# requests
cffi==1.15.1
# via bcrypt
charset-normalizer==2.1.0
# via requests
click==7.1.2
# via
# fiona
# flask
click-plugins==1.1.1
# via fiona
cligj==0.7.2
# via fiona
contextlib2==21.6.0
# via schema
fiona==1.8.21
# via utils-flask-sqlalchemy-geo
flake8==5.0.4
# via -r requirements-dev.in
flask==1.1.4
# via
# -r requirements-common.in
# flask-cors
# flask-marshmallow
# flask-migrate
# flask-sqlalchemy
# pypnusershub
# pytest-flask
# utils-flask-sqlalchemy
flask-cors==3.0.10
# via -r requirements-common.in
flask-marshmallow==0.14.0
# via pypnusershub
flask-migrate==3.1.0
# via
# -r requirements-common.in
# utils-flask-sqlalchemy
flask-sqlalchemy==2.5.1
# via
# -r requirements-common.in
# flask-migrate
# pypn-ref-geo
# pypnusershub
# utils-flask-sqlalchemy
geoalchemy2==0.11.1
# via utils-flask-sqlalchemy-geo
geog==0.0.2
# via utils-flask-sqlalchemy-geo
geojson==2.5.0
# via utils-flask-sqlalchemy-geo
idna==3.3
# via requests
iniconfig==1.1.1
# via pytest
itsdangerous==1.1.0
# via flask
jinja2==2.11.3
# via flask
jmespath==1.0.1
# via
# boto3
# botocore
mako==1.2.1
# via alembic
markupsafe==2.0.1
# via
# jinja2
# mako
# pypnusershub
marshmallow==3.17.0
# via
# flask-marshmallow
# marshmallow-sqlalchemy
# utils-flask-sqlalchemy
marshmallow-sqlalchemy==0.28.1
# via
# -r requirements-common.in
# pypnusershub
mccabe==0.7.0
# via flake8
munch==2.5.0
# via fiona
numpy==1.23.1
# via geog
packaging==21.3
# via
# geoalchemy2
# marshmallow
# marshmallow-sqlalchemy
# pytest
pillow==9.2.0
# via -r requirements-common.in
pluggy==1.0.0
# via pytest
psycopg2==2.9.3
# via
# -r requirements-common.in
# pypnusershub
py==1.11.0
# via pytest
pycodestyle==2.9.1
# via flake8
pycparser==2.21
# via cffi
pyflakes==2.5.0
# via flake8
pyparsing==3.0.9
# via packaging
pytest==7.1.2
# via
# -r requirements-dev.in
# pytest-flask
pytest-flask==1.2.0
# via -r requirements-dev.in
python-dateutil==2.8.2
# via
# botocore
# utils-flask-sqlalchemy
python-dotenv==0.20.0
# via -r requirements-common.in
requests==2.28.1
# via pypnusershub
s3transfer==0.6.0
# via boto3
schema==0.7.5
# via -r requirements-dev.in
shapely==1.8.2
# via utils-flask-sqlalchemy-geo
six==1.16.0
# via
# fiona
# flask-cors
# flask-marshmallow
# python-dateutil
sqlalchemy==1.3.24
# via
# -r requirements-common.in
# alembic
# flask-sqlalchemy
# geoalchemy2
# marshmallow-sqlalchemy
# pypn-ref-geo
# pypnusershub
# utils-flask-sqlalchemy-geo
tomli==2.0.1
# via pytest
urllib3==1.26.11
# via
# botocore
# requests
utils-flask-sqlalchemy-geo==0.2.3
# via pypn-ref-geo
werkzeug==1.0.1
# via
# flask
# pytest-flask

# The following packages are considered to be unsafe in a requirements file:
# setuptools
3 changes: 3 additions & 0 deletions requirements-submodules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-e file:dependencies/Utils-Flask-SQLAlchemy#egg=utils-flask-sqlalchemy
-e file:dependencies/UsersHub-authentification-module#egg=pypnusershub
-e file:dependencies/RefGeo#egg=pypn-ref-geo
12 changes: 2 additions & 10 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
Flask
Flask-Cors
Flask-SQLAlchemy
Flask-Migrate
marshmallow-sqlalchemy
SQLAlchemy
psycopg2
python-dotenv
utils-flask-sqlalchemy
boto3
-r requirements-common.in
-r requirements-dependencies.in
Loading

0 comments on commit c992f3a

Please sign in to comment.