-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (41 loc) · 1.63 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
def calculate_version():
initpy = open('badfish/_version.py').read().split('\n')
version = list(filter(lambda x: '__version__' in x, initpy))[0].split('\'')[1]
return version
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
print("md to rst conversion error")
long_description = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md')).read()
package_version = calculate_version()
setup(
name='badfish',
version=package_version,
author='Harsh Nisar and Deshana Desai',
author_email='[email protected]',
packages=find_packages(),
url='https://github.com/harshnisar/badfish',
license='License :: OSI Approved :: MIT License',
description=('Badfish - A missing data analysis and wrangling library in Python'),
long_description=long_description,
zip_safe=True,
install_requires=['pandas', 'seaborn', 'pymining'],
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'
],
keywords=['data cleaning', 'missing', 'machine learning', 'data analysis', 'imputation', 'data wrangling'],
)