tests/python: add local copy of typing module
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 9 Jun 2023 21:01:07 +0000 (17:01 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 21 Sep 2023 17:29:44 +0000 (13:29 -0400)
commite8f4ebf5c30caa6c6bcfca665c7633b4e707c3cd
tree971befa5baea4d48360e5e3a5fcf483cbaf08060
parentee1171e568e27975de9bd54bc12aee523ba58636
tests/python: add local copy of typing module

Add a local copy of the typing module [1], in order to be able to use
the typing module features with Python 3.4.

Add notes about the license in the top-level LICENSE file.

Add exclusions to avoid this file being reformatted by black, analyzed
by flake8 and its imports sorted by isort.

Add the tests/utils/python/utils.py with an import
er files will be able to use the
typing module using:

    typing = utils._typing_mod

... and not care where the typing module comes from.

[1] https://raw.githubusercontent.com/python/typing/3.10.0.2/src/typing.py

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I7648e700f7e350acc595004c697a89e1fc97de4a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10892
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
LICENSE
LICENSES/PSF-2.0 [new file with mode: 0644]
pyproject.toml
setup.cfg
tests/utils/python/local_typing.py [new file with mode: 0644]
tests/utils/python/utils.py [new file with mode: 0644]
This page took 0.024506 seconds and 4 git commands to generate.