Skip to content

Commit

Permalink
[fc] Repository: plone.autoinclude
Browse files Browse the repository at this point in the history
Branch: refs/heads/main
Date: 2025-03-03T19:17:24+01:00
Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.autoinclude@e3c8500

feat: replace pkg_resources with importlib.resources

Files changed:
M src/plone/autoinclude/loader.py
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-03T19:22:16+01:00
Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.autoinclude@cd2ddf5

feat: replace pkg_resources working_set

Use `importlib.metadata.distributions` instead.

Files changed:
M src/plone/autoinclude/loader.py
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-03T20:08:18+01:00
Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.autoinclude@94161b2

feat: replace pkg_resources.iter_entry_points

Files changed:
M src/plone/autoinclude/loader.py
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-03T20:09:29+01:00
Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.autoinclude@a9169c9

Add news entry

Files changed:
A news/4126.bugfix
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-04T13:36:21+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.autoinclude@5876289

Require importlib_metadata on Python 3.9.

This is needed for entry points.

Files changed:
M setup.py
M src/plone/autoinclude/loader.py
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-04T15:44:21+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.autoinclude@fb1e97d

Fix expected values in tests.

In `example.ploneintegration`, the `example.addon` zcml gets loaded.
In `example.zopeintegration`, the `example.addon` and `example.multipleeps` zcml gets loaded.
This is because `example.{addon,multipleeps}/setup.py` has a strange entry point:

```
[z3c.autoinclude.plugin]
dummy = dummy
```

This was added to check if our code can handle unexpected entry point contents without breaking.
I don't really mind whether the zcml of these packages gets loaded or not, as this should not happen in practice.
But the new way of getting the available distributions and their entry points, apparently has this as side effect.

Files changed:
M test-packages/example.ploneintegration/src/example/ploneintegration/tests.py
M test-packages/example.zopeintegration/src/example/zopeintegration/tests.py
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-04T15:51:02+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.autoinclude@a0d2b55

fix news snippet

Files changed:
M news/4126.bugfix
Repository: plone.autoinclude

Branch: refs/heads/main
Date: 2025-03-05T10:43:39+01:00
Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.autoinclude@0bc973c

Merge pull request #31 from plone/4126-replace-pkg-resources

Replace pkg_resources

Files changed:
A news/4126.bugfix
M setup.py
M src/plone/autoinclude/loader.py
M test-packages/example.ploneintegration/src/example/ploneintegration/tests.py
M test-packages/example.zopeintegration/src/example/zopeintegration/tests.py
  • Loading branch information
gforcada committed Mar 5, 2025
1 parent 10a2af1 commit 44c4d4a
Showing 1 changed file with 72 additions and 357 deletions.
Loading

0 comments on commit 44c4d4a

Please sign in to comment.