Skip to content

Commit

Permalink
Python recognizes package data directories as importable packages. (r…
Browse files Browse the repository at this point in the history
…enatahodovan#55)

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 directory / package:
- picireny.antlr4.resources
  • Loading branch information
akosthekiss authored Dec 20, 2024
1 parent e2dadf4 commit 1b6a0a8
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 @@ -26,7 +26,7 @@ platform = any
[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 1b6a0a8

Please sign in to comment.