Skip to content

Commit be7f274

Browse files
committed
Switch to PEP 420 native namespace.
1 parent 3836ead commit be7f274

File tree

5 files changed

+4
-21
lines changed

5 files changed

+4
-21
lines changed

news/.gitkeep

Whitespace-only changes.

news/3928.breaking

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Replace ``pkg_resources`` namespace with PEP 420 native namespace.
2+
Support only Plone 6.2 and Python 3.10+.

setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
This module contains the tool of collective.recipe.omelette
33
"""
44

5-
from setuptools import find_packages
65
from setuptools import setup
76

87
import os
@@ -28,7 +27,7 @@ def read(*rnames):
2827
"zc.buildout.uninstall": ["default = %s" % uninstall_entry_point],
2928
}
3029

31-
install_requires = ["setuptools", "zc.buildout", "zc.recipe.egg"]
30+
install_requires = ["zc.buildout", "zc.recipe.egg"]
3231
tests_require = ["zope.testing", "zc.buildout[test]", "zc.recipe.egg"]
3332

3433
setup(
@@ -43,7 +42,6 @@ def read(*rnames):
4342
"Topic :: Software Development :: Build Tools",
4443
"Topic :: Software Development :: Libraries :: Python Modules",
4544
"License :: OSI Approved :: GNU General Public License (GPL)",
46-
"Programming Language :: Python :: 3.9",
4745
"Programming Language :: Python :: 3.10",
4846
"Programming Language :: Python :: 3.11",
4947
"Programming Language :: Python :: 3.12",
@@ -54,13 +52,10 @@ def read(*rnames):
5452
author_email="[email protected]",
5553
url="https://github.com/collective/collective.recipe.omelette",
5654
license="GPL",
57-
packages=find_packages("src"),
58-
package_dir={"": "src"},
59-
namespace_packages=["collective", "collective.recipe"],
6055
include_package_data=True,
6156
zip_safe=False,
6257
install_requires=install_requires,
63-
python_requires=">=3.9",
58+
python_requires=">=3.10",
6459
extras_require=dict(
6560
test=tests_require,
6661
# Originally we only had 'tests' as entrypoint,

src/collective/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/collective/recipe/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)