From 4e8296d9698588c4862a28a15bd3f5afa2878e1b Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Wed, 8 Jan 2025 15:11:08 +0100 Subject: [PATCH] fix(version): fixes sub packages not being included in the packaging --- pyproject.toml | 4 ---- setup.py | 9 +++++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 51c03024..c1eec4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,10 +2,6 @@ requires = ["setuptools>=61.0.0", "wheel"] build-backend = "setuptools.build_meta" -[tool.setuptools] -packages = ["hot_fair_utilities"] - - [project] name = "hot-fair-utilities" version = "2.0.6" diff --git a/setup.py b/setup.py index 60684932..2c008f27 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,8 @@ -from setuptools import setup +# Third party imports +from setuptools import find_packages, setup -setup() +setup( + package_dir={"": "."}, + packages=find_packages(include=["hot_fair_utilities", "hot_fair_utilities.*"]), + include_package_data=True, +)