forked from limix/pandas-plink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.94 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
import os
import sys
from setuptools import find_packages, setup
try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
except (OSError, IOError, ImportError):
long_description = open('README.md').read()
def setup_package():
src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup_requires = ['cffi>=1.7'] + pytest_runner
install_requires = ['pandas>=0.17', 'cffi>=1.7',
'numpy>=1.9', 'dask[complete]>=0.13', 'toolz>=0.8']
tests_require = ['pytest']
metadata = dict(
name='pandas-plink',
version='1.1.1',
maintainer="Danilo Horta",
maintainer_email="horta@ebi.ac.uk",
description="Read PLINK files into Pandas data frames.",
long_description=long_description,
license="MIT",
url='https://github.com/glimix/pandas-plink',
packages=find_packages(),
zip_safe=False,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
include_package_data=True,
package_data={
'': [os.path.join('pandas_link', 'test', 'data_files', '*.*')]
},
cffi_modules=["pandas_plink/_builder.py:ffibuilder"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Operating System :: OS Independent",
], )
try:
setup(**metadata)
finally:
del sys.path[0]
os.chdir(old_path)
if __name__ == '__main__':
setup_package()