Skip to content

Commit

Permalink
fix: migrate to native namespace packages
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 10, 2024
1 parent dc451f0 commit dd3b29c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os

import setuptools
from setuptools import find_namespace_packages

# Package metadata.

Expand All @@ -39,12 +40,6 @@
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package for package in setuptools.find_packages() if package.startswith("google")
]

setuptools.setup(
name=name,
version=version,
Expand All @@ -70,7 +65,7 @@
"Topic :: Internet",
],
platforms="Posix; MacOS X; Windows",
packages=packages,
packages=find_namespace_packages(exclude=("tests*", "testing*")),
install_requires=dependencies,
python_requires=">=3.7",
include_package_data=True,
Expand Down

0 comments on commit dd3b29c

Please sign in to comment.