diff --git a/pyproject.toml b/pyproject.toml index fcfe5cf..a9aa58d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,3 +73,10 @@ directory = "parts/htmlcov" [tool.setuptools.dynamic] readme = {file = ["README.rst", "CHANGES.rst"]} +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +"*" = ["*.txt", "*.xml", "*.zcml", "*.conf", "*.dtml"] + + diff --git a/setup.py b/setup.py index 3a960de..57ff410 100644 --- a/setup.py +++ b/setup.py @@ -12,8 +12,13 @@ # ############################################################################## +from setuptools import find_packages from setuptools import setup # See pyproject.toml for package metadata -setup() +setup( + packages=find_packages('src'), + package_dir={'': 'src'}, + namespace_packages=['Shared', 'Shared.DC'], +) diff --git a/src/Products/__init__.py b/src/Products/__init__.py new file mode 100644 index 0000000..c75c90d --- /dev/null +++ b/src/Products/__init__.py @@ -0,0 +1,13 @@ +############################################################################## +# +# Copyright (c) 2002 Zope Foundation and Contributors. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE +# +############################################################################## +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/Shared/DC/__init__.py b/src/Shared/DC/__init__.py new file mode 100644 index 0000000..c75c90d --- /dev/null +++ b/src/Shared/DC/__init__.py @@ -0,0 +1,13 @@ +############################################################################## +# +# Copyright (c) 2002 Zope Foundation and Contributors. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE +# +############################################################################## +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/Shared/__init__.py b/src/Shared/__init__.py new file mode 100644 index 0000000..c75c90d --- /dev/null +++ b/src/Shared/__init__.py @@ -0,0 +1,13 @@ +############################################################################## +# +# Copyright (c) 2002 Zope Foundation and Contributors. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE +# +############################################################################## +__import__('pkg_resources').declare_namespace(__name__)