Skip to content

Commit 733d0de

Browse files
committed
now inspecting env modules even when plugins were already located
1 parent d63e135 commit 733d0de

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
0.0.10 (2023-11-15)
5+
-------------------
6+
7+
- the registry now inspects modules when environment modules are present even when
8+
it already found plugins (eg default ones)
9+
10+
411
0.0.9 (2023-11-15)
512
------------------
613

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _read(f):
3030
'': 'src'
3131
},
3232
packages=find_namespace_packages(where='src'),
33-
version="0.0.9",
33+
version="0.0.10",
3434
author='Peter Reutemann',
3535
author_email='fracpete@waikato.ac.nz',
3636
)

src/seppl/_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ def _register(self, group: str, c: Optional = None):
311311
# from entry points
312312
plugins = self._register_from_entry_point(group, c=c)
313313

314-
# inspect modules as well?
315-
if (len(plugins) == 0) or ((self._custom_modules is not None) and (len(self._custom_modules) > 0)):
314+
# register from modules as well?
315+
if (len(plugins) == 0) or ((self._custom_modules is not None) and (len(self._custom_modules) > 0)) or self._has_env_modules():
316316
plugins.update(self._register_from_modules(c=c))
317317

318318
self._plugins[group] = plugins

0 commit comments

Comments
 (0)