-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
50 lines (41 loc) · 1.29 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
import json
import os
import sys
from io import open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open(os.path.join("nixodmlconverter", "info.json")) as infofile:
infodict = json.load(infofile)
VERSION = infodict["VERSION"]
AUTHOR = infodict["AUTHOR"]
COPYRIGHT = infodict["COPYRIGHT"]
CONTACT = infodict["CONTACT"]
HOMEPAGE = infodict["HOMEPAGE"]
CLASSIFIERS = infodict["CLASSIFIERS"]
packages = ['nixodmlconverter']
with open('README.md', encoding="utf8") as f:
description_text = f.read()
# Older Python installations might come with a "six" version<1.12.0
# for which nixio will fail.
install_req = ["odml>=1.4.5", "nixio>=1.5.0", "docopt", "six>=1.12.0", "isodate"]
if sys.version_info < (3, 4):
install_req += ["enum34"]
setup(
name='nixodmlconverter',
version=VERSION,
description='Converter between NIX and odML format',
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": ["nixodmlconverter=nixodmlconverter.convert:main"]}
)