Skip to content

Commit

Permalink
fix(api): JWT library added to pyproject.toml
Browse files Browse the repository at this point in the history
Originally the `pyjwt` library was added directly to `requirements.txt`. When
adding dependencies, add them to `pyproject.toml` and the run the commands
documented in that file to regenerate `requirements.txt` and `requirements-dev.txt`.
  • Loading branch information
paulespinosa committed Aug 14, 2024
1 parent 973a68f commit d60bc07
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 59 deletions.
3 changes: 3 additions & 0 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ dependencies = [
"marshmallow==3.20.1",
"marshmallow_sqlalchemy==1.0.0",
"openapi-spec-validator==0.6.0",

# pyjwt is used to decode information contained in a JWT
"pyjwt==2.8.0",
]

# This project defines dependencies for different "variants" of this project.
Expand Down
79 changes: 41 additions & 38 deletions api/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ alembic==1.10.2
# via
# homeuniteus-api (pyproject.toml)
# pytest-alembic
attrs==23.1.0
attrs==24.2.0
# via
# jsonschema
# referencing
Expand All @@ -21,19 +21,19 @@ botocore==1.25.13
# boto3
# moto
# s3transfer
build==0.10.0
build==1.2.1
# via pip-tools
cachetools==5.3.1
cachetools==5.4.0
# via tox
certifi==2023.7.22
certifi==2024.7.4
# via requests
cffi==1.16.0
cffi==1.17.0
# via cryptography
chardet==5.2.0
# via
# prance
# tox
charset-normalizer==3.2.0
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via
Expand All @@ -48,38 +48,38 @@ connexion==2.14.2
# via
# connexion
# homeuniteus-api (pyproject.toml)
coverage==7.3.0
coverage==7.6.1
# via
# coverage
# pytest-cov
cryptography==42.0.4
cryptography==43.0.0
# via
# homeuniteus-api (pyproject.toml)
# moto
# python-jose
distlib==0.3.7
distlib==0.3.8
# via virtualenv
ecdsa==0.19.0
# via
# moto
# python-jose
exceptiongroup==1.1.3
exceptiongroup==1.2.2
# via pytest
filelock==3.12.2
filelock==3.15.4
# via
# tox
# virtualenv
flask==2.2.5
# via connexion
greenlet==2.0.2
greenlet==3.0.3
# via sqlalchemy
idna==3.7
# via requests
inflection==0.5.1
# via connexion
iniconfig==2.0.0
# via pytest
itsdangerous==2.1.2
itsdangerous==2.2.0
# via
# connexion
# flask
Expand All @@ -92,7 +92,7 @@ jmespath==1.0.1
# via
# boto3
# botocore
jsonschema==4.19.0
jsonschema==4.23.0
# via
# connexion
# openapi-schema-validator
Expand All @@ -103,11 +103,11 @@ jsonschema-specifications==2023.7.1
# via
# jsonschema
# openapi-schema-validator
lazy-object-proxy==1.9.0
lazy-object-proxy==1.10.0
# via openapi-spec-validator
mako==1.2.4
mako==1.3.5
# via alembic
markupsafe==2.1.3
markupsafe==2.1.5
# via
# jinja2
# mako
Expand All @@ -122,11 +122,11 @@ moto==4.2.10
# via
# homeuniteus-api (pyproject.toml)
# moto
openapi-schema-validator==0.6.0
openapi-schema-validator==0.6.2
# via openapi-spec-validator
openapi-spec-validator==0.6.0
# via homeuniteus-api (pyproject.toml)
packaging==23.1
packaging==24.1
# via
# build
# connexion
Expand All @@ -137,13 +137,13 @@ packaging==23.1
# tox
pathable==0.4.3
# via jsonschema-spec
pip-tools==7.3.0
pip-tools==7.4.1
# via homeuniteus-api (pyproject.toml)
platformdirs==3.10.0
platformdirs==4.2.2
# via
# tox
# virtualenv
pluggy==1.2.0
pluggy==1.5.0
# via
# pytest
# tox
Expand All @@ -155,12 +155,16 @@ pyasn1==0.6.0
# via
# python-jose
# rsa
pycparser==2.21
pycparser==2.22
# via cffi
pyproject-api==1.5.4
pyjwt==2.8.0
# via homeuniteus-api (pyproject.toml)
pyproject-api==1.7.1
# via tox
pyproject-hooks==1.0.0
# via build
pyproject-hooks==1.1.0
# via
# build
# pip-tools
pytest==7.4.2
# via
# homeuniteus-api (pyproject.toml)
Expand All @@ -173,7 +177,7 @@ pytest-cov==4.0.0
# via homeuniteus-api (pyproject.toml)
pytest-randomly==3.12.0
# via homeuniteus-api (pyproject.toml)
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via
# botocore
# moto
Expand All @@ -183,7 +187,7 @@ python-jose==3.3.0
# via
# moto
# python-jose
pyyaml==6.0.1
pyyaml==6.0.2
# via
# clickclick
# connexion
Expand All @@ -194,26 +198,26 @@ referencing==0.30.2
# jsonschema
# jsonschema-spec
# jsonschema-specifications
requests==2.32.2
requests==2.32.3
# via
# connexion
# jsonschema-spec
# moto
# prance
# responses
responses==0.24.1
responses==0.25.3
# via moto
rfc3339-validator==0.1.4
# via openapi-schema-validator
rpds-py==0.9.2
rpds-py==0.20.0
# via
# jsonschema
# referencing
rsa==4.9
# via python-jose
ruamel-yaml==0.17.32
ruamel-yaml==0.18.6
# via prance
ruamel-yaml-clib==0.2.7
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
s3transfer==0.5.2
# via boto3
Expand All @@ -223,7 +227,7 @@ six==1.16.0
# prance
# python-dateutil
# rfc3339-validator
sqlalchemy==2.0.20
sqlalchemy==2.0.32
# via
# alembic
# marshmallow-sqlalchemy
Expand All @@ -236,12 +240,11 @@ tomli==2.0.1
# coverage
# pip-tools
# pyproject-api
# pyproject-hooks
# pytest
# tox
tox==4.6.4
# via homeuniteus-api (pyproject.toml)
typing-extensions==4.7.1
typing-extensions==4.12.2
# via
# alembic
# sqlalchemy
Expand All @@ -250,14 +253,14 @@ urllib3==1.26.19
# botocore
# requests
# responses
virtualenv==20.24.3
virtualenv==20.26.3
# via tox
werkzeug==2.2.3
# via
# connexion
# flask
# moto
wheel==0.41.2
wheel==0.44.0
# via pip-tools
xmltodict==0.13.0
# via moto
Expand Down
Loading

0 comments on commit d60bc07

Please sign in to comment.