From 35ac3e04ce7d3c1a6acbc8268ecd09c62ee9321c Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Fri, 23 Dec 2022 13:57:31 +0100 Subject: [PATCH 1/2] 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 From d94b930745887cc0fa39e1c1892ab902cf28d349 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Fri, 23 Dec 2022 13:58:33 +0100 Subject: [PATCH 2/2] Change deprecated license_file directive to license_files in setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index eb3c292041..cc403405d8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = locust -license_file = LICENSE +license_files = LICENSE url = https://locust.io/ project_urls = Documentation = https://docs.locust.io/