Skip to content

Commit

Permalink
Fix setuptools deprecation warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
heyman committed Dec 23, 2022
1 parent 8506534 commit 35ac3e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.cfg
Expand Up @@ -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 =
Expand All @@ -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
Expand Down

0 comments on commit 35ac3e0

Please sign in to comment.