Skip to content

Commit 8c5cb8f

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 39ac181 commit 8c5cb8f

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.7.0
27

38
### Breaking

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
@@ -16,6 +16,7 @@
1616
packages=setuptools.find_namespace_packages(
1717
include="okdata.cli.*", exclude=["tests*"]
1818
),
19+
namespace_packages=["okdata"],
1920
package_data={
2021
"okdata": [
2122
"cli/data/boilerplate/bin/*",

0 commit comments

Comments
 (0)