Skip to content

Commit

Permalink
Merge pull request #139 from edx/usamasadiq/bom-2261-add-constraints-…
Browse files Browse the repository at this point in the history
…file

Switch constraints to constraints.txt file
  • Loading branch information
UsamaSadiq authored Jan 26, 2021
2 parents e3e748e + 38109ce commit a605f44
Show file tree
Hide file tree
Showing 13 changed files with 435 additions and 123 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Change Log
Unreleased
~~~~~~~~~~

[3.0.1] - 2021-01-26
~~~~~~~~~~~~~~~~~~~~

* Added constraints file to handle package versions.

[3.0.0] - 2021-01-24
~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion edx_lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
edx_lint standardizes lint configuration and additional plugins for use in
Open edX code.
"""
VERSION = "3.0"
VERSION = "3.0.1"
19 changes: 10 additions & 9 deletions requirements/base.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
code-annotations>=1.0.1 # Parse feature toggle and setting annotations
Django>=2.2,<2.3 # Version coherent with other projects
# Note that these requirements are pinned in order to provide a pinned pylint version for all dependent projects.
pylint==2.6.0
pylint-django==2.3.0
pylint-celery==0.3
six>=1.10.0,<2.0.0
click>=6.0
click-log==0.3.2
-c constraints.txt

code-annotations
click
click-log
Django
pylint
pylint-django
pylint-celery
six
99 changes: 75 additions & 24 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,78 @@
#
# make upgrade
#
astroid==2.4.2 # via pylint, pylint-celery
click-log==0.3.2 # via -r requirements/base.in
click==7.1.2 # via -r requirements/base.in, click-log, code-annotations
code-annotations==1.0.1 # via -r requirements/base.in
django==2.2.17 # via -r requirements/base.in, code-annotations
isort==5.7.0 # via pylint
jinja2==2.11.2 # via code-annotations
lazy-object-proxy==1.4.3 # via astroid
markupsafe==1.1.1 # via jinja2
mccabe==0.6.1 # via pylint
pbr==5.5.1 # via stevedore
pylint-celery==0.3 # via -r requirements/base.in
pylint-django==2.3.0 # via -r requirements/base.in
pylint-plugin-utils==0.6 # via pylint-celery, pylint-django
pylint==2.6.0 # via -r requirements/base.in, pylint-celery, pylint-django, pylint-plugin-utils
python-slugify==4.0.1 # via code-annotations
pytz==2020.5 # via django
pyyaml==5.3.1 # via code-annotations
six==1.15.0 # via -r requirements/base.in, astroid
sqlparse==0.4.1 # via django
stevedore==3.3.0 # via code-annotations
text-unidecode==1.3 # via python-slugify
toml==0.10.2 # via pylint
wrapt==1.12.1 # via astroid
astroid==2.4.2
# via
# pylint
# pylint-celery
click-log==0.3.2
# via
# -c requirements/constraints.txt
# -r requirements/base.in
click==7.1.2
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# click-log
# code-annotations
code-annotations==1.0.2
# via
# -c requirements/constraints.txt
# -r requirements/base.in
django==2.2.17
# via
# -c requirements/../edx_lint/files/common_constraints.txt
# -r requirements/base.in
# code-annotations
isort==5.7.0
# via pylint
jinja2==2.11.2
# via code-annotations
lazy-object-proxy==1.4.3
# via astroid
markupsafe==1.1.1
# via jinja2
mccabe==0.6.1
# via pylint
pbr==5.5.1
# via stevedore
pylint-celery==0.3
# via
# -c requirements/constraints.txt
# -r requirements/base.in
pylint-django==2.3.0
# via
# -c requirements/constraints.txt
# -r requirements/base.in
pylint-plugin-utils==0.6
# via
# pylint-celery
# pylint-django
pylint==2.6.0
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# pylint-celery
# pylint-django
# pylint-plugin-utils
python-slugify==4.0.1
# via code-annotations
pytz==2020.5
# via django
pyyaml==5.4.1
# via code-annotations
six==1.15.0
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# astroid
sqlparse==0.4.1
# via django
stevedore==3.3.0
# via code-annotations
text-unidecode==1.3
# via python-slugify
toml==0.10.2
# via pylint
wrapt==1.12.1
# via astroid
2 changes: 2 additions & 0 deletions requirements/ci.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
-c constraints.txt

tox
38 changes: 27 additions & 11 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,30 @@
#
# make upgrade
#
appdirs==1.4.4 # via virtualenv
distlib==0.3.1 # via virtualenv
filelock==3.0.12 # via tox, virtualenv
packaging==20.8 # via tox
pluggy==0.13.1 # via tox
py==1.10.0 # via tox
pyparsing==2.4.7 # via packaging
six==1.15.0 # via tox, virtualenv
toml==0.10.2 # via tox
tox==3.21.0 # via -r requirements/ci.in
virtualenv==20.3.0 # via tox
appdirs==1.4.4
# via virtualenv
distlib==0.3.1
# via virtualenv
filelock==3.0.12
# via
# tox
# virtualenv
packaging==20.8
# via tox
pluggy==0.13.1
# via tox
py==1.10.0
# via tox
pyparsing==2.4.7
# via packaging
six==1.15.0
# via
# -c requirements/constraints.txt
# tox
# virtualenv
toml==0.10.2
# via tox
tox==3.21.2
# via -r requirements/ci.in
virtualenv==20.4.0
# via tox
11 changes: 11 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Common constraints for edx repos
-c ../edx_lint/files/common_constraints.txt

code-annotations>=1.0.1
# Note that these requirements are pinned in order to provide a pinned pylint version for all dependent projects.
pylint==2.6.0
pylint-django==2.3.0
pylint-celery==0.3
six>=1.10.0,<2.0.0
click>=6.0
click-log==0.3.2
1 change: 1 addition & 0 deletions requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-c constraints.txt
-r base.txt

tox
Expand Down
166 changes: 132 additions & 34 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,135 @@
#
# make upgrade
#
appdirs==1.4.4 # via virtualenv
astroid==2.4.2 # via -r requirements/base.txt, pylint, pylint-celery
click-log==0.3.2 # via -r requirements/base.txt
click==7.1.2 # via -r requirements/base.txt, click-log, code-annotations
code-annotations==1.0.1 # via -r requirements/base.txt
distlib==0.3.1 # via virtualenv
django==2.2.17 # via -r requirements/base.txt, code-annotations
filelock==3.0.12 # via tox, virtualenv
isort==5.7.0 # via -r requirements/base.txt, pylint
jinja2==2.11.2 # via -r requirements/base.txt, code-annotations
lazy-object-proxy==1.4.3 # via -r requirements/base.txt, astroid
markupsafe==1.1.1 # via -r requirements/base.txt, jinja2
mccabe==0.6.1 # via -r requirements/base.txt, pylint
packaging==20.8 # via tox
pbr==5.5.1 # via -r requirements/base.txt, stevedore
pluggy==0.13.1 # via tox
py==1.10.0 # via tox
pylint-celery==0.3 # via -r requirements/base.txt
pylint-django==2.3.0 # via -r requirements/base.txt
pylint-plugin-utils==0.6 # via -r requirements/base.txt, pylint-celery, pylint-django
pylint==2.6.0 # via -r requirements/base.txt, pylint-celery, pylint-django, pylint-plugin-utils
pyparsing==2.4.7 # via packaging
python-slugify==4.0.1 # via -r requirements/base.txt, code-annotations
pytz==2020.5 # via -r requirements/base.txt, django
pyyaml==5.3.1 # via -r requirements/base.txt, code-annotations
six==1.15.0 # via -r requirements/base.txt, astroid, tox, virtualenv
sqlparse==0.4.1 # via -r requirements/base.txt, django
stevedore==3.3.0 # via -r requirements/base.txt, code-annotations
text-unidecode==1.3 # via -r requirements/base.txt, python-slugify
toml==0.10.2 # via -r requirements/base.txt, pylint, tox
tox-battery==0.6.1 # via -r requirements/dev.in
tox==3.21.0 # via -r requirements/dev.in, tox-battery
virtualenv==20.3.0 # via tox
wrapt==1.12.1 # via -r requirements/base.txt, astroid
appdirs==1.4.4
# via virtualenv
astroid==2.4.2
# via
# -r requirements/base.txt
# pylint
# pylint-celery
click-log==0.3.2
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
click==7.1.2
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# click-log
# code-annotations
code-annotations==1.0.2
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
distlib==0.3.1
# via virtualenv
django==2.2.17
# via
# -c requirements/../edx_lint/files/common_constraints.txt
# -r requirements/base.txt
# code-annotations
filelock==3.0.12
# via
# tox
# virtualenv
isort==5.7.0
# via
# -r requirements/base.txt
# pylint
jinja2==2.11.2
# via
# -r requirements/base.txt
# code-annotations
lazy-object-proxy==1.4.3
# via
# -r requirements/base.txt
# astroid
markupsafe==1.1.1
# via
# -r requirements/base.txt
# jinja2
mccabe==0.6.1
# via
# -r requirements/base.txt
# pylint
packaging==20.8
# via tox
pbr==5.5.1
# via
# -r requirements/base.txt
# stevedore
pluggy==0.13.1
# via tox
py==1.10.0
# via tox
pylint-celery==0.3
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
pylint-django==2.3.0
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
pylint-plugin-utils==0.6
# via
# -r requirements/base.txt
# pylint-celery
# pylint-django
pylint==2.6.0
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# pylint-celery
# pylint-django
# pylint-plugin-utils
pyparsing==2.4.7
# via packaging
python-slugify==4.0.1
# via
# -r requirements/base.txt
# code-annotations
pytz==2020.5
# via
# -r requirements/base.txt
# django
pyyaml==5.4.1
# via
# -r requirements/base.txt
# code-annotations
six==1.15.0
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# astroid
# tox
# virtualenv
sqlparse==0.4.1
# via
# -r requirements/base.txt
# django
stevedore==3.3.0
# via
# -r requirements/base.txt
# code-annotations
text-unidecode==1.3
# via
# -r requirements/base.txt
# python-slugify
toml==0.10.2
# via
# -r requirements/base.txt
# pylint
# tox
tox-battery==0.6.1
# via -r requirements/dev.in
tox==3.21.2
# via
# -r requirements/dev.in
# tox-battery
virtualenv==20.4.0
# via tox
wrapt==1.12.1
# via
# -r requirements/base.txt
# astroid
6 changes: 4 additions & 2 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
# make upgrade
#
click==7.1.2 # via pip-tools
pip-tools==5.5.0 # via -r requirements/pip-tools.in
click==7.1.2
# via pip-tools
pip-tools==5.5.0
# via -r requirements/pip-tools.in

# The following packages are considered to be unsafe in a requirements file:
# pip
Loading

0 comments on commit a605f44

Please sign in to comment.