Skip to content

Commit cdd7a5e

Browse files
authored
feat: Introduce compatibility with native namespace packages (#385)
* feat: Introduce compatibility with native namespace packages * mypy * formatting * exclude docs*
1 parent 30c5a04 commit cdd7a5e

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

google/__init__.py

-22
This file was deleted.

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def mypy(session):
198198
"types-requests",
199199
"types-mock",
200200
)
201-
session.run("mypy", "google/", "tests/", "tests_async/")
201+
session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async")
202202

203203

204204
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
4040
author='Google Cloud Platform',
4141
author_email='[email protected]',
4242
long_description=README,
43-
namespace_packages=['google'],
4443
scripts=[],
4544
url='https://github.com/googleapis/google-resumable-media-python',
46-
packages=setuptools.find_packages(exclude=('tests*',)),
45+
packages=setuptools.find_namespace_packages(
46+
exclude=("tests*", "docs*")
47+
),
4748
license='Apache 2.0',
4849
platforms='Posix; MacOS X; Windows',
4950
include_package_data=True,

0 commit comments

Comments
 (0)