Skip to content

Commit

Permalink
Merge pull request #375 from bollwyvl/fix-missing-datasets-in-sdist
Browse files Browse the repository at this point in the history
metadata tweaks for datasets in sdists
  • Loading branch information
PaulWestenthanner committed Oct 6, 2022
2 parents ef72036 + afdc1ca commit b71c58d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include README.md
include requirements.txt
include LICENSE.md
include LICENSE.md
recursive-include category_encoders/datasets *.csv
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
from category_encoders import __version__

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 sklearn transformers to encode categorical variables as numeric',
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',
Expand All @@ -25,7 +28,7 @@
'Programming Language :: Python :: 3',
],
keywords='python data science machine learning pandas sklearn',
packages=find_packages(include=['category_encoders']),
packages=find_packages(include=['category_encoders', 'category_encoders.datasets']),
include_package_data=True,
author='Will McGinnis',
install_requires=[
Expand Down

0 comments on commit b71c58d

Please sign in to comment.