This repository was archived by the owner on Jun 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·66 lines (54 loc) · 2.04 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
#!/usr/bin/python3
import sys
import os
from setuptools import setup
if sys.version_info[0] != 3:
sys.exit("Python3 is required in order to install Goblinoid")
def get_requirements():
with open('requirements.txt') as fd:
return fd.read().splitlines()
def get_version():
with open(os.path.join('goblinoid', '__init__.py')) as f:
content = f.readlines()
for line in content:
if line.startswith('__version__ ='):
# dirty, remove trailing and leading chars
return line.split(' = ')[1][1:-2]
raise ValueError("No version identifier found")
def get_long_description():
with open('README.rst', 'r') as f:
return f.read()
setup(
name='goblinoid',
version=get_version(),
entry_points={
'console_scripts': ['goblinoid=goblinoid.cli:cli']
},
packages=['goblinoid'],
install_requires=get_requirements(),
author='Fridolin Pokorny',
author_email='[email protected]',
maintainer='Fridolin Pokorny',
maintainer_email='[email protected]',
description='Create a graph database schema and indexes from source code automatically',
long_description=get_long_description(),
url='https://github.com/fridex/goblinoid',
license='GPLv3',
keywords='graph graph-database graph-db janusgraph tinkerpop gremlin gremlin-server',
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database",
"Topic :: Utilities",
]
)