From 9b94c59ca272c339c8a95b1fbec27243bc86a5d9 Mon Sep 17 00:00:00 2001 From: Josh McLaughlin Date: Sun, 23 Feb 2020 20:20:22 -0800 Subject: [PATCH 1/5] Update requirements to fix pip-compile issues --- requirements/base.in | 2 +- requirements/base.txt | 29 ++++++-------- requirements/dev.txt | 81 ++++++++++++++++++---------------------- requirements/quality.in | 2 +- requirements/quality.txt | 16 +++----- requirements/test.txt | 68 +++++++++++++++------------------ requirements/travis.txt | 36 +++++++++--------- 7 files changed, 105 insertions(+), 129 deletions(-) diff --git a/requirements/base.in b/requirements/base.in index 5009d885..fbff9edd 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -6,7 +6,7 @@ boto==2.39.0 cookiecutter==0.9.0 Django>=1.11 django-pyfs==2.0 -fs-s3fs==0.1.5 +fs-s3fs==0.1.8 lxml==3.8.0 lazy==1.1 requests==2.22.0 diff --git a/requirements/base.txt b/requirements/base.txt index ce5bc4e5..92557bd7 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -5,43 +5,38 @@ # make upgrade # appdirs==1.4.3 # via fs -backports.os==0.1.1 # via fs binaryornot==0.4.4 # via cookiecutter -boto3==1.4.8 # via fs-s3fs +boto3==1.12.5 # via fs-s3fs boto==2.39.0 -botocore==1.8.50 # via boto3, s3transfer +botocore==1.15.5 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests cookiecutter==0.9.0 django-pyfs==2.0 -django==1.11.26 +django==2.2.10 docutils==0.15.2 # via botocore -enum34==1.1.6 # via fs -fs-s3fs==0.1.5 +fs-s3fs==0.1.8 fs==2.0.27 # via django-pyfs, fs-s3fs, xblock -funcsigs==1.0.2 # via mock -future==0.18.2 # via backports.os -futures==3.3.0 ; python_version == "2.7" # via s3transfer idna==2.8 # via requests -jinja2==2.10.3 # via cookiecutter +jinja2==2.11.1 # via cookiecutter jmespath==0.9.4 # via boto3, botocore lazy==1.1 lxml==3.8.0 markupsafe==1.1.1 # via jinja2, xblock -mock==3.0.5 # via cookiecutter pypng==0.0.20 python-dateutil==2.8.1 # via botocore, xblock pytz==2019.3 # via django, fs, xblock -pyyaml==5.2 # via cookiecutter, xblock +pyyaml==5.3 # via cookiecutter, xblock requests==2.22.0 -s3transfer==0.1.13 # via boto3 +s3transfer==0.3.3 # via boto3 simplejson==3.17.0 -six==1.10.0 # via django-pyfs, fs, fs-s3fs, mock, python-dateutil, xblock +six==1.14.0 # via django-pyfs, fs, fs-s3fs, python-dateutil, xblock +sqlparse==0.3.0 # via django typing==3.7.4.1 # via fs -urllib3==1.25.7 # via requests +urllib3==1.25.8 # via botocore, requests web-fragments==0.3.1 -webob==1.8.5 +webob==1.8.6 xblock==1.2.9 # The following packages are considered to be unsafe in a requirements file: -# setuptools==42.0.2 # via fs, lazy +# setuptools diff --git a/requirements/dev.txt b/requirements/dev.txt index 51fe35fc..a7525c16 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,92 +5,85 @@ # make upgrade # -e git+https://github.com/edx/acid-block.git@98aecba94ecbfa934e2d00262741c0ea9f557fc9#egg=acid-xblock -appdirs==1.4.3 # via fs -astroid==1.6.6 # via pylint, pylint-celery -atomicwrites==1.3.0 # via pytest +appdirs==1.4.3 # via fs, virtualenv +astroid==2.3.3 # via pylint, pylint-celery attrs==19.3.0 # via pytest -backports.functools-lru-cache==1.6.1 # via astroid, isort, pylint -backports.os==0.1.1 # via fs binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.4.8 # via fs-s3fs +boto3==1.12.5 # via fs-s3fs boto==2.39.0 -botocore==1.8.50 # via boto3, s3transfer +botocore==1.15.5 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests click-log==0.3.2 # via edx-lint click==7.0 # via click-log, edx-lint -configparser==4.0.2 # via importlib-metadata, pydocstyle, pylint -contextlib2==0.6.0.post1 # via importlib-metadata cookiecutter==0.9.0 -coverage==4.5.4 +coverage==5.0.3 ddt==1.2.2 +distlib==0.3.0 # via virtualenv django-pyfs==2.0 -django==1.11.26 +django==2.2.10 docutils==0.15.2 # via botocore edx-lint==1.4.1 -enum34==1.1.6 # via astroid, fs -filelock==3.0.12 # via tox -fs-s3fs==0.1.5 +filelock==3.0.12 # via tox, virtualenv +fs-s3fs==0.1.8 fs==2.0.27 # via django-pyfs, fs-s3fs, xblock -funcsigs==1.0.2 # via mock, pytest -future==0.18.2 # via backports.os -futures==3.3.0 ; python_version == "2.7" # via isort, s3transfer idna==2.8 # via requests -importlib-metadata==1.3.0 # via pluggy, pytest, tox +importlib-metadata==1.5.0 # via pluggy, pytest, tox, virtualenv +importlib-resources==1.0.2 # via virtualenv isort==4.3.21 -jinja2==2.10.3 # via cookiecutter +jinja2==2.11.1 # via cookiecutter jmespath==0.9.4 # via boto3, botocore lazy-object-proxy==1.4.3 # via astroid lazy==1.1 lxml==3.8.0 -mako==1.1.0 +mako==1.1.1 markupsafe==1.1.1 # via jinja2, mako, xblock mccabe==0.6.1 # via pylint mock==3.0.5 -more-itertools==5.0.0 # via pytest, zipp +more-itertools==8.2.0 # via pytest needle==0.5.0 # via bok-choy nose==1.3.7 # via needle -packaging==19.2 # via pytest, tox -pathlib2==2.3.5 # via importlib-metadata, pytest, pytest-django -pillow==6.2.1 # via needle +packaging==20.1 # via pytest, tox +pathlib2==2.3.5 # via pytest +pillow==7.0.0 # via needle pluggy==0.13.1 # via pytest, tox -py==1.8.0 # via pytest, tox +py==1.8.1 # via pytest, tox pycodestyle==2.5.0 -pydocstyle==3.0.0 +pydocstyle==5.0.2 pylint-celery==0.3 # via edx-lint -pylint-django==0.11.1 # via edx-lint +pylint-django==2.0.11 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django -pylint==1.9.5 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils -pyparsing==2.4.5 # via packaging +pylint==2.4.2 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils +pyparsing==2.4.6 # via packaging pypng==0.0.20 pytest-cov==2.8.1 -pytest-django==3.7.0 +pytest-django==3.8.0 pytest-rerunfailures==8.0 -pytest==4.6.7 # via pytest-cov, pytest-django, pytest-rerunfailures +pytest==5.3.5 # via pytest-cov, pytest-django, pytest-rerunfailures python-dateutil==2.8.1 # via botocore, xblock pytz==2019.3 # via django, fs, xblock -pyyaml==5.2 # via cookiecutter, xblock +pyyaml==5.3 # via cookiecutter, xblock requests==2.22.0 -s3transfer==0.1.13 # via boto3 -scandir==1.10.0 # via pathlib2 +s3transfer==0.3.3 # via boto3 selenium==3.4.1 simplejson==3.17.0 -singledispatch==3.4.0.3 # via astroid, pylint -six==1.10.0 +six==1.14.0 snowballstemmer==2.0.0 # via pydocstyle +sqlparse==0.3.0 # via django toml==0.10.0 # via tox -tox-battery==0.5.1 -tox==3.14.2 +tox-battery==0.5.2 +tox==3.14.5 +typed-ast==1.4.1 # via astroid typing==3.7.4.1 # via fs -urllib3==1.25.7 # via requests -virtualenv==16.7.8 # via tox -wcwidth==0.1.7 # via pytest +urllib3==1.25.8 # via botocore, requests +virtualenv==20.0.5 # via tox +wcwidth==0.1.8 # via pytest web-fragments==0.3.1 -webob==1.8.5 +webob==1.8.6 wrapt==1.11.2 # via astroid xblock==1.2.9 -zipp==0.6.0 # via importlib-metadata +zipp==1.2.0 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: -# setuptools==42.0.2 # via fs, lazy, pytest-rerunfailures +# setuptools diff --git a/requirements/quality.in b/requirements/quality.in index 7bc22c67..7cf85d42 100644 --- a/requirements/quality.in +++ b/requirements/quality.in @@ -6,4 +6,4 @@ edx-lint # edX pylint rules and plugins isort # to standardize order of imports pycodestyle # PEP 8 compliance validation pydocstyle # PEP 257 compliance validation -six==1.10.0 # Prevents a version conflict between this file and test.txt +six==1.14.0 # Prevents a version conflict between this file and test.txt diff --git a/requirements/quality.txt b/requirements/quality.txt index 0902a4cf..270915d1 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -4,24 +4,20 @@ # # make upgrade # -astroid==1.6.6 # via pylint, pylint-celery -backports.functools-lru-cache==1.6.1 # via astroid, isort, pylint +astroid==2.3.3 # via pylint, pylint-celery click-log==0.3.2 # via edx-lint click==7.0 # via click-log, edx-lint -configparser==4.0.2 # via pydocstyle, pylint edx-lint==1.4.1 -enum34==1.1.6 # via astroid -futures==3.3.0 ; python_version == "2.7" # via isort isort==4.3.21 lazy-object-proxy==1.4.3 # via astroid mccabe==0.6.1 # via pylint pycodestyle==2.5.0 -pydocstyle==3.0.0 +pydocstyle==5.0.2 pylint-celery==0.3 # via edx-lint -pylint-django==0.11.1 # via edx-lint +pylint-django==2.0.11 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django -pylint==1.9.5 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils -singledispatch==3.4.0.3 # via astroid, pylint -six==1.10.0 +pylint==2.4.2 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils +six==1.14.0 snowballstemmer==2.0.0 # via pydocstyle +typed-ast==1.4.1 # via astroid wrapt==1.11.2 # via astroid diff --git a/requirements/test.txt b/requirements/test.txt index 1711d6a6..ccf82c2d 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -5,74 +5,68 @@ # make upgrade # -e git+https://github.com/edx/acid-block.git@98aecba94ecbfa934e2d00262741c0ea9f557fc9#egg=acid-xblock -appdirs==1.4.3 # via fs -atomicwrites==1.3.0 # via pytest +appdirs==1.4.3 # via fs, virtualenv attrs==19.3.0 # via pytest -backports.os==0.1.1 # via fs binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.4.8 # via fs-s3fs +boto3==1.12.5 # via fs-s3fs boto==2.39.0 -botocore==1.8.50 # via boto3, s3transfer +botocore==1.15.5 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests -configparser==4.0.2 # via importlib-metadata -contextlib2==0.6.0.post1 # via importlib-metadata cookiecutter==0.9.0 -coverage==4.5.4 +coverage==5.0.3 ddt==1.2.2 +distlib==0.3.0 # via virtualenv django-pyfs==2.0 docutils==0.15.2 # via botocore -enum34==1.1.6 # via fs -filelock==3.0.12 # via tox -fs-s3fs==0.1.5 +filelock==3.0.12 # via tox, virtualenv +fs-s3fs==0.1.8 fs==2.0.27 # via django-pyfs, fs-s3fs, xblock -funcsigs==1.0.2 # via mock, pytest -future==0.18.2 # via backports.os -futures==3.3.0 ; python_version == "2.7" # via s3transfer idna==2.8 # via requests -importlib-metadata==1.3.0 # via pluggy, pytest, tox -jinja2==2.10.3 # via cookiecutter +importlib-metadata==1.5.0 # via pluggy, pytest, tox, virtualenv +importlib-resources==1.0.2 # via virtualenv +jinja2==2.11.1 # via cookiecutter jmespath==0.9.4 # via boto3, botocore lazy==1.1 lxml==3.8.0 -mako==1.1.0 +mako==1.1.1 markupsafe==1.1.1 # via jinja2, mako, xblock mock==3.0.5 -more-itertools==5.0.0 # via pytest, zipp +more-itertools==8.2.0 # via pytest needle==0.5.0 # via bok-choy nose==1.3.7 # via needle -packaging==19.2 # via pytest, tox -pathlib2==2.3.5 # via importlib-metadata, pytest, pytest-django -pillow==6.2.1 # via needle +packaging==20.1 # via pytest, tox +pathlib2==2.3.5 # via pytest +pillow==7.0.0 # via needle pluggy==0.13.1 # via pytest, tox -py==1.8.0 # via pytest, tox -pyparsing==2.4.5 # via packaging +py==1.8.1 # via pytest, tox +pyparsing==2.4.6 # via packaging pypng==0.0.20 pytest-cov==2.8.1 -pytest-django==3.7.0 +pytest-django==3.8.0 pytest-rerunfailures==8.0 -pytest==4.6.7 # via pytest-cov, pytest-django, pytest-rerunfailures +pytest==5.3.5 # via pytest-cov, pytest-django, pytest-rerunfailures python-dateutil==2.8.1 # via botocore, xblock pytz==2019.3 # via django, fs, xblock -pyyaml==5.2 # via cookiecutter, xblock +pyyaml==5.3 # via cookiecutter, xblock requests==2.22.0 -s3transfer==0.1.13 # via boto3 -scandir==1.10.0 # via pathlib2 +s3transfer==0.3.3 # via boto3 selenium==3.4.1 simplejson==3.17.0 -six==1.10.0 # via bok-choy, django-pyfs, fs, fs-s3fs, mock, more-itertools, packaging, pathlib2, pytest, python-dateutil, tox, xblock +six==1.14.0 # via bok-choy, django-pyfs, fs, fs-s3fs, mock, packaging, pathlib2, python-dateutil, tox, virtualenv, xblock +sqlparse==0.3.0 # via django toml==0.10.0 # via tox -tox-battery==0.5.1 -tox==3.14.2 +tox-battery==0.5.2 +tox==3.14.5 typing==3.7.4.1 # via fs -urllib3==1.25.7 # via requests -virtualenv==16.7.8 # via tox -wcwidth==0.1.7 # via pytest +urllib3==1.25.8 # via botocore, requests +virtualenv==20.0.5 # via tox +wcwidth==0.1.8 # via pytest web-fragments==0.3.1 -webob==1.8.5 +webob==1.8.6 xblock==1.2.9 -zipp==0.6.0 # via importlib-metadata +zipp==1.2.0 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: -# setuptools==42.0.2 # via fs, lazy, pytest-rerunfailures +# setuptools diff --git a/requirements/travis.txt b/requirements/travis.txt index e122db39..a0ce6a1f 100644 --- a/requirements/travis.txt +++ b/requirements/travis.txt @@ -4,27 +4,25 @@ # # make upgrade # +appdirs==1.4.3 # via virtualenv certifi==2019.11.28 # via requests chardet==3.0.4 # via requests codecov==2.0.15 -configparser==4.0.2 # via importlib-metadata -contextlib2==0.6.0.post1 # via importlib-metadata -coverage==4.5.4 # via codecov -filelock==3.0.12 # via tox -idna==2.8 # via requests -importlib-metadata==1.3.0 # via pluggy, tox -more-itertools==5.0.0 # via zipp -packaging==19.2 # via tox -pathlib2==2.3.5 # via importlib-metadata +coverage==5.0.3 # via codecov +distlib==0.3.0 # via virtualenv +filelock==3.0.12 # via tox, virtualenv +idna==2.9 # via requests +importlib-metadata==1.5.0 # via pluggy, tox, virtualenv +importlib-resources==1.0.2 # via virtualenv +packaging==20.1 # via tox pluggy==0.13.1 # via tox -py==1.8.0 # via tox -pyparsing==2.4.5 # via packaging -requests==2.22.0 # via codecov -scandir==1.10.0 # via pathlib2 -six==1.13.0 # via more-itertools, packaging, pathlib2, tox +py==1.8.1 # via tox +pyparsing==2.4.6 # via packaging +requests==2.23.0 # via codecov +six==1.14.0 # via packaging, tox, virtualenv toml==0.10.0 # via tox -tox-battery==0.5.1 -tox==3.14.2 -urllib3==1.25.7 # via requests -virtualenv==16.7.8 # via tox -zipp==0.6.0 # via importlib-metadata +tox-battery==0.5.2 +tox==3.14.5 +urllib3==1.25.8 # via requests +virtualenv==20.0.5 # via tox +zipp==1.2.0 # via importlib-metadata From a4de3dc5b840a625b6544ab4695a6eb433b3c692 Mon Sep 17 00:00:00 2001 From: Josh McLaughlin Date: Wed, 26 Feb 2020 18:31:52 -0800 Subject: [PATCH 2/5] Add constraints to fix Python 2.7 CI --- constraints.txt | 2 ++ requirements/base.txt | 6 +++--- requirements/dev.txt | 19 +++++++++---------- requirements/quality.txt | 11 +++++------ requirements/test.txt | 8 ++++---- requirements/travis.txt | 4 ++-- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/constraints.txt b/constraints.txt index 4d1b72e1..fa2c8c44 100644 --- a/constraints.txt +++ b/constraints.txt @@ -10,3 +10,5 @@ # These packages are backports which can only be installed on Python 2.7 futures ; python_version == "2.7" +astroid<2.0 +edx-lint<1.4.0 diff --git a/requirements/base.txt b/requirements/base.txt index 92557bd7..46ffd7d1 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,9 +6,9 @@ # appdirs==1.4.3 # via fs binaryornot==0.4.4 # via cookiecutter -boto3==1.12.5 # via fs-s3fs +boto3==1.12.8 # via fs-s3fs boto==2.39.0 -botocore==1.15.5 # via boto3, s3transfer +botocore==1.15.8 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests cookiecutter==0.9.0 @@ -19,7 +19,7 @@ fs-s3fs==0.1.8 fs==2.0.27 # via django-pyfs, fs-s3fs, xblock idna==2.8 # via requests jinja2==2.11.1 # via cookiecutter -jmespath==0.9.4 # via boto3, botocore +jmespath==0.9.5 # via boto3, botocore lazy==1.1 lxml==3.8.0 markupsafe==1.1.1 # via jinja2, xblock diff --git a/requirements/dev.txt b/requirements/dev.txt index a7525c16..5967d1ba 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,13 +6,13 @@ # -e git+https://github.com/edx/acid-block.git@98aecba94ecbfa934e2d00262741c0ea9f557fc9#egg=acid-xblock appdirs==1.4.3 # via fs, virtualenv -astroid==2.3.3 # via pylint, pylint-celery +astroid==1.5.3 # via pylint, pylint-celery attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.12.5 # via fs-s3fs +boto3==1.12.8 # via fs-s3fs boto==2.39.0 -botocore==1.15.5 # via boto3, s3transfer +botocore==1.15.8 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests click-log==0.3.2 # via edx-lint @@ -24,7 +24,7 @@ distlib==0.3.0 # via virtualenv django-pyfs==2.0 django==2.2.10 docutils==0.15.2 # via botocore -edx-lint==1.4.1 +edx-lint==1.3.1 filelock==3.0.12 # via tox, virtualenv fs-s3fs==0.1.8 fs==2.0.27 # via django-pyfs, fs-s3fs, xblock @@ -33,7 +33,7 @@ importlib-metadata==1.5.0 # via pluggy, pytest, tox, virtualenv importlib-resources==1.0.2 # via virtualenv isort==4.3.21 jinja2==2.11.1 # via cookiecutter -jmespath==0.9.4 # via boto3, botocore +jmespath==0.9.5 # via boto3, botocore lazy-object-proxy==1.4.3 # via astroid lazy==1.1 lxml==3.8.0 @@ -52,9 +52,9 @@ py==1.8.1 # via pytest, tox pycodestyle==2.5.0 pydocstyle==5.0.2 pylint-celery==0.3 # via edx-lint -pylint-django==2.0.11 # via edx-lint +pylint-django==0.7.2 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django -pylint==2.4.2 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils +pylint==1.7.6 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils pyparsing==2.4.6 # via packaging pypng==0.0.20 pytest-cov==2.8.1 @@ -74,14 +74,13 @@ sqlparse==0.3.0 # via django toml==0.10.0 # via tox tox-battery==0.5.2 tox==3.14.5 -typed-ast==1.4.1 # via astroid typing==3.7.4.1 # via fs urllib3==1.25.8 # via botocore, requests -virtualenv==20.0.5 # via tox +virtualenv==20.0.7 # via tox wcwidth==0.1.8 # via pytest web-fragments==0.3.1 webob==1.8.6 -wrapt==1.11.2 # via astroid +wrapt==1.12.0 # via astroid xblock==1.2.9 zipp==1.2.0 # via importlib-metadata diff --git a/requirements/quality.txt b/requirements/quality.txt index 270915d1..fdcc7f9b 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -4,20 +4,19 @@ # # make upgrade # -astroid==2.3.3 # via pylint, pylint-celery +astroid==1.5.3 # via pylint, pylint-celery click-log==0.3.2 # via edx-lint click==7.0 # via click-log, edx-lint -edx-lint==1.4.1 +edx-lint==1.3.1 isort==4.3.21 lazy-object-proxy==1.4.3 # via astroid mccabe==0.6.1 # via pylint pycodestyle==2.5.0 pydocstyle==5.0.2 pylint-celery==0.3 # via edx-lint -pylint-django==2.0.11 # via edx-lint +pylint-django==0.7.2 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django -pylint==2.4.2 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils +pylint==1.7.6 # via edx-lint, pylint-celery, pylint-django, pylint-plugin-utils six==1.14.0 snowballstemmer==2.0.0 # via pydocstyle -typed-ast==1.4.1 # via astroid -wrapt==1.11.2 # via astroid +wrapt==1.12.0 # via astroid diff --git a/requirements/test.txt b/requirements/test.txt index ccf82c2d..2190f93c 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -9,9 +9,9 @@ appdirs==1.4.3 # via fs, virtualenv attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.12.5 # via fs-s3fs +boto3==1.12.8 # via fs-s3fs boto==2.39.0 -botocore==1.15.5 # via boto3, s3transfer +botocore==1.15.8 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests cookiecutter==0.9.0 @@ -27,7 +27,7 @@ idna==2.8 # via requests importlib-metadata==1.5.0 # via pluggy, pytest, tox, virtualenv importlib-resources==1.0.2 # via virtualenv jinja2==2.11.1 # via cookiecutter -jmespath==0.9.4 # via boto3, botocore +jmespath==0.9.5 # via boto3, botocore lazy==1.1 lxml==3.8.0 mako==1.1.1 @@ -61,7 +61,7 @@ tox-battery==0.5.2 tox==3.14.5 typing==3.7.4.1 # via fs urllib3==1.25.8 # via botocore, requests -virtualenv==20.0.5 # via tox +virtualenv==20.0.7 # via tox wcwidth==0.1.8 # via pytest web-fragments==0.3.1 webob==1.8.6 diff --git a/requirements/travis.txt b/requirements/travis.txt index a0ce6a1f..7ff315ab 100644 --- a/requirements/travis.txt +++ b/requirements/travis.txt @@ -7,7 +7,7 @@ appdirs==1.4.3 # via virtualenv certifi==2019.11.28 # via requests chardet==3.0.4 # via requests -codecov==2.0.15 +codecov==2.0.16 coverage==5.0.3 # via codecov distlib==0.3.0 # via virtualenv filelock==3.0.12 # via tox, virtualenv @@ -24,5 +24,5 @@ toml==0.10.0 # via tox tox-battery==0.5.2 tox==3.14.5 urllib3==1.25.8 # via requests -virtualenv==20.0.5 # via tox +virtualenv==20.0.7 # via tox zipp==1.2.0 # via importlib-metadata From 557188bb28b3cb7141db3e02b765d75ff74afab3 Mon Sep 17 00:00:00 2001 From: Josh McLaughlin Date: Wed, 26 Feb 2020 23:47:12 -0800 Subject: [PATCH 3/5] Add more required constraints --- constraints.txt | 6 ++++++ requirements/dev.txt | 7 ++++--- requirements/test.txt | 9 +++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/constraints.txt b/constraints.txt index fa2c8c44..5d202cf9 100644 --- a/constraints.txt +++ b/constraints.txt @@ -10,5 +10,11 @@ # These packages are backports which can only be installed on Python 2.7 futures ; python_version == "2.7" + +# These packages still support Python 2.7, and are required for compatibility with Django 1.11 +# See https://github.com/edx/xblock-sdk/pull/169 astroid<2.0 edx-lint<1.4.0 +more-itertools<=5.0.0 +pillow<=6.2.2 +pytest<=4.6.9 diff --git a/requirements/dev.txt b/requirements/dev.txt index 5967d1ba..6aa62557 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,6 +7,7 @@ -e git+https://github.com/edx/acid-block.git@98aecba94ecbfa934e2d00262741c0ea9f557fc9#egg=acid-xblock appdirs==1.4.3 # via fs, virtualenv astroid==1.5.3 # via pylint, pylint-celery +atomicwrites==1.3.0 # via pytest attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 @@ -41,12 +42,12 @@ mako==1.1.1 markupsafe==1.1.1 # via jinja2, mako, xblock mccabe==0.6.1 # via pylint mock==3.0.5 -more-itertools==8.2.0 # via pytest +more-itertools==5.0.0 # via pytest needle==0.5.0 # via bok-choy nose==1.3.7 # via needle packaging==20.1 # via pytest, tox pathlib2==2.3.5 # via pytest -pillow==7.0.0 # via needle +pillow==6.2.2 # via needle pluggy==0.13.1 # via pytest, tox py==1.8.1 # via pytest, tox pycodestyle==2.5.0 @@ -60,7 +61,7 @@ pypng==0.0.20 pytest-cov==2.8.1 pytest-django==3.8.0 pytest-rerunfailures==8.0 -pytest==5.3.5 # via pytest-cov, pytest-django, pytest-rerunfailures +pytest==4.6.9 # via pytest-cov, pytest-django, pytest-rerunfailures python-dateutil==2.8.1 # via botocore, xblock pytz==2019.3 # via django, fs, xblock pyyaml==5.3 # via cookiecutter, xblock diff --git a/requirements/test.txt b/requirements/test.txt index 2190f93c..120d4b1d 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,6 +6,7 @@ # -e git+https://github.com/edx/acid-block.git@98aecba94ecbfa934e2d00262741c0ea9f557fc9#egg=acid-xblock appdirs==1.4.3 # via fs, virtualenv +atomicwrites==1.3.0 # via pytest attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 @@ -33,12 +34,12 @@ lxml==3.8.0 mako==1.1.1 markupsafe==1.1.1 # via jinja2, mako, xblock mock==3.0.5 -more-itertools==8.2.0 # via pytest +more-itertools==5.0.0 # via pytest needle==0.5.0 # via bok-choy nose==1.3.7 # via needle packaging==20.1 # via pytest, tox pathlib2==2.3.5 # via pytest -pillow==7.0.0 # via needle +pillow==6.2.2 # via needle pluggy==0.13.1 # via pytest, tox py==1.8.1 # via pytest, tox pyparsing==2.4.6 # via packaging @@ -46,7 +47,7 @@ pypng==0.0.20 pytest-cov==2.8.1 pytest-django==3.8.0 pytest-rerunfailures==8.0 -pytest==5.3.5 # via pytest-cov, pytest-django, pytest-rerunfailures +pytest==4.6.9 # via pytest-cov, pytest-django, pytest-rerunfailures python-dateutil==2.8.1 # via botocore, xblock pytz==2019.3 # via django, fs, xblock pyyaml==5.3 # via cookiecutter, xblock @@ -54,7 +55,7 @@ requests==2.22.0 s3transfer==0.3.3 # via boto3 selenium==3.4.1 simplejson==3.17.0 -six==1.14.0 # via bok-choy, django-pyfs, fs, fs-s3fs, mock, packaging, pathlib2, python-dateutil, tox, virtualenv, xblock +six==1.14.0 # via bok-choy, django-pyfs, fs, fs-s3fs, mock, more-itertools, packaging, pathlib2, pytest, python-dateutil, tox, virtualenv, xblock sqlparse==0.3.0 # via django toml==0.10.0 # via tox tox-battery==0.5.2 From 07eb1d68638dd62b04557ed1e21eb52a8935b02b Mon Sep 17 00:00:00 2001 From: Josh McLaughlin Date: Thu, 27 Feb 2020 22:15:02 -0800 Subject: [PATCH 4/5] Add constraint for pydocstyle --- constraints.txt | 1 + requirements/base.txt | 4 ++-- requirements/dev.txt | 6 +++--- requirements/quality.txt | 2 +- requirements/test.txt | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/constraints.txt b/constraints.txt index 5d202cf9..e8cd1fea 100644 --- a/constraints.txt +++ b/constraints.txt @@ -18,3 +18,4 @@ edx-lint<1.4.0 more-itertools<=5.0.0 pillow<=6.2.2 pytest<=4.6.9 +pydocstyle<4.0.0 diff --git a/requirements/base.txt b/requirements/base.txt index 46ffd7d1..76dabc86 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,9 +6,9 @@ # appdirs==1.4.3 # via fs binaryornot==0.4.4 # via cookiecutter -boto3==1.12.8 # via fs-s3fs +boto3==1.12.9 # via fs-s3fs boto==2.39.0 -botocore==1.15.8 # via boto3, s3transfer +botocore==1.15.9 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests cookiecutter==0.9.0 diff --git a/requirements/dev.txt b/requirements/dev.txt index 6aa62557..920ea701 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -11,9 +11,9 @@ atomicwrites==1.3.0 # via pytest attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.12.8 # via fs-s3fs +boto3==1.12.9 # via fs-s3fs boto==2.39.0 -botocore==1.15.8 # via boto3, s3transfer +botocore==1.15.9 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests click-log==0.3.2 # via edx-lint @@ -51,7 +51,7 @@ pillow==6.2.2 # via needle pluggy==0.13.1 # via pytest, tox py==1.8.1 # via pytest, tox pycodestyle==2.5.0 -pydocstyle==5.0.2 +pydocstyle==3.0.0 pylint-celery==0.3 # via edx-lint pylint-django==0.7.2 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django diff --git a/requirements/quality.txt b/requirements/quality.txt index fdcc7f9b..7d7b97da 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -12,7 +12,7 @@ isort==4.3.21 lazy-object-proxy==1.4.3 # via astroid mccabe==0.6.1 # via pylint pycodestyle==2.5.0 -pydocstyle==5.0.2 +pydocstyle==3.0.0 pylint-celery==0.3 # via edx-lint pylint-django==0.7.2 # via edx-lint pylint-plugin-utils==0.6 # via pylint-celery, pylint-django diff --git a/requirements/test.txt b/requirements/test.txt index 120d4b1d..f44752fd 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,9 +10,9 @@ atomicwrites==1.3.0 # via pytest attrs==19.3.0 # via pytest binaryornot==0.4.4 # via cookiecutter bok_choy==0.7.1 -boto3==1.12.8 # via fs-s3fs +boto3==1.12.9 # via fs-s3fs boto==2.39.0 -botocore==1.15.8 # via boto3, s3transfer +botocore==1.15.9 # via boto3, s3transfer certifi==2019.11.28 # via requests chardet==3.0.4 # via binaryornot, requests cookiecutter==0.9.0 From 510ede25e11254229e91375ea2e5b1446eb9fe46 Mon Sep 17 00:00:00 2001 From: Josh McLaughlin Date: Fri, 28 Feb 2020 15:35:16 -0800 Subject: [PATCH 5/5] Ignore pylint deprecation warning pylint warns about a deprecated function during quality checks. This function was meant to be deprecated, but python maintainers decided to reverse this decision. https://docs.python.org/3/library/inspect.html#inspect.getfullargspec --- sample_xblocks/basic/problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_xblocks/basic/problem.py b/sample_xblocks/basic/problem.py index ab01ae2c..7762d19d 100644 --- a/sample_xblocks/basic/problem.py +++ b/sample_xblocks/basic/problem.py @@ -332,7 +332,7 @@ def set_arguments_from_xml(self, node): """ # Introspect the .check() method, and collect arguments it expects. if hasattr(inspect, 'getfullargspec'): - # pylint: disable=no-member, useless-suppression + # pylint: disable=no-member, useless-suppression, deprecated-method argspec = inspect.getfullargspec(self.check) else: argspec = inspect.getargspec(self.check) # pylint: disable=deprecated-method