Skip to content

Commit

Permalink
- Bump dependencies
Browse files Browse the repository at this point in the history
- Adjust requirements to default to click7, but allow flex with click
6.7
- Try adding python 3.7 to test matrix on travis
  • Loading branch information
jfinkhaeuser committed Feb 8, 2019
1 parent 84a4d53 commit a2ba2c8
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ python:
- '3.4'
- '3.5'
- '3.6'
- '3.7'
install:
- pip install tox-travis
script:
Expand All @@ -22,7 +23,7 @@ deploy:
tags: true
branch: master
repo: jfinkhaeuser/prance
condition: "$(python --version | grep '^Python 3\\.5')"
condition: "$(python --version | grep '^Python 3\\.6')"
env:
global:
- secure: OBNymO/NhhWmcI/Vqs4TcxYCSPoDAblnurdjC11h0xi0OVNfddhKEIlcump3G7vZZNJucepp2SOVV8rrUE1ATbxQnZzMwAarfW61l4aoAXP1y4oZkVrDVMdXTKMU2t1iXpjU7rQSCnJ9GhLyyC8I5EJTeJR9nwhts2sh186QyJM3rnjdt8C6PULh48YvpU9sKoazShzqL0s+L8wHQeh1BTRu7DMFQwmZl+dFc1RSO/Q3hpVIBk/9cdlCixWQZzPu14Z0gjX76qsVixKJ1oB+2wVIiMDwMS1h7HGQhJTY3B47orAkiSK8EbmPBBKzqD0oNEq9e98x7V/+Hre7Hw4EoMLZHeBcyeQ998T7XbYpR1/19nVyXb8epZ6q6Uo7q5+GWUr+cDdY+d/AzGed4uOh7YD+mqn+BVg+h5JyGabRpfIAeeCbwQ5Uq9WSdVhcyDeqAwSsC2uGuMSuZaTgs0aU3uXOgZpmCPA35Qs0qVOFldeId7FU+JW+ij98/B+dgTqB7ZXCFsG+BTmYxnE3Iza6dtJoe5NEYadEXiPMZG3BBcra9UN77ltmmsfentujhkgcof1H+1o85nTY2ry6SkTICmibt7egJbiKb1jr0yn0FqBvzUKJCTqIN3gQFWeC2A2FQej2EvxMcx/QRmFPK6ylVQJjbZHsoGJs/yf9fuLlyBg=
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-e .[dev,ssv,osv,icu]
-e .[dev,ssv,osv,icu,cli]
1 change: 1 addition & 0 deletions requirements_bare.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e .[dev]
3 changes: 2 additions & 1 deletion requirements_flex.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
-e .[dev,icu]
-e .[dev,flex,icu]
click~=6.7 # for flex
2 changes: 1 addition & 1 deletion requirements_no_icu.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-e .[dev,ssv,osv]
-e .[dev,ssv,osv,cli]
2 changes: 1 addition & 1 deletion requirements_no_osv_or_icu.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-e .[dev,ssv]
-e .[dev,ssv,cli]
40 changes: 24 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,35 @@
from distutils.core import setup, find_packages

dev_require = [
'tox>=2.9',
'tox>=3.7',
'bumpversion>=0.5',
'pytest>=3.4',
'pytest-cov>=2.5',
'flake8>=3.5',
'pep8-naming>=0.5',
'flake8-quotes>=0.14',
'pytest>=4.2',
'pytest-cov>=2.6',
'flake8>=3.7',
'pep8-naming>=0.8',
'flake8-quotes>=1.0',
'flake8_docstrings>=1.3',
'sphinx>=1.7',
'sphinx>=1.8',
]

icu_require = [
'PyICU~=1.9',
'PyICU~=2.2',
]

ssv_require = [
'swagger-spec-validator~=2.1',
'swagger-spec-validator~=2.4',
]

osv_require = [
'openapi-spec-validator~=0.2,>=0.2.1',
'openapi-spec-validator>0.2,>=0.2.1',
]

flex_require = [
'flex',
]

cli_require = [
'click~=7.0',
]

# Run setup
Expand Down Expand Up @@ -69,22 +77,22 @@
include_package_data = True,
install_requires = [
'chardet~=3.0',
'PyYAML~=3.12',
'flex~=6.12',
'requests~=2.18',
'six~=1.11',
'click~=6.7',
'PyYAML>4,>=4.2b4',
'requests~=2.21',
'six~=1.12',
'semver~=2.8',
],
extras_require = {
'dev': dev_require,
'icu': icu_require,
'ssv': ssv_require,
'osv': osv_require,
'flex': flex_require,
'cli': cli_require,
},
entry_points={
'console_scripts': [
'prance=prance.cli:cli',
'prance=prance.cli:cli [cli]',
],
},
zip_safe = True,
Expand Down
16 changes: 9 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
[tox]
envlist = py{27,35}-{icu,no_icu}
envlist = py{27,36}-{icu,no_icu}

[travis]
python =
pypy: pypy-{no_osv_or_icu}
2.7: py27-{no_osv_or_icu}
3.4: py34-{no_icu}
3.5: py35-{icu,no_icu,flex_only}
3.6: py36-{no_icu}
3.5: py35-{no_icu}
3.6: py36-{icu,no_icu,flex}
3.7: py37-{no_icu}

[testenv]
# Different dependencies for environments with and without ICU
deps =
icu: -r{toxinidir}/requirements.txt
no_icu: -r{toxinidir}/requirements_no_icu.txt
flex_only: -r{toxinidir}/requirements_flex_only.txt
no_osv_or_icu: -r{toxinidir}/requirements_no_osv_or_icu.txt
flex: -r{toxinidir}/requirements_flex.txt
bare: -r{toxinidir}/requirements_bare.txt
# We need to set environment variables for py3 to work with click
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
# For Python 3.5 (main dev version), also run flake8 and sphinx
# For Python 3.6 (main dev version), also run flake8 and sphinx
commands =
py{27,34,36,py}: python setup.py test
py35: python setup.py test flake8 build_sphinx
py{27,34,35,37,py}: python setup.py test
py36: python setup.py test flake8 build_sphinx

0 comments on commit a2ba2c8

Please sign in to comment.