Skip to content

Commit

Permalink
updating deps and removing python3.6 restriction (#140)
Browse files Browse the repository at this point in the history
* updating dependencies

* removing python3.6 restriction

* fixing pylint recursion issue
  • Loading branch information
ryandeivert authored Feb 20, 2019
1 parent 53d7c40 commit 9cab406
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 42 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: python
cache: pip
python: "3.6"
python:
- "3.6"
- "3.7-dev"
notifications:
email: false
install:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BinaryAlert can be deployed from any MacOS/Linux environment (and likely Windows
sudo -H pip3 install --upgrade pip
python3.6 --version
.. warning:: Python 3.5 or 3.7 is installed by default on some systems, but AWS Lambda requires Python 3.6.
.. warning:: Python 3.5 is installed by default on some systems, but AWS Lambda requires Python 3.6 or 3.7.

2. Install `Terraform <https://www.terraform.io/downloads.html>`_ v0.11.X:

Expand Down
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

def main() -> None:
"""Main command dispatcher."""
if not (sys.version_info.major == 3 and sys.version_info.minor == 6):
print('ERROR: Python 3.6 is required, found Python {}.{}.{}'.format(
if not (sys.version_info.major == 3 and sys.version_info.minor in {6, 7}):
print('ERROR: Python 3.6/7 is required, found Python {}.{}.{}'.format(
sys.version_info.major, sys.version_info.minor, sys.version_info.micro))
exit(1)

Expand Down
76 changes: 39 additions & 37 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,59 +1,61 @@
alabaster==0.7.11
alabaster==0.7.12
asn1crypto==0.24.0
astroid==2.0.4
attrdict==2.0.0
astroid==2.1.0
attrdict==2.0.1
Babel==2.6.0
bandit==1.5.0
boto3==1.8.7
botocore==1.11.7
cachetools==2.1.0
bandit==1.5.1
boto3==1.9.99
botocore==1.12.99
cachetools==3.1.0
cbapi==1.3.6
certifi==2018.8.24
cffi==1.11.5
certifi==2018.11.29
cffi==1.12.1
chardet==3.0.4
coverage==4.5.1
coveralls==1.5.0
cryptography==2.3.1
coverage==4.5.2
coveralls==1.6.0
cryptography==2.5
docopt==0.6.2
docutils==0.14
gitdb2==2.0.4
futures==3.1.1
gitdb2==2.0.5
GitPython==2.1.11
idna==2.7
idna==2.8
imagesize==1.1.0
isort==4.3.4
Jinja2==2.10
jmespath==0.9.3
lazy-object-proxy==1.3.1
MarkupSafe==1.0
MarkupSafe==1.1.0
mccabe==0.6.1
mypy==0.620
packaging==17.1
pbr==4.2.0
pika==0.12.0
mypy==0.670
mypy-extensions==0.4.1
packaging==19.0
pbr==5.1.2
pika==0.13.0
ply==3.10
prompt-toolkit==2.0.4
prompt-toolkit==2.0.9
protobuf==3.6.1
pycparser==2.18
pyfakefs==3.4.3
Pygments==2.2.0
pycparser==2.19
pyfakefs==3.5.7
Pygments==2.3.1
pyhcl==0.3.10
pylint==2.1.1
pyOpenSSL==18.0.0
pyparsing==2.2.0
pylint==2.2.2
pyOpenSSL==19.0.0
pyparsing==2.3.1
python-dateutil==2.6.1
pytz==2018.5
pytz==2018.9
PyYAML==3.13
requests==2.19.1
s3transfer==0.1.13
six==1.11.0
smmap2==2.0.4
requests==2.21.0
s3transfer==0.2.0
six==1.12.0
smmap2==2.0.5
snowballstemmer==1.2.1
Sphinx==1.7.8
sphinx-rtd-theme==0.4.1
Sphinx==1.8.4
sphinx-rtd-theme==0.4.3
sphinxcontrib-websupport==1.1.0
stevedore==1.29.0
typed-ast==1.1.0
urllib3==1.23
stevedore==1.30.0
typed-ast==1.3.1
urllib3==1.24.1
wcwidth==0.1.7
wrapt==1.10.11
wrapt==1.11.1
yara-python==3.8.0
2 changes: 1 addition & 1 deletion tests/ci_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ printf "\n~~~~~~~~~~ [4] Measure Coverage ~~~~~~~~~~\n" &&
coverage report && # Required coverage threshold specified in .coveragerc

printf "\n~~~~~~~~~~ [5] Pylint ~~~~~~~~~~\n" &&
pylint cli lambda_functions rules tests *.py -j 1 && # Config in .pylintrc
pylint --init-hook="import sys; sys.setrecursionlimit(2000)" cli lambda_functions rules tests *.py -j 1 && # Config in .pylintrc. Max recursion needed in python3.7

printf "\n~~~~~~~~~~ [6] Build Documentation ~~~~~~~~~~\n" &&
sphinx-build -W docs/source docs/build &&
Expand Down

0 comments on commit 9cab406

Please sign in to comment.