Dima Gerasimov
|
119b295d71
|
core: allow legacy modules to be used in 'hpi module install' for backwards compatibility
but show warning
kinda hacky, but hopefully we will simplify it further when we have more such legacy modules
|
2022-06-07 22:59:08 +01:00 |
|
Dima Gerasimov
|
9461df6aa5
|
general: extract the hack to warn of legacy imports and fallback to core/legacy.py
use it both in my.fbmessenger and my.reddit
if in the future any new modules need to be switched to namespace package structure with all.py it should make it easy to do
related:
- https://github.com/karlicoss/HPI/issues/12
- https://github.com/karlicoss/HPI/issues/89
- https://github.com/karlicoss/HPI/issues/102
|
2022-06-01 23:27:34 +01:00 |
|
Dima Gerasimov
|
8336d18434
|
general: add an adhoc test for checking mixin behaviour with namespace packages and __init__.py hack
also use that hack in my.fbmessenger
|
2022-06-01 23:27:34 +01:00 |
|
Dima Gerasimov
|
179b657eea
|
general: add a test for __init__.py fallback for modules which are switching to namespace packages
for now just a manual ad-hoc test, will try to set it up on CI later
relevant to the discussion here: https://memex.zulipchat.com/#narrow/stream/279601-hpi/topic/extending.20HPI/near/270465792
also potentially relevant to
- https://github.com/karlicoss/HPI/issues/89 (will try to apply to this to reddit/__init__.py later)
- https://github.com/karlicoss/HPI/issues/102
|
2022-06-01 23:27:34 +01:00 |
|