Skip to content

Commit e806da6

Browse files
committed
DP-1546 Use "pkg_resources style" for namespace package
Use "pkg_resources style" for the `okdata` namespace package. Modern style implicit namespace packages aren't supported by the Serverless plugin we use for Python packaging yet [1], so we'll use the old `pkg_resources` style for now. [1] serverless/serverless-python-requirements#32
1 parent bc700d4 commit e806da6

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## ?.?.?
2+
3+
* The `okdata` namespace package now uses the old-style `pkg_resources`
4+
declaration instead of being an implicit namespace package.
5+
16
## 0.2.0
27

38
* Added `status_wrapper` and `status_add` from common-python under

okdata/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__("pkg_resources").declare_namespace(__name__)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
packages=setuptools.find_namespace_packages(
1616
include="origo.aws.*", exclude=["tests*"]
1717
),
18+
namespace_packages=["okdata"],
1819
classifiers=[
1920
"Development Status :: 3 - Alpha",
2021
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)