Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix(mypy): handle new mypy version | Laurent Peuch | 2020-10-21 | 2 | -2/+8 |
| | |||||
* | feat: add tests to ensure that warnings target the correct line | Laurent Peuch | 2020-10-09 | 1 | -1/+1 |
| | |||||
* | feat(deprecation): add structured informations to deprecation warnings | Laurent Peuch | 2020-08-25 | 1 | -17/+229 |
| | |||||
* | style(black): new black release changed a bunch of stuff | Laurent Peuch | 2020-08-26 | 19 | -180/+92 |
| | |||||
* | fix(deprecation): stacked decorators breaks getting the real callable ↵ | Laurent Peuch | 2020-08-26 | 1 | -6/+24 |
| | | | | __name__ attribute | ||||
* | Make the build reproducible | Chris Lamb | 2020-07-20 | 2 | -3/+5 |
| | |||||
* | type: declare that logilab-common ship type annotations | Laurent Peuch | 2020-07-07 | 1 | -0/+0 |
| | |||||
* | [deprecation/fix] rollback to old class_deprecation being a class behavior | Laurent Peuch | 2020-05-22 | 1 | -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 Chabot | 2020-06-11 | 2 | -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 types | Noe Gaumont | 2020-05-29 | 3 | -39/+78 |
| | |||||
* | fix(decorators): don't do magic on __doc__ when sphinx is called | Laurent Peuch | 2020-06-05 | 1 | -6/+11 |
| | | | | Otherwise donc cachedproperty.__doc__ returns "property" and not the expected docstring. | ||||
* | [deprecation/mod] uses lazy_wraps everywhere | Laurent Peuch | 2020-05-20 | 1 | -4/+4 |
| | |||||
* | [deprecation/fix] implement lazy_wraps, a lazy version of functools.wraps ↵ | Laurent Peuch | 2020-05-20 | 1 | -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 LazyObject | Laurent Peuch | 2020-05-20 | 1 | -0/+11 |
| | |||||
* | [ureports/fix] make all nodes importables from logilab.common.ureports | Laurent Peuch | 2020-05-23 | 1 | -6/+8 |
| | |||||
* | fix: restore strptime, but set a deprecation warning | Simon Chabot | 2020-05-22 | 1 | -0/+3 |
| | | | | | (removed in https://forge.extranet.logilab.fr/open-source/logilab-common/commit/05ab3833e72e9a32d98368d7f53483193b422ebb#76c733906282b2aba1de662c126a97608cf0fbcd_216_216) | ||||
* | [deprecation] simplify class_deprecated code | Laurent Peuch | 2020-05-07 | 1 | -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_deprecated | Laurent Peuch | 2020-05-07 | 1 | -1/+22 |
| | | | | Actually the old compatibility code actually prevented this bug so back it up. | ||||
* | [pep8] please new version of flake8 | Laurent Peuch | 2020-05-15 | 1 | -1/+1 |
| | |||||
* | black && flake8 | Laurent Peuch | 2020-05-06 | 1 | -14/+27 |
| | |||||
* | [deprecation/fix] correctly automatically get the module in which ↵ | Laurent Peuch | 2020-05-06 | 1 | -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_deprecated | Laurent Peuch | 2020-05-06 | 9 | -27/+29 |
| | |||||
* | Please the flake8 god | Laurent Peuch | 2020-03-19 | 29 | -179/+138 |
| | |||||
* | [py3] file() doesn't exist in python3 | Laurent Peuch | 2020-03-18 | 1 | -1/+1 |
| | |||||
* | [fix] bad variable name | Laurent Peuch | 2020-03-18 | 1 | -1/+1 |
| | |||||
* | Black the whole code base | Laurent Peuch | 2020-04-01 | 39 | -1817/+2586 |
| | |||||
* | [types] clean type annotations generation from pyannotation | Laurent Peuch | 2020-03-20 | 30 | -642/+1081 |
| | |||||
* | fix(deprecation): new_function must be a callable, not a string | Simon Chabot | 2020-05-01 | 1 | -1/+1 |
| | |||||
* | [deprecation] 'moved' function renamed 'callable_moved' | Laurent Peuch | 2020-04-30 | 1 | -1/+4 |
| | |||||
* | [deprecation] 'deprecated' function renamed 'callable_deprecated' | Laurent Peuch | 2020-04-30 | 1 | -26/+29 |
| | |||||
* | [deprecation] 'renamed' function renamed to 'callable_renamed' | Laurent Peuch | 2020-04-30 | 1 | -1/+4 |
| | |||||
* | [deprecation/abbreviation] rename modpath/objname function arguments to ↵ | Laurent Peuch | 2020-04-30 | 1 | -24/+26 |
| | | | | module_name/object_name | ||||
* | [deprecation] use send_warning in attribute/argument_renamed, ↵ | Laurent Peuch | 2020-04-23 | 1 | -13/+15 |
| | | | | argument_removed and DeprecationWrapper | ||||
* | [deprecation/refactoring] remove totally overkill DeprecationManager | Laurent Peuch | 2020-04-23 | 1 | -139/+0 |
| | |||||
* | [deprecation/refactoring] simplify class_moved | Laurent Peuch | 2020-04-23 | 1 | -3/+11 |
| | |||||
* | [deprecation/refactoring] simplify class_renamed | Laurent Peuch | 2020-04-23 | 1 | -3/+13 |
| | |||||
* | [deprecation/refactoring] simplify renamed | Laurent Peuch | 2020-04-22 | 1 | -2/+9 |
| | |||||
* | [deprecation/refactoring] simplify moved | Laurent Peuch | 2020-04-22 | 1 | -3/+20 |
| | |||||
* | [deprecation/refactoring] simplify deprecated | Laurent Peuch | 2020-04-22 | 1 | -29/+45 |
| | |||||
* | [deprecation/refactoring] start simplifying module and simplify class_deprecated | Laurent Peuch | 2020-04-22 | 1 | -1/+58 |
| | |||||
* | add deprecation.argument_removed | Laurent Peuch | 2020-04-23 | 1 | -0/+27 |
| | |||||
* | add depreciation.argument_renamed | Laurent Peuch | 2020-04-16 | 1 | -0/+33 |
| | |||||
* | add depreciation.attribute_renamed | Laurent Peuch | 2020-04-16 | 1 | -0/+45 |
| | |||||
* | [fix] decorators needs to use functools.wraps | Laurent Peuch | 2020-04-15 | 1 | -0/+2 |
| | |||||
* | add depreciation.renamed to rename callable | Laurent Peuch | 2020-04-15 | 1 | -0/+32 |
| | |||||
* | [py] Make flake8 less angry with logilab/common/ureports/ | Nicola Spanti | 2019-12-19 | 5 | -49/+65 |
| | |||||
* | [mypy] type RegistrableObject.__regid__/__registry__ | Laurent Peuch | 2019-12-19 | 1 | -4/+3 |
| | |||||
* | [mypy/type] declare type of RegistrableObject.__regid__/__select__ | Laurent Peuch | 2019-12-19 | 1 | -2/+3 |
| | |||||
* | [mod] move predicates code up in the file for the next patch | Laurent Peuch | 2019-12-19 | 1 | -209/+208 |
| | | | | | This is needed for type declarations because we need to reference the Predicate class. | ||||
* | [mypy/fix] Need type annotation for '_PREDICATES' | Laurent Peuch | 2019-12-19 | 1 | -1/+3 |
| |