Skip to content

Commit

Permalink
chore: use requirements constraints
Browse files Browse the repository at this point in the history
* use common_constraints.txt in constraints.txt
* use constraints.txt in pip-tools.in
* make upgrade
  • Loading branch information
pomegranited committed Oct 31, 2024
1 parent aa26bbc commit dfa3b23
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 65 deletions.
14 changes: 7 additions & 7 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ asgiref==3.8.1
# via django
attrs==24.2.0
# via openedx-events
bleach==6.1.0
bleach==6.2.0
# via -r requirements/base.in
boto3==1.35.43
boto3==1.35.52
# via -r requirements/base.in
botocore==1.35.43
botocore==1.35.52
# via
# boto3
# s3transfer
Expand All @@ -34,6 +34,7 @@ defusedxml==0.7.1
# via -r requirements/base.in
django==4.2.16
# via
# -c requirements/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/base.in
# django-crum
Expand Down Expand Up @@ -86,7 +87,7 @@ edx-opaque-keys[django]==2.11.0
# -r requirements/base.in
# edx-ccx-keys
# openedx-events
edx-submissions==3.8.2
edx-submissions==3.8.3
# via -r requirements/base.in
edx-toggles==5.2.0
# via -r requirements/base.in
Expand Down Expand Up @@ -126,7 +127,7 @@ lxml[html-clean]==5.3.0
# xblock
lxml-html-clean==0.3.1
# via lxml
mako==1.3.5
mako==1.3.6
# via xblock
markupsafe==3.0.2
# via
Expand Down Expand Up @@ -189,7 +190,6 @@ simplejson==3.19.3
# via xblock
six==1.16.0
# via
# bleach
# edx-ccx-keys
# edx-django-release-util
# fs
Expand Down Expand Up @@ -221,7 +221,7 @@ webencodings==0.5.1
# via
# bleach
# html5lib
webob==1.8.8
webob==1.8.9
# via xblock
xblock==5.1.0
# via -r requirements/base.in
Expand Down
6 changes: 3 additions & 3 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ colorama==0.4.6
# via
# -r requirements/tox.txt
# tox
coverage[toml]==7.6.3
coverage[toml]==7.6.4
# via coveralls
coveralls==4.0.1
# via -r requirements/ci.in
Expand Down Expand Up @@ -59,11 +59,11 @@ pyproject-api==1.8.0
# tox
requests==2.32.3
# via coveralls
tox==4.23.0
tox==4.23.2
# via -r requirements/tox.txt
urllib3==2.2.3
# via requests
virtualenv==20.27.0
virtualenv==20.27.1
# via
# -r requirements/tox.txt
# tox
2 changes: 2 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Version constraints for pip-installation.

-c common_constraints.txt

# Base dependencies
Django<4.3 # Stay on the latest LTS release of Django
fs<=2.0.18 # Constrained by edx-platform
Expand Down
8 changes: 3 additions & 5 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ jinja2==3.1.4
markupsafe==3.0.2
# via jinja2
packaging==24.1
# via
# pydata-sphinx-theme
# sphinx
pydata-sphinx-theme==0.15.4
# via sphinx
pydata-sphinx-theme==0.16.0
# via sphinx-book-theme
pygments==2.18.0
# via
Expand Down Expand Up @@ -95,7 +93,7 @@ sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
starlette==0.41.0
starlette==0.41.2
# via sphinx-autobuild
typing-extensions==4.12.2
# via pydata-sphinx-theme
Expand Down
4 changes: 3 additions & 1 deletion requirements/pip-tools.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
# them deterministically with `pip-sync`.
# `pip-compile` itself is used to generate pip-tools.txt.

pip-tools
-c constraints.txt

pip-tools
4 changes: 3 additions & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ wheel==0.44.0

# The following packages are considered to be unsafe in a requirements file:
pip==24.2
# via -r requirements/pip.in
# via
# -c requirements/common_constraints.txt
# -r requirements/pip.in
setuptools==59.8.0
# via
# -c requirements/constraints.txt
Expand Down
32 changes: 16 additions & 16 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ binaryornot==0.4.4
# via
# -r requirements/test.txt
# cookiecutter
bleach==6.1.0
bleach==6.2.0
# via -r requirements/test.txt
boto3==1.35.43
boto3==1.35.52
# via
# -r requirements/test.txt
# fs-s3fs
# moto
botocore==1.35.43
botocore==1.35.52
# via
# -r requirements/test.txt
# boto3
Expand Down Expand Up @@ -112,11 +112,11 @@ cookiecutter==2.6.0
# via
# -r requirements/test.txt
# xblock-sdk
coverage[toml]==7.6.3
coverage[toml]==7.6.4
# via
# -r requirements/test.txt
# pytest-cov
cryptography==43.0.1
cryptography==43.0.3
# via
# -r requirements/test.txt
# moto
Expand All @@ -134,6 +134,7 @@ distlib==0.3.9
# virtualenv
django==4.2.16
# via
# -c requirements/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/test.txt
# django-crum
Expand Down Expand Up @@ -190,20 +191,20 @@ edx-django-utils==7.0.0
# openedx-events
edx-i18n-tools==1.6.3
# via -r requirements/test.txt
edx-lint==5.4.0
edx-lint==5.4.1
# via -r requirements/quality.in
edx-opaque-keys[django]==2.11.0
# via
# -r requirements/test.txt
# edx-ccx-keys
# openedx-events
edx-submissions==3.8.2
edx-submissions==3.8.3
# via -r requirements/test.txt
edx-toggles==5.2.0
# via -r requirements/test.txt
factory-boy==3.3.1
# via -r requirements/test.txt
faker==30.6.0
faker==30.8.1
# via
# -r requirements/test.txt
# factory-boy
Expand Down Expand Up @@ -280,7 +281,7 @@ lxml-html-clean==0.3.1
# via
# -r requirements/test.txt
# lxml
mako==1.3.5
mako==1.3.6
# via
# -r requirements/test.txt
# xblock
Expand Down Expand Up @@ -403,7 +404,7 @@ pytest==8.3.3
# -r requirements/test.txt
# pytest-cov
# pytest-django
pytest-cov==5.0.0
pytest-cov==6.0.0
# via -r requirements/test.txt
pytest-django==4.9.0
# via -r requirements/test.txt
Expand Down Expand Up @@ -453,7 +454,7 @@ responses==0.25.3
# via
# -r requirements/test.txt
# moto
rich==13.9.2
rich==13.9.3
# via
# -r requirements/test.txt
# cookiecutter
Expand All @@ -469,7 +470,6 @@ simplejson==3.19.3
six==1.16.0
# via
# -r requirements/test.txt
# bleach
# edx-ccx-keys
# edx-django-release-util
# edx-lint
Expand Down Expand Up @@ -497,7 +497,7 @@ text-unidecode==1.3
# python-slugify
tomlkit==0.13.2
# via pylint
tox==4.23.0
tox==4.23.2
# via -r requirements/test.txt
types-python-dateutil==2.9.0.20241003
# via
Expand Down Expand Up @@ -525,7 +525,7 @@ vine==5.1.0
# amqp
# celery
# kombu
virtualenv==20.27.0
virtualenv==20.27.1
# via
# -r requirements/test.txt
# tox
Expand All @@ -547,12 +547,12 @@ webencodings==0.5.1
# -r requirements/test.txt
# bleach
# html5lib
webob==1.8.8
webob==1.8.9
# via
# -r requirements/test.txt
# xblock
# xblock-sdk
werkzeug==3.0.4
werkzeug==3.0.6
# via
# -r requirements/test.txt
# moto
Expand Down
30 changes: 15 additions & 15 deletions requirements/test-acceptance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ binaryornot==0.4.4
# via
# -r requirements/test.txt
# cookiecutter
bleach==6.1.0
bleach==6.2.0
# via -r requirements/test.txt
boto3==1.35.43
boto3==1.35.52
# via
# -r requirements/test.txt
# fs-s3fs
# moto
botocore==1.35.43
botocore==1.35.52
# via
# -r requirements/test.txt
# boto3
Expand Down Expand Up @@ -103,11 +103,11 @@ cookiecutter==2.6.0
# via
# -r requirements/test.txt
# xblock-sdk
coverage[toml]==7.6.3
coverage[toml]==7.6.4
# via
# -r requirements/test.txt
# pytest-cov
cryptography==43.0.1
cryptography==43.0.3
# via
# -r requirements/test.txt
# moto
Expand All @@ -124,6 +124,7 @@ distlib==0.3.9
# virtualenv
django==4.2.16
# via
# -c requirements/common_constraints.txt
# -c requirements/constraints.txt
# -r requirements/test.txt
# django-crum
Expand Down Expand Up @@ -185,13 +186,13 @@ edx-opaque-keys[django]==2.11.0
# -r requirements/test.txt
# edx-ccx-keys
# openedx-events
edx-submissions==3.8.2
edx-submissions==3.8.3
# via -r requirements/test.txt
edx-toggles==5.2.0
# via -r requirements/test.txt
factory-boy==3.3.1
# via -r requirements/test.txt
faker==30.6.0
faker==30.8.1
# via
# -r requirements/test.txt
# factory-boy
Expand Down Expand Up @@ -266,7 +267,7 @@ lxml-html-clean==0.3.1
# via
# -r requirements/test.txt
# lxml
mako==1.3.5
mako==1.3.6
# via
# -r requirements/test.txt
# xblock
Expand Down Expand Up @@ -373,7 +374,7 @@ pytest==8.3.3
# -r requirements/test.txt
# pytest-cov
# pytest-django
pytest-cov==5.0.0
pytest-cov==6.0.0
# via -r requirements/test.txt
pytest-django==4.9.0
# via -r requirements/test.txt
Expand Down Expand Up @@ -423,7 +424,7 @@ responses==0.25.3
# via
# -r requirements/test.txt
# moto
rich==13.9.2
rich==13.9.3
# via
# -r requirements/test.txt
# cookiecutter
Expand All @@ -439,7 +440,6 @@ simplejson==3.19.3
six==1.16.0
# via
# -r requirements/test.txt
# bleach
# edx-ccx-keys
# edx-django-release-util
# freezegun
Expand All @@ -464,7 +464,7 @@ text-unidecode==1.3
# via
# -r requirements/test.txt
# python-slugify
tox==4.23.0
tox==4.23.2
# via -r requirements/test.txt
types-python-dateutil==2.9.0.20241003
# via
Expand Down Expand Up @@ -492,7 +492,7 @@ vine==5.1.0
# amqp
# celery
# kombu
virtualenv==20.27.0
virtualenv==20.27.1
# via
# -r requirements/test.txt
# tox
Expand All @@ -514,12 +514,12 @@ webencodings==0.5.1
# -r requirements/test.txt
# bleach
# html5lib
webob==1.8.8
webob==1.8.9
# via
# -r requirements/test.txt
# xblock
# xblock-sdk
werkzeug==3.0.4
werkzeug==3.0.6
# via
# -r requirements/test.txt
# moto
Expand Down
Loading

0 comments on commit dfa3b23

Please sign in to comment.