Skip to content

Commit

Permalink
replace setuptools' find_packages by find_namespace_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 7, 2023
1 parent fa08a94 commit 2d5ebb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Always prefer setuptools over distutils
from importlib.util import module_from_spec, spec_from_file_location

from setuptools import find_packages, setup
from setuptools import find_namespace_packages, setup

# https://packaging.python.org/guides/single-sourcing-package-version/
# http://blog.ionelmc.ro/2014/05/25/python-packaging/
Expand Down Expand Up @@ -57,7 +57,7 @@ def _load_long_description(homepage: str, version: str) -> str:
author_email=_about.__author_email__,
url=_about.__homepage__,
license=_about.__license__,
packages=find_packages(where="src"),
packages=find_namespace_packages(where="src"),
package_dir={"": "src"},
long_description=_load_long_description(_about.__homepage__, _about.__version__),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 2d5ebb3

Please sign in to comment.