Skip to content

Commit

Permalink
Correctly add package data directories to distribution (#80)
Browse files Browse the repository at this point in the history
Python recognizes package data directories as importable packages.
However, as they are absent from setuptools' `packages`
configuration, this causes warnings that they would be ignored. The
recommended approach is to treat data as namespace package using
the `find_namespace:` discovery mechanism.

The affected data directories / packages:
- fuzzinator.ui.tui.resources
- fuzzinator.ui.wui.resources.static
- fuzzinator.ui.wui.resources.static.assets
- fuzzinator.ui.wui.resources.static.images
- fuzzinator.ui.wui.resources.static.scripts
- fuzzinator.ui.wui.resources.static.styles
- fuzzinator.ui.wui.resources.templates
- fuzzinator.ui.wui.resources.templates.report
  • Loading branch information
akosthekiss authored Dec 17, 2024
1 parent 7fa7024 commit 8815fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers =
[options]
package_dir =
= src
packages = find:
packages = find_namespace:
include_package_data = True
python_requires = >=3.8
install_requires =
Expand Down

0 comments on commit 8815fa4

Please sign in to comment.