Skip to content

Commit ff192e8

Browse files
committed
turn off py3 support for now (#19)
turn off py3 support for now
1 parent 0c5dba5 commit ff192e8

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ python: 2.7
33
os:
44
- linux
55
env:
6-
- TOX_ENV=py34-lint
7-
- TOX_ENV=py33-lint
86
- TOX_ENV=py27-lint
9-
- TOX_ENV=py26-lint
10-
- TOX_ENV=py34-unit
11-
- TOX_ENV=py33-unit
127
- TOX_ENV=py27-unit
13-
- TOX_ENV=py26-unit
8+
# - TOX_ENV=py34-lint
9+
# - TOX_ENV=py33-lint
10+
# - TOX_ENV=py27-lint
11+
# - TOX_ENV=py34-unit
12+
# - TOX_ENV=py33-unit
1413

1514
install:
1615
- pip install tox

setup.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@
3232
'mistune',
3333
'typing']
3434

35-
if sys.version_info.major < 3:
36-
install_requires.append("avro")
37-
else:
38-
install_requires.append("avro-python3")
35+
install_requires.append("avro") # TODO: remove me once cwltool is
36+
# available in Debian Stable, Ubuntu 12.04 LTS
37+
38+
# extras_require={ # TODO: uncomment me, same conditions as above
39+
# ':python_version<"3"': ['avro'],
40+
# ':python_version>="3"': ['avro-python3']}
41+
extras_requires = {} # TODO: to be removed when the above is added
3942

4043
setup(name='schema-salad',
4144
version='1.9',
@@ -49,6 +52,7 @@
4952
packages=["schema_salad"],
5053
package_data={'schema_salad': ['metaschema/*']},
5154
install_requires=install_requires,
55+
extras_requires=extras_requires,
5256
test_suite='tests',
5357
tests_require=[],
5458
entry_points={
@@ -63,7 +67,8 @@
6367
"Operating System :: MacOS :: MacOS X",
6468
"Development Status :: 4 - Beta",
6569
"Programming Language :: Python :: 2.7",
66-
"Programming Language :: Python :: 3.3",
67-
"Programming Language :: Python :: 3.4",
68-
"Programming Language :: Python :: 3.5"]
70+
#"Programming Language :: Python :: 3.3", # TODO: uncomment these
71+
#"Programming Language :: Python :: 3.4", # lines
72+
#"Programming Language :: Python :: 3.5"
73+
]
6974
)

tests/test_examples.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
import rdflib
66
import ruamel.yaml as yaml
77
try:
8-
from ruamel.yaml import CSafeLoader as SafeLoader
8+
from ruamel.yaml import CSafeLoader as SafeLoader
99
except ImportError:
10-
from ruamel.yaml import SafeLoader
10+
from ruamel.yaml import SafeLoader
11+
1112

1213
class TestSchemas(unittest.TestCase):
1314
def test_schemas(self):
@@ -17,16 +18,14 @@ def test_schemas(self):
1718
"$schemas": ["tests/EDAM.owl"],
1819
"$namespaces": {"edam": "http://edamontology.org/"},
1920
"edam:has_format": "edam:format_1915"
20-
}, "")
21+
}, "")
2122

2223
self.assertEqual(ra, {
2324
"$schemas": ["tests/EDAM.owl"],
2425
"$namespaces": {"edam": "http://edamontology.org/"},
2526
'http://edamontology.org/has_format': 'http://edamontology.org/format_1915'
2627
})
2728

28-
29-
3029
# def test_domain(self):
3130
# l = schema_salad.ref_resolver.Loader({})
3231

@@ -84,7 +83,7 @@ def test_idmap(self):
8483
"@type": "@id",
8584
"identity": True,
8685
},
87-
"id": "@id"})
86+
"id": "@id"})
8887

8988
ra, _ = ldr.resolve_all({
9089
"id": "stuff",
@@ -101,21 +100,24 @@ def test_idmap(self):
101100
self.assertEqual(ra,
102101
{
103102
"id": "http://example2.com/#stuff",
104-
'inputs': [{'a': 2, 'id': 'http://example2.com/#stuff/zing'},
105-
{'a': 1, 'id': 'http://example2.com/#stuff/zip'}],
103+
'inputs': [{'a': 1, 'id': 'http://example2.com/#stuff/zip'},
104+
{'a': 2, 'id': 'http://example2.com/#stuff/zing'},
105+
],
106106
'outputs': ['http://example2.com/#stuff/out'],
107107
'other': {
108108
'n': 9
109109
}
110110
}
111-
)
111+
)
112112

113113
def test_examples(self):
114114
self.maxDiff = None
115115
for a in ["field_name", "ident_res", "link_res", "vocab_res"]:
116-
ldr, _, _ = schema_salad.schema.load_schema("schema_salad/metaschema/%s_schema.yml" % a)
116+
ldr, _, _ = schema_salad.schema.load_schema(
117+
"schema_salad/metaschema/%s_schema.yml" % a)
117118
with open("schema_salad/metaschema/%s_src.yml" % a) as src_fp:
118-
src = ldr.resolve_all(yaml.load(src_fp, Loader=SafeLoader), "")[0]
119+
src = ldr.resolve_all(
120+
yaml.load(src_fp, Loader=SafeLoader), "")[0]
119121
with open("schema_salad/metaschema/%s_proc.yml" % a) as src_proc:
120122
proc = yaml.load(src_proc, Loader=SafeLoader)
121123
self.assertEqual(proc, src)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
2-
envlist = py35-lint,py34-lint,py33-lint,py27-lint,py35-unit,py34-unit,py33-unit,py27-unit
2+
#envlist = py35-lint,py34-lint,py33-lint,py27-lint,py35-unit,py34-unit,py33-unit,py27-unit
3+
envlist = py27-lint,py27-unit
34
skipsdist = True
45

56
[testenv]

0 commit comments

Comments
 (0)