Updated requirements on python version.

This commit is contained in:
Cédric Bonhomme 2019-12-14 10:32:15 +01:00
parent 15b62a8034
commit cc626f8954
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
3 changed files with 8 additions and 8 deletions

View file

@ -7,22 +7,22 @@ packages:
- python3-pip - python3-pip
tasks: tasks:
- dependencies: | - dependencies: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python pip3 install --user poetry
export PATH="$PATH:~/.poetry/bin/" export PATH="$PATH:/home/build/.local/bin"
cd Stegano cd Stegano
poetry install poetry install
- link: | - link: |
export PATH="$PATH:~/.poetry/bin/" export PATH="$PATH:/home/build/.local/bin"
cd Stegano cd Stegano
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- test: | - test: |
export PATH="$PATH:~/.poetry/bin/" export PATH="$PATH:/home/build/.local/bin"
cd Stegano cd Stegano
poetry run nosetests --with-coverage --cover-package=stegano poetry run nosetests --with-coverage --cover-package=stegano
- typecheck: | - typecheck: |
export PATH="$PATH:~/.poetry/bin/" export PATH="$PATH:/home/build/.local/bin"
cd Stegano cd Stegano
poetry run python tools/run_mypy.py poetry run python tools/run_mypy.py

4
poetry.lock generated
View file

@ -128,8 +128,8 @@ python-versions = "*"
version = "3.7.4.1" version = "3.7.4.1"
[metadata] [metadata]
content-hash = "21dcc4095f950de42a0f9895f16a35f2d0d2adf4c5ada11bfb2cc7f9d7b75736" content-hash = "e75b206f8f8842db93c74a9575ec2f7cbc501b839b49770aaf88d296d6617ba6"
python-versions = "^3.8" python-versions = "^3.7"
[metadata.files] [metadata.files]
colorama = [ colorama = [

View file

@ -6,7 +6,7 @@ authors = ["Cédric Bonhomme <cedric@cedricbonhomme.org>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "^3.7"
pillow = "^6.2.1" pillow = "^6.2.1"
piexif = "^1.1.3" piexif = "^1.1.3"
crayons = "^0.3.0" crayons = "^0.3.0"