forked from scikit-learn-contrib/category_encoders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (40 loc) · 1.54 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
from setuptools import setup, find_packages
from codecs import open
from os import path
import re
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the version from the __init__.py file
with open(path.join(here, 'category_encoders/__init__.py'), encoding='utf-8') as f:
__version__ = re.findall('''__version__ = ['"](.*)['"]''', f.read())[0]
setup(
name='category_encoders',
version=__version__,
description='A collection of sklearn transformers to encode categorical variables as numeric',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/scikit-learn-contrib/category_encoders',
download_url='https://github.com/scikit-learn-contrib/category_encoders/tarball/' + __version__,
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
],
keywords='python data science machine learning pandas sklearn',
packages=find_packages(include=['category_encoders', 'category_encoders.datasets']),
include_package_data=True,
author='Will McGinnis',
install_requires=[
'numpy>=1.14.0',
'scikit-learn>=0.20.0',
'scipy>=1.0.0',
'statsmodels>=0.9.0',
'pandas>=1.0.5',
'patsy>=0.5.1',
],
author_email='[email protected]',
package_data={'': ['datasets/data/*.csv']},
)