rhasspy / gruut-ipa

Python library for manipulating pronunciations using the International Phonetic Alphabet (IPA)
MIT License
78 stars 12 forks source link

Exclude tests in setuptools.find_packages #8

Open 31KM opened 2 years ago

31KM commented 2 years ago

I'm currently packaging larynx + deps for Arch Linux and I encountered an issue with gruut-ipa: setuptools includes the tests in the package, which does not play well with Arch Linux packaging - see https://github.com/rhasspy/phonemes2ids/issues/1 for details.

I propose the following patch:

--- a/setup.py  2021-11-11 20:26:11.000000000 +0100                                                                                                                                                               
+++ b/setup2.py 2022-01-11 01:13:56.813670352 +0100
@@ -36,7 +36,7 @@
     author="Michael Hansen",
     author_email="mike@rhasspy.org",
     url="https://github.com/rhasspy/gruut-ipa",
-    packages=setuptools.find_packages(),
+    packages=setuptools.find_packages(exclude=['tests']),
     package_data={"gruut_ipa": data_files + ["py.typed"]},
     install_requires=requirements,
     extras_require={':python_version<"3.7"': "dataclasses"},