forked from junyang/radb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (41 loc) · 1.36 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
from setuptools import setup, find_packages
from codecs import open
import os
import configparser
def get_path(fname):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), fname)
def parse_setup_config(fname):
configfile = get_path(fname)
config = configparser.ConfigParser()
config.read(configfile)
return { key.replace('setup.', '', 1): val
for key, val in config.items(configparser.DEFAULTSECT)
if key.startswith('setup.') }
setup_config = parse_setup_config('radb/sys.ini')
def read(fname):
return open(get_path(fname), encoding='utf-8').read()
setup(
**setup_config,
long_description=read('README.rst'),
license='MIT',
keywords='database relational algebra',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development :: Interpreters',
'Programming Language :: Python :: 3',
],
packages=find_packages(),
install_requires=['sqlalchemy', 'antlr4-python3-runtime>=4.7,<4.8'],
python_requires='>=3.5',
include_package_data=True,
entry_points={
'console_scripts': [
'radb=radb.ra:main',
],
},
)