Skip to content

Commit 7f8a62c

Browse files
ThomasHickmanmr-c
authored andcommitted
Relax ruamel.yaml dependancy cap and support python 3.7 (#831)
* migrate off of deprecated [tox:travis] * Only require typing for python < 3.7 * add workaround for lxml on py37-windows
1 parent 8d72da0 commit 7f8a62c

File tree

5 files changed

+52
-26
lines changed

5 files changed

+52
-26
lines changed

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dist: trusty
2-
sudo: true
2+
sudo: required
33
services:
44
- docker
55

@@ -17,18 +17,26 @@ cache:
1717
pip: true
1818
directories:
1919
- .mypy_cache
20-
python:
21-
- 2.7
22-
- 3.4
23-
- 3.5
24-
- 3.6
20+
2521
os:
2622
- linux
2723
install:
2824
- pip install tox-travis
2925
jobs:
3026
include:
27+
- stage: test
28+
python: "2.7"
29+
- stage: test
30+
python: "3.4"
31+
- stage: test
32+
python: "3.5"
33+
- stage: test
34+
python: "3.6"
35+
- stage: test
36+
python: "3.7"
37+
dist: xenial
3138
- stage: release-test
39+
python: "2.7"
3240
script: RELEASE_SKIP=head ${TRAVIS_BUILD_DIR}/release-test.sh
3341
script: tox
3442
branches:

appveyor.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,28 @@ environment:
2424
PYTHON_VERSION: "3.6.x"
2525
PYTHON_ARCH: "64"
2626

27+
- PYTHON: "C:\\Python37-x64"
28+
PYTHON_VERSION: "3.7.x"
29+
PYTHON_ARCH: "64"
30+
2731
install:
2832
- ps: 'Install-Product node 0.12 x64'
2933
- "%PYTHON%\\python.exe -m pip install -U wheel pytest mock"
30-
- "%PYTHON%\\python.exe -m pip show setuptools"
3134
- "%PYTHON%\\python.exe -m pip install -U setuptools^>=20.3"
3235
# Note the use of a `^` to escape the `>`
3336
#- "%PYTHON%\\python.exe -m pip install -U wheel pytest pytest-xdist mock"
3437

38+
for:
39+
- matrix:
40+
only: [ { PYTHON_VERSION: "3.7.x" } ]
41+
before_build:
42+
- "%PYTHON%\\python.exe -m pip install https://download.lfd.uci.edu/pythonlibs/l8ulg3xw/lxml-4.2.3-cp37-cp37m-win_amd64.whl"
43+
3544
build_script:
3645
- "%PYTHON%\\python.exe -m pip install ."
3746

3847
test_script:
3948
- "%PYTHON%\\python.exe -m pytest --verbose -p no:cacheprovider --junit-xml=tests.xml"
40-
#- "%PYTHON%\\python.exe -m pytest --verbose -p no:cacheprovider --junit-xml=tests.xml -n2"
4149

4250
on_finish:
4351
- ps: |

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
requests>=2.4.3
2-
ruamel.yaml>=0.12.4,<0.15
2+
ruamel.yaml>=0.12.4,<0.16
33
rdflib>=4.2.2,<4.3
44
shellescape>=3.4.1,<3.5
55
schema-salad>=2.6.20170927145003,<3
6-
typing>=3.5.3
6+
typing>=3.5.3; python_version < "3.7"
77
pathlib2==2.3.2; python_version<"3"
88
prov==1.5.1
99
bagit==1.6.4
1010
mypy-extensions
11+
psutil
1112
subprocess32 >= 3.5.0; os.name=="posix"

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@
5151
install_requires=[
5252
'setuptools',
5353
'requests >= 2.4.3',
54-
'ruamel.yaml >= 0.12.4, < 0.15',
54+
'ruamel.yaml >= 0.12.4, < 0.16',
5555
'rdflib >= 4.2.2, < 4.3.0',
5656
'shellescape >= 3.4.1, < 3.5',
5757
'schema-salad >= 2.6.20170927145003, < 3',
58-
'typing >= 3.5.3',
5958
'mypy-extensions',
6059
'six >= 1.8.0',
6160
'psutil',
@@ -65,6 +64,7 @@
6564
extras_require={
6665
':os.name=="posix"': ['subprocess32 >= 3.5.0'],
6766
':python_version<"3"': ['pathlib2 == 2.3.2'],
67+
':python_version<"3.7"': ['typing >= 3.5.3'],
6868
'deps': ["galaxy-lib >= 17.09.3"]
6969
},
7070
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
@@ -99,6 +99,7 @@
9999
'Programming Language :: Python :: 3.4',
100100
'Programming Language :: Python :: 3.5',
101101
'Programming Language :: Python :: 3.6',
102+
"Programming Language :: Python :: 3.7"
102103
'Topic :: Scientific/Engineering',
103104
'Topic :: Scientific/Engineering :: Bio-Informatics',
104105
'Topic :: Scientific/Engineering :: Astronomy',

tox.ini

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
3-
py{27,34,35,36}-lint,
4-
py{27,34,35,36}-unit,
3+
py{27,34,35,36,37}-lint,
4+
py{27,34,35,36,37}-unit,
55
py35-mypy{2,3},
66
py27-pipconflictchecker,
77
py27-lint-readme,
@@ -10,27 +10,35 @@ envlist =
1010
skipsdist = True
1111
skip_missing_interpreters = True
1212

13-
[tox:travis]
14-
2.7 = py27
15-
3.4 = py34
16-
3.5 = py35
17-
3.6 = py36
13+
[travis]
14+
python =
15+
2.7: py27
16+
3.4: py34
17+
3.5: py35
18+
3.6: py36
19+
3.7: py37
1820

1921
[testenv]
2022
passenv = CI TRAVIS TRAVIS_*
2123
deps =
2224
-rrequirements.txt
23-
py{27,34,35,36}-unit: codecov
24-
py{27,34,35,36}-unit: pytest-xdist
25-
py{27,34,35,36}-lint: flake8
25+
py{27,34,35,36,37}-unit: codecov
26+
py{27,34,35,36,37}-unit: pytest-xdist
27+
py{27,34,35,36,37}-unit: pytest-cov
28+
py{27,34,35,36,37}-unit: mock
29+
py{27,34,35,36,37}-lint: flake8
30+
31+
setenv =
32+
py{27,34,35,36,37}-unit: LC_ALL = C
2633

2734
commands =
28-
py{27,34,35,36}-unit: python setup.py test --addopts "--cov-report xml --cov cwltool {posargs}"
29-
py{27,34,35,36}-unit: codecov
30-
py{27,34,35,36}-lint: flake8 schema_salad setup.py
35+
py{27,34,35,36,37}-unit: pip install .[deps]
36+
py{27,34,35,36,37}-unit: py.test --cov-report xml --cov cwltool {posargs}
37+
py{27,34,35,36,37}-unit: codecov
38+
py{27,34,35,36,37}-lint: flake8 schema_salad setup.py
3139

3240
whitelist_externals =
33-
py{27,34,35,36}-lint: flake8
41+
py{27,34,35,36,37}-lint: flake8
3442

3543
[testenv:py35-mypy2]
3644
commands = make mypy2

0 commit comments

Comments
 (0)