6 Commits

Author SHA1 Message Date
Takashi Kajinami
e3cca6cd18 Bump pyupgrade target to 3.10+
... according to the versions currently supported.

Change-Id: Ibc60bf2bb13a57625d6afd045be88d988f4b24a9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-05 19:46:33 +09:00
Takashi Kajinami
80e1aadc49 Run pyupgrade to clean up Python 2 syntaxes
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
2025-04-02 15:23:12 +09:00
Takashi Kajinami
dbf8be4edb Remove unused usage of pkg_resources
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
2024-10-03 09:51:09 +09:00
Joshua Harlow
1eabee4c8b Make version.py handle pbr not being installed
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
2014-09-01 20:09:59 +00:00
yangxurong
17bf3db06a Remove extraneous vim configuration comments
Remove line containing

comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4

Change-Id: I7581cc88b8de433d5609ed06c6570b0b45c13573
Closes-Bug:#1229324
2014-02-14 16:56:50 +08:00
Joshua Harlow
52c8869014 Prepare for 0.1 release
Change-Id: I4a56aa50d296f50a5b907635d2e53154500703c9
2013-10-14 01:03:32 +00:00