Skip to content

Commit 04a956d

Browse files
author
Peter Amstutz
committed
Take out :python_version and remove extras_require because of setuptools
compatability issues. Workaround using sys.version_info.
1 parent a147a2c commit 04a956d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import sys
55
import shutil
66

7-
import ez_setup
8-
ez_setup.use_setuptools(version="18.2")
9-
107
import setuptools.command.egg_info as egg_info_cmd
118

129
from setuptools import setup, find_packages
@@ -27,6 +24,18 @@
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

3140
setup(name='schema-salad',
3241
version='1.7',
@@ -39,16 +48,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={

0 commit comments

Comments
 (0)