From 44ef9598a79e7e5826c4db41c314cfd7e8a96bcc Mon Sep 17 00:00:00 2001 From: Sumin Byeon Date: Fri, 31 May 2024 16:17:03 +0900 Subject: [PATCH] build: Use setuptools instead of distutils --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 756dfc6..5ddfe26 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from distutils.core import setup +from setuptools import setup, find_packages from pkg_resources import parse_requirements import hanja @@ -19,14 +19,13 @@ def readme(): setup( name="hanja", - py_modules=["hanja", "hanja/__init__", "hanja.hangul"], version=hanja.__version__, description="Hangul & Hanja library", long_description=readme(), author=hanja.__author__, author_email=hanja.__email__, url="https://github.com/suminb/hanja", - packages=[], + packages=find_packages(include=["hanja", "hanja.*"]), package_data={"": ["requirements.txt"], "hanja": ["table.yml"]}, include_package_data=True, install_requires=install_requires,