-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 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
# -*- coding: utf-8 -*-
from __future__ import with_statement
import os
from setuptools import setup
def get_version():
with open(r'baresql\baresql.py') as f:
for line in f:
if line.strip().startswith('self.__version__'):
return eval(line.split('=')[-1])
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='baresql',
version=get_version(),
description="playing SQL directly on Python datas",
long_description=(read('README.rst') + '\n\n' +
read('HISTORY.rst')),
keywords=['sqlite', 'sql'],
author='stonebig',
author_email='[email protected]',
url='https://github.com/stonebig/baresql',
license='MIT license',
packages = ['baresql'],
install_requires=['pandas'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
]
)