Closed kitterma closed 1 year ago
Thanks for the report.
This setuptools warning doesn't apply to Anymail v10.0 or later (which no longer uses setuptools). It also doesn't affect installing older versions of django-anymail from PyPI distributions (which wouldn't have passed pre-publishing tests if they were missing subpackages).
If you need to repeatably build your own django-anymail distribution pinned to older Anymail source, you should probably also pin an older version of setuptools known to be compatible. Despite the warning, the current setuptools 67.8.0 works: it includes the Anymail subpackages via MANIFEST.in, and you'll see them listed in the build output. I don't know what future version of setuptools might remove this. (PyPA projects sometimes include breaking changes in minor releases, so pinning an exact setuptools version would be safest.)
Again, Anymail v10.0 switched its build backend from setuptools to hatchling (and completely updated all of the packaging), so this warning doesn't apply to current code. But if we ever need to release a patch for Anymail v9.2.x or earlier, we may need to account for this—either by using an older setuptools for the Anymail build, or by updating Anymail's setup.py packages
declaration.
I'm not sure there's anything to do in Anymail unless/until we're thinking about releasing a patch for an older version.
As long as it's fixed in the next version (by not using setuptools) I'm happy. I wanted to make sure you knew.
Anymail 9.2 Setuptools 67.8.0 Python3 3.11.4
There are warnings for anymail.backends and anymail.webhooks: