| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat: add tests to ensure that warnings target the correct line | Laurent Peuch | 2020-10-09 | 1 | -1/+212 |
| | | |||||
| * | feat(deprecation): add structured informations to deprecation warnings | Laurent Peuch | 2020-08-25 | 1 | -7/+234 |
| | | |||||
| * | style(black): new black release changed a bunch of stuff | Laurent Peuch | 2020-08-26 | 4 | -47/+29 |
| | | |||||
| * | fix(deprecation): stacked decorators breaks getting the real callable ↵ | Laurent Peuch | 2020-08-26 | 1 | -0/+25 |
| | | | | | __name__ attribute | ||||
| * | [deprecation/fix] implement lazy_wraps, a lazy version of functools.wraps ↵ | Laurent Peuch | 2020-05-20 | 1 | -0/+15 |
| | | | | | | | | | | | | 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 | ||||
| * | [fix] metaclass conflict for class_deprecated | Laurent Peuch | 2020-05-07 | 1 | -0/+11 |
| | | | | | Actually the old compatibility code actually prevented this bug so back it up. | ||||
| * | black && flake8 | Laurent Peuch | 2020-05-06 | 3 | -107/+153 |
| | | |||||
| * | [deprecation/fix] correctly automatically get the module in which ↵ | Laurent Peuch | 2020-05-06 | 3 | -40/+84 |
| | | | | | | | | | | | | | 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 | ||||
| * | Please the flake8 god | Laurent Peuch | 2020-03-19 | 17 | -55/+99 |
| | | |||||
| * | Black the whole code base | Laurent Peuch | 2020-04-01 | 30 | -1115/+1581 |
| | | |||||
| * | [tox] move to pytest | Laurent Peuch | 2020-03-20 | 22 | -3/+3 |
| | | |||||
| * | [deprecation] 'moved' function renamed 'callable_moved' | Laurent Peuch | 2020-04-30 | 1 | -1/+1 |
| | | |||||
| * | [deprecation] 'deprecated' function renamed 'callable_deprecated' | Laurent Peuch | 2020-04-30 | 1 | -4/+4 |
| | | |||||
| * | [deprecation] 'renamed' function renamed to 'callable_renamed' | Laurent Peuch | 2020-04-30 | 1 | -2/+2 |
| | | |||||
| * | [deprecation] use send_warning in attribute/argument_renamed, ↵ | Laurent Peuch | 2020-04-23 | 1 | -3/+3 |
| | | | | | argument_removed and DeprecationWrapper | ||||
| * | [deprecation/refactoring] remove totally overkill DeprecationManager | Laurent Peuch | 2020-04-23 | 1 | -60/+0 |
| | | |||||
| * | [deprecation/refactoring] simplify class_moved | Laurent Peuch | 2020-04-23 | 1 | -0/+17 |
| | | |||||
| * | [deprecation/refactoring] simplify class_renamed | Laurent Peuch | 2020-04-23 | 1 | -0/+10 |
| | | |||||
| * | [deprecation/refactoring] simplify renamed | Laurent Peuch | 2020-04-22 | 1 | -1/+1 |
| | | |||||
| * | [deprecation/refactoring] simplify moved | Laurent Peuch | 2020-04-22 | 1 | -1/+1 |
| | | |||||
| * | [deprecation/refactoring] simplify deprecated | Laurent Peuch | 2020-04-22 | 3 | -4/+4 |
| | | |||||
| * | [deprecation/refactoring] start simplifying module and simplify class_deprecated | Laurent Peuch | 2020-04-22 | 1 | -1/+1 |
| | | |||||
| * | add deprecation.argument_removed | Laurent Peuch | 2020-04-23 | 1 | -0/+11 |
| | | |||||
| * | add depreciation.argument_renamed | Laurent Peuch | 2020-04-16 | 1 | -0/+14 |
| | | |||||
| * | add depreciation.attribute_renamed | Laurent Peuch | 2020-04-16 | 1 | -0/+22 |
| | | |||||
| * | add depreciation.renamed to rename callable | Laurent Peuch | 2020-04-15 | 1 | -0/+10 |
| | | |||||
| * | [shellutils, fix] Deprecate 'input' as argument of RawInput in favor of ↵ | Simon Chabot | 2019-11-28 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | 'input_function' When no parameter was given to the class, None was used as the `input`. It used to work because when `input` (the argument) was None `raw_input` of six was used instead. (-> self._input = input or raw_input). Now that six has been dropped, we cannot have `input=None` in the arguments list anymore and use the builtin `input` at the same time. This patch suggests to deprecate this argument in favor of a new one called `input_function`. If no `input_function`, let's use the `input` builtin. For backward compatibility, if `input` should be given, it's caught in the `kwargs` and used as `input_function`, and a deprecation warning is shown. | ||||
| * | Fix modutils tests in debian package | Philippe Pepiot | 2019-11-27 | 1 | -0/+1 |
| | | | | | | | | | | | | logilab-pytest has a side effect of printing DeprecationWarnings by default, when running modutils tests without logilab-pytest binary this fail. In debian package we run python3 -m "logilab.common.pytest" and thus DeprecationWarning are not displayed and tests fail. Fix this by ensuring DeprecationWarning are displayed before running tests of unittest_modutils.py | ||||
| * | Drop dependency on six | Nicola Spanti | 2019-11-19 | 1 | -3/+1 |
| | | |||||
| * | Nearly drop dependency on six | Philippe Pepiot | 2019-11-08 | 6 | -23/+9 |
| | | |||||
| * | [py] Make flake8 a bit less angry | Nicola Spanti | 2019-10-25 | 1 | -7/+15 |
| | | |||||
| * | Raise a ValueError in case of invalid unit in textutils.apply_units() | Denis Laxalde | 2019-07-26 | 1 | -0/+3 |
| | | | | | | | | | | The original KeyError comes from 57e242dffe89 which no justification. I believe it was meant to be a ValueError as in other errors in this function. Also, _ensure_correctly_typed() in cubicweb/web/formfields.py will catch ValueError. Adding a test for this. | ||||
| * | [configuration] fix registration of multiple groups at once | Adrien Di Mascio | 2017-05-11 | 1 | -0/+16 |
| | | | | | | | | | The "options" iteration variable hid the original function parameters, therefore only the options of the last group were registered. Rename the iteration variable and everything's fine. | ||||
| * | Use a context manager for io.open() | Denis Laxalde | 2017-07-04 | 1 | -1/+2 |
| | | |||||
| * | Use io.open() to avoid deprecation warning about 'U' mode | Denis Laxalde | 2017-07-04 | 1 | -1/+2 |
| | | | | | | | Use io.open() which has a consistent interface between Python 2 and Python 3. In particular, `newline` parameter is meant to control "universal new lines" and it is None by default so we don't need to specify it. | ||||
| * | [textutils] Add two more manual mappings to convert unicode into ASCII | Yann Voté | 2017-02-28 | 1 | -0/+2 |
| | | |||||
| * | [registry] RegistrableInstance should be instantiated with __module__=__name__ | Philippe Pepiot | 2017-01-20 | 2 | -3/+8 |
| | | | | | | | | | | To detect in whih module the instance was created we previously detect the filename in python stack and then use modpath_from_file(). Since the later is now deprecated, we should force passing the module at instantiation with __module__=__name__. Deprecate old usage | ||||
| * | [registry] deprecate register_objects() | Philippe Pepiot | 2017-01-20 | 1 | -2/+6 |
| | | | | | | This method is to be replaced by register_modnames() to avoid using deprecated modpath_from_file() | ||||
| * | [modutils] deprecate modpath_from_file | Philippe Pepiot | 2017-01-20 | 1 | -2/+6 |
| | | | | | | | The method will likely fail if there somes symlinks in your python environment and will certainly fail on a file that isn't in sys.path (like custom importers using sys.meta_path). | ||||
| * | [registry] add register_modnames() | Philippe Pepiot | 2016-12-23 | 1 | -0/+9 |
| | | | | | | | Alternative to register_objects() to inspect modules names instead of directories. Avoiding using bogus logilab.common.modutils.modpath_from_file() | ||||
| * | [test] Do not use "modutils" in test_site_packages | Denis Laxalde | 2016-11-18 | 1 | -2/+3 |
| | | | | | | | Because "modutils" module may also be found in source directory, this test may fail under some circumstances (like Debian package build, for instance). | ||||
| * | [configuration] Fix multi-line strings handling | Christophe de Vienne | 2016-01-11 | 1 | -0/+44 |
| | | | | | Closes #3691182 | ||||
| * | [testlib] Deprecate doctest things in favour of stdlib module | Denis Laxalde | 2016-01-19 | 3 | -20/+18 |
| | | | | | | | And adjust all tests accordingly. Drop docstring example from fileutils.abspath_listdir since I could not have it skipped. | ||||
| * | Rename pytest executable into logilab-pytest | Denis Laxalde | 2016-10-03 | 1 | -1/+1 |
| | | | | | Closes #8396846. | ||||
| * | [test] noop instead of skip test_utcdatetime for mxDateTime | David Douard | 2016-05-27 | 1 | -1/+1 |
| | | | | | to have a clean CI report | ||||
| * | [pep8] test/unittest_changelog | David Douard | 2016-05-27 | 1 | -6/+7 |
| | | |||||
| * | [changelog] ensure ChangeLogEntry write unicode (closes #6213577) | David Douard | 2016-01-12 | 1 | -1/+1 |
| | | | | | also use io.StingIO in unittest_changelog | ||||
| * | Fix regression with datetime2ticks vs date object as argument | Sylvain Thénault | 2016-05-17 | 1 | -0/+5 |
| | | | | | we should not get a traceback in this case. Closes #6060938 | ||||
| * | [date] take milliseconds into account in datetime2ticks | Julien Cristau | 2016-03-10 | 1 | -3/+11 |
| | | |||||
| * | Move coverage utility from pytest to testlib | Denis Laxalde | 2016-03-03 | 1 | -15/+0 |
| | | | | | | | | This allows client libraries to avoid importing pytest module which has spurious monkeypatches of unittest. Drop deprecated API about coverage control. | ||||
