From 95cf1a187608b8ee9ca72fa84a9798c5303bbd15 Mon Sep 17 00:00:00 2001 From: Sumin Byeon Date: Fri, 31 May 2024 16:29:17 +0900 Subject: [PATCH] build: Use setuptools instead of distutils --- setup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 7cbae32..d40e0d4 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,16 +19,13 @@ def readme(): setup( name="hanja", - # TODO: We need to stop this madness. Either use setuptools instead of - # distutils, or write a function to recursively collect all relavant files. - py_modules=["hanja", "hanja/__init__", "hanja/hangul", "hanja/impl", "hanja/table"], 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"]), package_data={"": ["requirements.txt"], "hanja": ["table.yml"]}, include_package_data=True, install_requires=install_requires,