forked from ssc-oscar/oscar.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (29 loc) · 1.18 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
import re
from setuptools import setup
head = open('oscar.py').read(2048)
pattern = r"""__%s__\s*=\s*['"]([^'"]*)['"]"""
kwargs = {keyword: re.search(pattern % keyword, head).group(1)
for keyword in ('version', 'author', 'license')}
# options reference: https://docs.python.org/2/distutils/
# see also: https://packaging.python.org/tutorials/distributing-packages/
setup(
name="oscar",
description="A Python interface to OSCAR data",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[ # full list: https://pypi.org/classifiers/
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX :: Linux',
'Topic :: Scientific/Engineering'
],
python_requires='~=2.7',
py_modules=['oscar'],
author_email='[email protected]',
url='https://github.com/ssc-oscar/oscar.py',
install_requires=['python-lzf', 'tokyocabinet', 'pygit2', 'fnvhash', 'clickhouse-driver'],
test_suite='test.TestStatus',
**kwargs
)