Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not ignore setuptools when plone.base is installed. #61

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

mauritsvanrees
Copy link
Member

When I run the coredev buildout I now get this:

Develop distribution: plone.portlet.static 4.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.portlet.collection 4.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.z3cform 2.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.app.querystring 2.0.2.dev0
uses namespace packages but the distribution does not require setuptools.

It is a warning from buildout.

It seems to work, but I don't trust it.

See same comment I made in the PR that added this.

When I run the coredev buildout I now get this:

```
Develop distribution: plone.portlet.static 4.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.portlet.collection 4.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.z3cform 2.0.1.dev0
uses namespace packages but the distribution does not require setuptools.
Develop distribution: plone.app.querystring 2.0.2.dev0
uses namespace packages but the distribution does not require setuptools.
```

It is a [warning from buildout](buildout/buildout#526).

It seems to work, but I don't trust it.
@gforcada
Copy link
Member

Oops, sorry 🙏🏾 I was eager on removing as much dependencies as possible, while declaring them all 😅

@gforcada gforcada merged commit d75331b into master Mar 14, 2023
@gforcada gforcada deleted the maurits-no-setuptools-in-plone-base branch March 14, 2023 23:10
@davisagli
Copy link
Member

In theory, it's no longer necessary to use setuptools to declare namespace packages: https://peps.python.org/pep-0420/

But I'm not sure what edge cases we would find in our tools if we tried to make the switch.

@gforcada
Copy link
Member

oh, that's a long shot, as it means that we have to remove all __init__.py files at the same time for all plone and plone.app packages, same for collective and all other namespaces, see zopefoundation/meta#194

@davisagli
Copy link
Member

Thanks, helpful discussion there.

@mauritsvanrees
Copy link
Member Author

I have added setuptools in those four packages again, by direct pushes to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants