From d0d1a2ef2a4bafd4301ebe80a5ae95d43041f75b Mon Sep 17 00:00:00 2001 From: hannalee2 Date: Fri, 18 Oct 2024 10:26:19 -0700 Subject: [PATCH 1/2] Update pyproject.toml to exlucde test files --- parallax/__init__.py | 2 +- pyproject.toml | 5 +++-- setup.py | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/parallax/__init__.py b/parallax/__init__.py index baf72df5..aa83b158 100644 --- a/parallax/__init__.py +++ b/parallax/__init__.py @@ -4,7 +4,7 @@ import os -__version__ = "1.1.1" +__version__ = "1.1.2" # allow multiple OpenMP instances os.environ["KMP_DUPLICATE_LIB_OK"] = "True" diff --git a/pyproject.toml b/pyproject.toml index cf7435f2..0ce3420b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,9 @@ dependencies = [ "PyQtWebEngine" ] -[tool.setuptools] -packages = ["parallax", "ui", "img"] +[tool.setuptools.packages.find] +include = ["parallax", "ui", "img"] +exclude = ["tests", "tests.*"] [tool.setuptools.dynamic] version = {attr = "parallax.__version__"} diff --git a/setup.py b/setup.py index 096fd14b..2d835f26 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ -from setuptools import setup, find_packages +from setuptools import setup if __name__ == "__main__": setup( name='parallax', - packages=find_packages(exclude=["tests", "tests.*"]), entry_points={ 'console_scripts': [ 'parallax = parallax.__main__:main' From 528a1b7f3de8cb7546d06af1f00e55dc3f278ff6 Mon Sep 17 00:00:00 2001 From: hannalee2 Date: Fri, 18 Oct 2024 10:38:54 -0700 Subject: [PATCH 2/2] Update toml file to exclude test files --- MANIFEST.in | 1 + pyproject.toml | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..1eeef064 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +prune tests diff --git a/pyproject.toml b/pyproject.toml index 0ce3420b..0d1a4762 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,9 @@ dependencies = [ include = ["parallax", "ui", "img"] exclude = ["tests", "tests.*"] +[tool.setuptools.package-data] +exclude = ["tests", "tests/*"] + [tool.setuptools.dynamic] version = {attr = "parallax.__version__"} readme = {file = "README.md"}