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/82remove pytest module2024-01-17T10:06:57ZLaurent Peuchremove pytest moduleLaurent PeuchLaurent Peuchhttps://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/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/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/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/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/65refactor: remove inheritance from object since this is deprecated in python 32023-11-02T00:38:16ZLaurent Peuchrefactor: remove inheritance from object since this is deprecated in python 3Hello 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/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/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/71refactor: grab logilab-common version with importlib.metada, not pkg_resources2023-08-22T14:36:58ZLaurent Peuchrefactor: grab logilab-common version with importlib.metada, not pkg_resourcesLaurent PeuchLaurent Peuchhttps://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/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/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 Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/69chore(tox): whitelist_externals has been renamed into allowlist_externals2023-07-04T21:01:04ZLaurent Peuchchore(tox): whitelist_externals has been renamed into allowlist_externalsHello 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/70ci: disable triggering other pipelines2023-07-04T20:20:44ZLaurent Peuchci: disable triggering other pipelinesLaurent PeuchLaurent Peuchhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/68feat: update logging colors scheme to match modern pratice2023-07-04T17:31:32ZLaurent Peuchfeat: update logging colors scheme to match modern praticeBeware: a possible endless debate
I've just changed the default colors for logs levels because they didn't made that much sens honestly to match the general practice of what I've seen online (like in bootstrap and all its clones)
Here ...Beware: a possible endless debate
I've just changed the default colors for logs levels because they didn't made that much sens honestly to match the general practice of what I've seen online (like in bootstrap and all its clones)
Here is an example of the result:
![image](/uploads/a901f5c1a2298bc5b8a5a4f3b26386bd/image.png)
I'm sure we can make WAY BETTER logs formatting and all (see loguru screenshot below for inspiration) but this 2 min change is already better than the current situation
Loguru:
![image](/uploads/308ff2963ca4eaeb3ce8722b49c3fb2d/image.png)https://forge.extranet.logilab.fr/open-source/logilab-common/-/merge_requests/67feat: run flynt on the code base to convert everything into f-strings2023-07-04T08:09:57ZLaurent Peuchfeat: run flynt on the code base to convert everything into f-stringsHello 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,