From 0101de51b0d9fe1257b4f1149311c4fa7a9f9681 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 5 Apr 2022 02:06:10 -0400 Subject: [PATCH] [F] Fix wheel not including data --- deploy.sh | 3 ++- setup.py | 3 ++- sgs/__init__.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index f576c2e..d0f1a21 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,6 +5,7 @@ set -e # Remove old build rm -rf dist/* +rm -rf build/* # Build python setup.py sdist bdist_wheel @@ -13,4 +14,4 @@ python setup.py sdist bdist_wheel twine check dist/* # Upload -twine upload dist/* \ No newline at end of file +twine upload dist/* diff --git a/setup.py b/setup.py index c97afb5..f3fcf3b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,8 @@ setup( install_requires=['praat-parselmouth', 'numpy', 'scipy'], url="https://github.com/hykilpikonna/SpeechGenderAnalysis", packages=['sgs'], - package_data={'': ['vox1_data.json']}, + package_data={'sgs': ['sgs/data/*']}, + include_package_data=True, long_description=Path('README.md').read_text(), long_description_content_type='text/markdown', python_requires='>=3.8', diff --git a/sgs/__init__.py b/sgs/__init__.py index fc30eae..70a92e1 100644 --- a/sgs/__init__.py +++ b/sgs/__init__.py @@ -1,4 +1,4 @@ import sgs.api import sgs.calculations -__version__ = '1.0.6' +__version__ = '1.0.9'