logilab-common merge requestshttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests2024-02-07T23:05:20Zhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/91style: please black2024-02-07T23:05:20ZLaurent Peuchstyle: please blackHello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-docto...Hello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-doctor/-/issues.
Kind regards,https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/90chore(flake8): add --show-source option to flake82024-01-04T01:25:37ZLaurent Peuchchore(flake8): add --show-source option to flake8https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/89chore(flake8): add --show-source option to flake82024-02-07T23:07:21ZLaurent Peuchchore(flake8): add --show-source option to flake8Hello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-docto...Hello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-doctor/-/issues.
Kind regards,https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/88style: please black2024-02-07T22:48:28ZLaurent Peuchstyle: please blackHello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-docto...Hello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-doctor/-/issues.
Kind regards,https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/87feat(compat): remove old python2 compatibility code2023-12-21T02:09:37ZLaurent Peuchfeat(compat): remove old python2 compatibility codeLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/86use ci templates2024-03-28T08:05:58ZLaurent Peuchuse ci templatesLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/85refactor: since python 3, classes don't need to inherint from object anymore2023-11-29T16:55:55ZLaurent Peuchrefactor: since python 3, classes don't need to inherint from object anymoreHello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-docto...Hello dear contributors,
This is an auto generated modification to help you improve the code base of logilab. If this commit is bad don't hesitate to close this MR and report it here https://forge.extranet.logilab.fr/cubicweb/cube-doctor/-/issues.
Kind regards,https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/84Draft: refactor(modutils)!: replace load_module_from_modpath code by a call t...2023-11-29T17:53:38ZLaurent PeuchDraft: refactor(modutils)!: replace load_module_from_modpath code by a call to importlib.import_modulehttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/83feat(registry): implement defining registrable objects modules name as class ...2023-11-14T14:08:49ZLaurent Peuchfeat(registry): implement defining registrable objects modules name as class attributeLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/82remove pytest module2024-01-17T10:06:57ZLaurent Peuchremove pytest moduleLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/81logilab.common.compat: remove code here only for py2 compatibility2023-11-01T16:44:02ZLaurent Peuchlogilab.common.compat: remove code here only for py2 compatibilityLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/80feat: mark all deprecated code as deprecated in logilab.common.registry2023-10-31T14:12:44ZLaurent Peuchfeat: mark all deprecated code as deprecated in logilab.common.registryI'm not sure all this code is really deprecated? But it is in a "deprecated" section.I'm not sure all this code is really deprecated? But it is in a "deprecated" section.Laurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/79remove all deprecated code2023-11-01T16:41:34ZLaurent Peuchremove all deprecated codeIn case we want to do a 2.0 releaseIn case we want to do a 2.0 releaseLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/78feat(modutils): mark as deprecated all code that is going to be removed2023-10-17T13:16:15ZLaurent Peuchfeat(modutils): mark as deprecated all code that is going to be removedLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/77Topic/default/fix rtd2023-10-03T14:13:19ZLaurent PeuchTopic/default/fix rtdLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/76refactor(modutils)!: remove all unused code by our main core projects2023-12-05T14:04:51ZLaurent Peuchrefactor(modutils)!: remove all unused code by our main core projectsmodutils code is very old and hard to evolved and maintained and it also
depends of both imp and pkg_resources which are deprecated old modules that
will be removed in the future from the core python libraby.
So starting by removing eve...modutils code is very old and hard to evolved and maintained and it also
depends of both imp and pkg_resources which are deprecated old modules that
will be removed in the future from the core python libraby.
So starting by removing everything that is not needed is a first step to get
ride of those problems.
I've tested all those commit against most test suits of our core projects and
everything ended up being green.
This cleanup is based on this analysis:
List of used symbols
--------------------
* LazyObject
* load_module_from_name
* clean_sys_modules
* cleanup_sys_modules
* load_module_from_file
* modpath_from_file
Internal symbols needed by the used symbols
-------------------------------------------
```
LazyObject
load_module_from_name
load_module_from_modpath
find_module[imp]
load_module[imp]
_is_namespace <- pkg_resources
load_module_from_file
modpath_from_file (deprecated)
_canonicalize_path
_check_init
load_module_from_modpath
find_module[imp]
load_module[imp]
_is_namespace <- pkg_resources
```https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/75refactor(setup.py): on find_namespace_packages use include instead of exclude2023-08-09T15:59:33ZLaurent Peuchrefactor(setup.py): on find_namespace_packages use include instead of excludeLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/74draft: fix!: use importlib instead of pkg_resources for modutil._is_namespace2023-11-30T20:01:50ZLaurent Peuchdraft: fix!: use importlib instead of pkg_resources for modutil._is_namespaceThis is a WIP and not retrocompatible.
The mess between pkg_resources and importlib and PEP 420 makes it very complicated to actually implement this thing with importlib.
Also this code only works if the package follows PEP 420, not th...This is a WIP and not retrocompatible.
The mess between pkg_resources and importlib and PEP 420 makes it very complicated to actually implement this thing with importlib.
Also this code only works if the package follows PEP 420, not the pkg_resources namespace approach.
I kinda want to burn down all this code honestly and we probably should just totally rewrite this module.https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/73doc: logilab-common url has changed2023-08-09T17:18:52ZLaurent Peuchdoc: logilab-common url has changedLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/72refactor: logilab/__init__.py is not needed anymore since python 3.32023-07-31T07:51:56ZLaurent Peuchrefactor: logilab/__init__.py is not needed anymore since python 3.3Since python 3.3 and as described in PEP 420, namespace are implicit now for
packages and you need to remove the __init__.py files to crate one.Since python 3.3 and as described in PEP 420, namespace are implicit now for
packages and you need to remove the __init__.py files to crate one.Laurent PeuchLaurent Peuch