summaryrefslogtreecommitdiff
path: root/logilab/common
Commit message (Collapse)AuthorAgeFilesLines
* fix(mypy): handle new mypy versionLaurent Peuch2020-10-212-2/+8
|
* feat: add tests to ensure that warnings target the correct lineLaurent Peuch2020-10-091-1/+1
|
* feat(deprecation): add structured informations to deprecation warningsLaurent Peuch2020-08-251-17/+229
|
* style(black): new black release changed a bunch of stuffLaurent Peuch2020-08-2619-180/+92
|
* fix(deprecation): stacked decorators breaks getting the real callable ↵Laurent Peuch2020-08-261-6/+24
| | | | __name__ attribute
* Make the build reproducibleChris Lamb2020-07-202-3/+5
|
* type: declare that logilab-common ship type annotationsLaurent Peuch2020-07-071-0/+0
|
* [deprecation/fix] rollback to old class_deprecation being a class behaviorLaurent Peuch2020-05-221-16/+37
| | | | | It breaks CW because CW was using class_deprecated in a isinstance to select the good views to uses.
* fix(typing): explicitly define Match and Pattern on Import Error (python < 3.7)Simon Chabot2020-06-112-2/+23
| | | | | | for python < 3.6 those two types are not defined. In case of import error, let's define them (in the exact same way they are defined in the re module of python >= 3.7).
* refactor(logilab.common.deprecation): add typesNoe Gaumont2020-05-293-39/+78
|
* fix(decorators): don't do magic on __doc__ when sphinx is calledLaurent Peuch2020-06-051-6/+11
| | | | Otherwise donc cachedproperty.__doc__ returns "property" and not the expected docstring.
* [deprecation/mod] uses lazy_wraps everywhereLaurent Peuch2020-05-201-4/+4
|
* [deprecation/fix] implement lazy_wraps, a lazy version of functools.wraps ↵Laurent Peuch2020-05-201-6/+44
| | | | | | | | | | | for LazyObject functools.wraps was breaking the behavior of LazyObject because it tried to access attributes of the LazyObject that triggers an import which could sometime fails in this situation where some modules are marked as deprecated but aren't imported yet. For example see https://forge.extranet.logilab.fr/cubicweb/cubicweb/blob/3.24.0/cubicweb/schemas/__init__.py#L51
* [modutils/doc] add docstring to LazyObjectLaurent Peuch2020-05-201-0/+11
|
* [ureports/fix] make all nodes importables from logilab.common.ureportsLaurent Peuch2020-05-231-6/+8
|
* fix: restore strptime, but set a deprecation warningSimon Chabot2020-05-221-0/+3
| | | | | (removed in https://forge.extranet.logilab.fr/open-source/logilab-common/commit/05ab3833e72e9a32d98368d7f53483193b422ebb#76c733906282b2aba1de662c126a97608cf0fbcd_216_216)
* [deprecation] simplify class_deprecated codeLaurent Peuch2020-05-071-35/+17
| | | | | I don't know why it has been choosen to move to a metaclass but it actually brings more problems and a more complex code that it brings benefits.
* [fix] metaclass conflict for class_deprecatedLaurent Peuch2020-05-071-1/+22
| | | | Actually the old compatibility code actually prevented this bug so back it up.
* [pep8] please new version of flake8Laurent Peuch2020-05-151-1/+1
|
* black && flake8Laurent Peuch2020-05-061-14/+27
|
* [deprecation/fix] correctly automatically get the module in which ↵Laurent Peuch2020-05-061-33/+62
| | | | | | | | | | | | deprecation utils are called There was a missmatched combination of: * the frame wasn't always correctly grabbed * grabbing the frame in the situation of a decorator didn't make any sens, so switch to func.__module__ * the tests were bad and expected "[logilab.common]" while it should have been "[test_deprecation]" because it was there that the depreciation was declared
* [DepreciationWarning] deprecated has been renamed to callable_deprecatedLaurent Peuch2020-05-069-27/+29
|
* Please the flake8 godLaurent Peuch2020-03-1929-179/+138
|
* [py3] file() doesn't exist in python3Laurent Peuch2020-03-181-1/+1
|
* [fix] bad variable nameLaurent Peuch2020-03-181-1/+1
|
* Black the whole code baseLaurent Peuch2020-04-0139-1817/+2586
|
* [types] clean type annotations generation from pyannotationLaurent Peuch2020-03-2030-642/+1081
|
* fix(deprecation): new_function must be a callable, not a stringSimon Chabot2020-05-011-1/+1
|
* [deprecation] 'moved' function renamed 'callable_moved'Laurent Peuch2020-04-301-1/+4
|
* [deprecation] 'deprecated' function renamed 'callable_deprecated'Laurent Peuch2020-04-301-26/+29
|
* [deprecation] 'renamed' function renamed to 'callable_renamed'Laurent Peuch2020-04-301-1/+4
|
* [deprecation/abbreviation] rename modpath/objname function arguments to ↵Laurent Peuch2020-04-301-24/+26
| | | | module_name/object_name
* [deprecation] use send_warning in attribute/argument_renamed, ↵Laurent Peuch2020-04-231-13/+15
| | | | argument_removed and DeprecationWrapper
* [deprecation/refactoring] remove totally overkill DeprecationManagerLaurent Peuch2020-04-231-139/+0
|
* [deprecation/refactoring] simplify class_movedLaurent Peuch2020-04-231-3/+11
|
* [deprecation/refactoring] simplify class_renamedLaurent Peuch2020-04-231-3/+13
|
* [deprecation/refactoring] simplify renamedLaurent Peuch2020-04-221-2/+9
|
* [deprecation/refactoring] simplify movedLaurent Peuch2020-04-221-3/+20
|
* [deprecation/refactoring] simplify deprecatedLaurent Peuch2020-04-221-29/+45
|
* [deprecation/refactoring] start simplifying module and simplify class_deprecatedLaurent Peuch2020-04-221-1/+58
|
* add deprecation.argument_removedLaurent Peuch2020-04-231-0/+27
|
* add depreciation.argument_renamedLaurent Peuch2020-04-161-0/+33
|
* add depreciation.attribute_renamedLaurent Peuch2020-04-161-0/+45
|
* [fix] decorators needs to use functools.wrapsLaurent Peuch2020-04-151-0/+2
|
* add depreciation.renamed to rename callableLaurent Peuch2020-04-151-0/+32
|
* [py] Make flake8 less angry with logilab/common/ureports/Nicola Spanti2019-12-195-49/+65
|
* [mypy] type RegistrableObject.__regid__/__registry__Laurent Peuch2019-12-191-4/+3
|
* [mypy/type] declare type of RegistrableObject.__regid__/__select__Laurent Peuch2019-12-191-2/+3
|
* [mod] move predicates code up in the file for the next patchLaurent Peuch2019-12-191-209/+208
| | | | | This is needed for type declarations because we need to reference the Predicate class.
* [mypy/fix] Need type annotation for '_PREDICATES'Laurent Peuch2019-12-191-1/+3
|