Skip to content

Commit

Permalink
feat: Introduce compatibility with native namespace packages (#385)
Browse files Browse the repository at this point in the history
* feat: Introduce compatibility with native namespace packages

* mypy

* formatting

* exclude docs*
  • Loading branch information
parthea authored Jul 20, 2023
1 parent 30c5a04 commit cdd7a5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
22 changes: 0 additions & 22 deletions google/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def mypy(session):
"types-requests",
"types-mock",
)
session.run("mypy", "google/", "tests/", "tests_async/")
session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async")


@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
author='Google Cloud Platform',
author_email='[email protected]',
long_description=README,
namespace_packages=['google'],
scripts=[],
url='https://github.com/googleapis/google-resumable-media-python',
packages=setuptools.find_packages(exclude=('tests*',)),
packages=setuptools.find_namespace_packages(
exclude=("tests*", "docs*")
),
license='Apache 2.0',
platforms='Posix; MacOS X; Windows',
include_package_data=True,
Expand Down

0 comments on commit cdd7a5e

Please sign in to comment.