forked from BioPandas/biopandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (65 loc) · 2.49 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from pkgutil import walk_packages
from fnmatch import fnmatch as wc_match
from itertools import chain
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def find_packages(where, exclude=None):
if not exclude:
exclude = ()
if isinstance(where, str):
where = (where, )
ret_list = []
for name in chain.from_iterable(map(lambda w: (
n for _, n, ispkg in w if ispkg), (walk_packages(p) for p in where))):
if not any(wc_match(name, p) for p in exclude):
ret_list.append(name)
return tuple(ret_list)
def calculate_version():
initpy = open('biopandas/__init__.py').read().split('\n')
version = list(filter(lambda x: '__version__'
in x, initpy))[0].split('\'')[1]
return version
package_version = calculate_version()
setup(name='biopandas',
version=package_version,
description='Molecular Structures in Pandas DataFrames',
author='Sebastian Raschka',
author_email='[email protected]',
url='https://github.com/rasbt/biopandas',
license='new BSD',
zip_safe=True,
packages=find_packages('.'),
platforms='any',
install_requires=['numpy', 'pandas'],
keywords=['bioinformatics', 'molecular structures',
'protein databank', 'computational biology',
'protein structures'],
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 5 - Production/Stable',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
],
long_description="""
Biopandas is a python package for working with molecular structures
in pandas DataFrames.
Contact
=============
If you have any questions or comments about biopandas,
please feel free to contact me via
eMail: [email protected]
or Twitter: https://twitter.com/rasbt
This project is hosted at https://github.com/rasbt/biopandas
The documentation can be found at http://rasbt.github.io/biopandas/
""")