From 35ac3e04ce7d3c1a6acbc8268ecd09c62ee9321c Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Fri, 23 Dec 2022 13:57:31 +0100 Subject: [PATCH] Fix setuptools deprecation warnings Change packages directive in setup.cfg to use find_namespace: and add [opptions.package_data] for including HTML templates and static files. This fixes a SetuptoolsDeprecationWarning when running setup.py build. --- setup.cfg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index b50b32c9d0..eb3c292041 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,8 +31,7 @@ classifiers = Topic :: System :: Distributed Computing [options] -packages = find: -include_package_data = true +packages = find_namespace: zip_safe = false python_requires = >= 3.7 install_requires = @@ -52,10 +51,17 @@ install_requires = pywin32;platform_system=='Windows' [options.packages.find] +include = locust* exclude = examples tests +[options.package_data] +locust.static = + **/* +locust.templates = + **/* + [options.entry_points] console_scripts = locust = locust.main:main