From 236a2d712858ee23abb7710ef7f92e19042d48cb Mon Sep 17 00:00:00 2001 From: Laurent LAPORTE Date: Sun, 3 Sep 2023 09:07:40 +0200 Subject: [PATCH] build: update project configuration, specify exclusion of non-package directories when using `find_packages` --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 28d31b53d5..323d8deb7b 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ from setuptools import setup, find_packages +excluded_dirs = {"alembic", "conf", "docs", "examples", "resources", "scripts", "tests", "venv", "webapp"} + setup( name="AntaREST", version="2.15.0", @@ -11,7 +13,7 @@ author="RTE, Antares Web Team", author_email="andrea.sgattoni@rte-france.com", url="https://github.com/AntaresSimulatorTeam/api-iso-antares", - packages=find_packages(), + packages=find_packages(exclude=excluded_dirs), license="Apache Software License", platforms=[ "linux-x86_64",