-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
75 lines (64 loc) · 1.92 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
###
# Copyright (c) 2019-present, IBM Research
# Licensed under The MIT License [see LICENSE for details]
###
import os
import setuptools
from setuptools import setup, find_packages
def find_recursive_packages(root):
def _isdir(f):
return os.path.isdir(f) and '__pycache__' not in f
dirs = list(filter(_isdir, [os.path.join(root, f) for f in os.listdir(root)]))
for dir_ in dirs:
dirs += find_recursive_packages(dir_)
return [dir_.replace('/', '.') for dir_ in dirs]
NAME = 'hkpy'
VERSION = open('./version.txt', 'r').read().strip()
URL = 'https://github.com/ibm-hyperknowledge/hkpy'
DESCRIPTION = 'A Python module to create software abstraction for accessing hyperknowledge graphs'
LONG_DESCRIPTION = None
AUTHOR = 'IBM Research Brazil'
AUTHOR_EMAIL = '[email protected]'
KEYWORDS = 'Hyperknowlede, Knowledge Engineering'
REQUIRES_PYTHON = '>=3.6'
REQUIRED = [
'requests',
'pika',
'Flask',
'flask-cors',
'PyJWT',
'urllib3',
'idna',
'certifi',
'lark'
]
try:
import pypandoc
LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
LONG_DESCRIPTION = DESCRIPTION
setup(
name=NAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="MIT",
keywords=KEYWORDS,
python_requires=REQUIRES_PYTHON,
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=REQUIRED,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
]
)