Skip to content

Commit b71c58d

Browse files
Merge pull request #375 from bollwyvl/fix-missing-datasets-in-sdist
metadata tweaks for datasets in sdists
2 parents ef72036 + afdc1ca commit b71c58d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.md
22
include requirements.txt
3-
include LICENSE.md
3+
include LICENSE.md
4+
recursive-include category_encoders/datasets *.csv

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
from setuptools import setup, find_packages
22
from codecs import open
33
from os import path
4-
from category_encoders import __version__
5-
4+
import re
65

76
here = path.abspath(path.dirname(__file__))
87

98
# Get the long description from the README file
109
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
1110
long_description = f.read()
1211

12+
# Get the version from the __init__.py file
13+
with open(path.join(here, 'category_encoders/__init__.py'), encoding='utf-8') as f:
14+
__version__ = re.findall('''__version__ = ['"](.*)['"]''', f.read())[0]
15+
1316
setup(
1417
name='category_encoders',
1518
version=__version__,
16-
description='A collection sklearn transformers to encode categorical variables as numeric',
19+
description='A collection of sklearn transformers to encode categorical variables as numeric',
1720
long_description=long_description,
1821
long_description_content_type='text/markdown',
1922
url='https://github.com/scikit-learn-contrib/category_encoders',
@@ -25,7 +28,7 @@
2528
'Programming Language :: Python :: 3',
2629
],
2730
keywords='python data science machine learning pandas sklearn',
28-
packages=find_packages(include=['category_encoders']),
31+
packages=find_packages(include=['category_encoders', 'category_encoders.datasets']),
2932
include_package_data=True,
3033
author='Will McGinnis',
3134
install_requires=[

0 commit comments

Comments
 (0)