Skip to content

Commit

Permalink
Use native namespace packages for zest.releaser.
Browse files Browse the repository at this point in the history
This is instead of deprecated pkg_resources based ones.

Note that this can be a problem in case `zest.releaser` is installed in combination with other packages in the `zest` namespace.
But there are only a few such Plone related packages, so they won't usually be installed in the same virtual environment.
And otherwise I can make new releases of those packages.
Now seems a good time to do this.
  • Loading branch information
mauritsvanrees committed Jul 12, 2023
1 parent fb76b21 commit 2779474
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog for zest.releaser
9.0.0 (unreleased)
------------------

- Use native namespace packages for ``zest.releaser``, instead of deprecated ``pkg_resources`` based ones.

- Changed build system to pypa/build instead of explicitly using
setuptools.

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from setuptools import find_packages
from setuptools import setup


setup(
packages=find_packages(),
namespace_packages=["zest"],
packages=["zest.releaser"],
include_package_data=True,
zip_safe=False,
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ deps =
zest.releaser[test]
zest.releaser[recommended]
commands =
zope-testrunner --test-path=. --tests-pattern=^tests$ {posargs:-v -c}
zope-testrunner --test-path={toxinidir} -s zest.releaser --tests-pattern=^tests$ {posargs:-v -c}
7 changes: 0 additions & 7 deletions zest/__init__.py

This file was deleted.

0 comments on commit 2779474

Please sign in to comment.