3 Commits

Author SHA1 Message Date
Maciej Borzecki
ce04e82ef9 release-tools: skip flake8 on 24.04
flake8 is broken on 24.04, this outright fails:

$ flake8 --ignore=E501 release-tools
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flake8/plugins/finder.py", line 296, in _load_plugin
    obj = plugin.entry_point.load()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/flake8/plugins/pycodestyle.py", line 25, in <module>
    from pycodestyle import missing_whitespace_around_operator as _missing_whitespace_around_operator  # noqa: E501
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'missing_whitespace_around_operator' from 'pycodestyle' (/usr/lib/python3/dist-packages/pycodestyle.py)

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
2024-03-13 17:32:36 +01:00
Ernest Lotter
dc51d602b9 release-tools: improve changelog help and inform of incorrect deb email (#13369)
* release-tools: improved help and inform of incorrect deb email

* fixed flake8 failure
2023-11-21 12:55:32 +02:00
Michael Vogt
0a4dc52794 release-tools: add support for NEWS.md changelog.py (#13202)
* release-tools: add support for NEWS.md changelog.py

* release-tools: add flake8 test and fix flake8 issue

* tests: add flake8/python3-bs4 to build-deps for the unit tests

* run-tests: do not write __pycache__ dir
2023-11-17 13:38:27 +02:00