gruut-ipa
gruut-ipa copied to clipboard
Exclude tests in setuptools.find_packages
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="[email protected]",
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"},