... according to the versions currently supported.
Change-Id: Ibc60bf2bb13a57625d6afd045be88d988f4b24a9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
Update all .py source files by
$ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.
pep8 errors are fixed by
$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
--in-place taskflow
Also add the pyupgrade hook to pre-commit to avoid merging additional
Python 2 syntaxes.
Change-Id: Ifd0a0ade9789497482c7937bffd82c48acfb3d78
pbr is in requirements now so should always exist. pkg_resourcs was
removed in Python 3.12 [1] and can no longer be used.
[1] https://docs.python.org/3/whatsnew/3.12.html#ensurepip
Change-Id: I1f1d5c75f10b6f232dd2bf23fc963693f8388f98
Since pbr is now only a dev/build-time requirement of taskflow
and not a run-time or test-time requirement we should not have
a version file that explicitly requires pbr to exist to function
correctly.
To accommodate when pbr is not found use the pkg_resources function
that can provide the installed version instead so that we still
provide back a valid version.
Change-Id: Id191d2b38def54b95a3467b4023a9540c284660d