-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
57 lines (48 loc) · 1.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import json
import os
import sys
try:
from setuptools import setup
except ImportError as ex:
from distutils.core import setup
with open(os.path.join("odml", "info.json")) as infofile:
infodict = json.load(infofile)
VERSION = infodict["VERSION"]
FORMAT_VERSION = infodict["FORMAT_VERSION"]
AUTHOR = infodict["AUTHOR"]
COPYRIGHT = infodict["COPYRIGHT"]
CONTACT = infodict["CONTACT"]
HOMEPAGE = infodict["HOMEPAGE"]
CLASSIFIERS = infodict["CLASSIFIERS"]
packages = [
'odml',
'odml.rdf',
'odml.scripts',
'odml.tools',
'odml.tools.converters'
]
with open('README.md') as f:
description_text = f.read()
install_req = ["lxml", "pyyaml>=5.1", "rdflib", "docopt", "pathlib"]
if sys.version_info < (3, 4):
install_req += ["enum34"]
setup(
name='odML',
version=VERSION,
description='open metadata Markup Language',
author=AUTHOR,
author_email=CONTACT,
url=HOMEPAGE,
packages=packages,
test_suite='test',
install_requires=install_req,
include_package_data=True,
long_description=description_text,
long_description_content_type="text/markdown",
classifiers=CLASSIFIERS,
license="BSD",
entry_points={'console_scripts': ['odmltordf=odml.scripts.odml_to_rdf:main',
'odmlconversion=odml.scripts.odml_convert:dep_note',
'odmlconvert=odml.scripts.odml_convert:main',
'odmlview=odml.scripts.odml_view:main']}
)