From 5cb05bcf79dd9408c63a616abbdfa73e0d2c4081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Mon, 5 Aug 2024 12:43:55 +0200 Subject: [PATCH] setup: fix ckanext namespace --- CHANGELOG | 2 ++ ckanext/__init__.py | 1 + setup.py | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 ckanext/__init__.py create mode 100644 setup.py diff --git a/CHANGELOG b/CHANGELOG index 16f764a..b4503ce 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +0.15.2 + - setup: fix ckanext namespace 0.15.1 - build: fix CI pipeline 0.15.0 diff --git a/ckanext/__init__.py b/ckanext/__init__.py new file mode 100644 index 0000000..de40ea7 --- /dev/null +++ b/ckanext/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9b1fa1d --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +from setuptools import setup, find_packages + +setup( + # for compatibility with ckanext namespace + packages=find_packages(), + namespace_packages=['ckanext'], +)