Skip to content

Commit

Permalink
Updating requirements based on current develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed May 17, 2021
1 parent 6c8620a commit 3cf1511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cms/test_utils/util/static_analysis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from django.utils import six
import io

from pyflakes import api
from pyflakes.checker import Checker
Expand All @@ -13,11 +13,11 @@ def _pyflakes_report_with_nopyflakes(self, messageClass, node, *args, **kwargs):
self.messages.append(messageClass(self.filename, node, *args, **kwargs))


def _pyflakes_no_migrations(self, tree, filename='(none)', builtins=None):
def _pyflakes_no_migrations(self, tree, filename='(none)', builtins=None, file_tokens=()):
if os.path.basename(os.path.dirname(filename)) == 'migrations':
self.messages = []
else:
Checker.___init___(self, tree, filename, builtins)
Checker.___init___(self, tree, filename, builtins, file_tokens)


def _check_recursive(paths, reporter):
Expand All @@ -41,7 +41,7 @@ def pyflakes(packages):
Checker.___init___ = Checker.__init__
Checker.__init__ = _pyflakes_no_migrations
Checker.report = _pyflakes_report_with_nopyflakes
out = six.StringIO()
out = io.StringIO()
reporter = Reporter(out, out)
paths = [os.path.dirname(package.__file__) for package in packages]
return _check_recursive(paths, reporter), out.getvalue()
6 changes: 2 additions & 4 deletions test_requirements/requirements_base.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
coverage<5
python-coveralls>2.5.0
unittest-xml-reporting==1.11.0
Pillow==3.3
Pillow==5.2.0
django-treebeard>=4.3
argparse
dj-database-url
djangocms-admin-style>=1.2
djangocms-admin-style>=1.5
django-sekizai>=0.7
django-classy-tags>=0.7.2
https://github.com/divio/djangocms-text-ckeditor/archive/support/4.0.x.zip
Expand All @@ -14,8 +14,6 @@ https://github.com/ojii/django-app-manage/archive/65da18ef234a4e985710c2c0ec7600
iptools
sphinx==1.8.5
sphinxcontrib-spelling<7.0.0 # restriction for py35 tests
pyflakes>2,<3
pyenchant
# required to run the server for integration tests
djangocms-helper
mock>=2.0.0
Expand Down

0 comments on commit 3cf1511

Please sign in to comment.