File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 44import sys
55import shutil
66
7- import ez_setup
8- ez_setup .use_setuptools (version = "18.2" )
9-
107import setuptools .command .egg_info as egg_info_cmd
118
129from setuptools import setup , find_packages
2724 # In tox, it will cover them anyway.
2825 requirements = []
2926
27+ install_requires = [
28+ 'requests' ,
29+ 'PyYAML' ,
30+ 'rdflib >= 4.1.0' ,
31+ 'rdflib-jsonld >= 0.3.0' ,
32+ 'mistune' ,
33+ 'typing' ]
34+
35+ if sys .version_info .major < 3 :
36+ install_requires .append ("avro" )
37+ else :
38+ install_requires .append ("avro-python3" )
3039
3140setup (name = 'schema-salad' ,
3241 version = '1.7' ,
3948 license = 'Apache 2.0' ,
4049 packages = ["schema_salad" ],
4150 package_data = {'schema_salad' : ['metaschema/*' ]},
42- install_requires = [
43- 'requests' ,
44- 'PyYAML' ,
45- 'rdflib >= 4.1.0' ,
46- 'rdflib-jsonld >= 0.3.0' ,
47- 'mistune' ],
48- extras_require = {
49- ':python_version>="2.7"' : ['typing' ],
50- ':python_version<"3"' : ['avro' ],
51- ':python_version>="3"' : ['avro-python3' ]},
51+ install_requires = install_requires ,
5252 test_suite = 'tests' ,
5353 tests_require = [],
5454 entry_points = {
You can’t perform that action at this time.
0 commit comments