[Bug 1883175] Re: missing support for python3.8 language features

Ubuntu Foundations Team Bug Bot 1883175 at bugs.launchpad.net
Thu Jul 2 12:33:53 UTC 2020


The attachment "python-flake8_3.8.3-1.debdiff" seems to be a debdiff.
The ubuntu-sponsors team has been subscribed to the bug report so that
they can review and hopefully sponsor the debdiff.  If the attachment
isn't a patch, please remove the "patch" flag from the attachment,
remove the "patch" tag, and if you are member of the ~ubuntu-sponsors,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1883175

Title:
  missing support for python3.8 language features

Status in pycodestyle package in Ubuntu:
  New
Status in pyflakes package in Ubuntu:
  New
Status in python-flake8 package in Ubuntu:
  New

Bug description:
  Python 3.8 language features include some syntax that python3-flake8
  3.7.9-2 registers as an error.

  flake8 3.8.x is now available, released after Focal. The minor version
  matches the supported python version, so a release from the 3.8.x
  series should be ported to Focal. This version bump requires
  dependency pycodestyle >= 2.6.0, which is where the bugfix occurs.

  [Test Case]
  Create a file test.py
  Use python3 language features, e.g.
  ```
  while (a := float(input())) < 10 :
      print(f'{a=} is too much!')
  print(f'{a=} works fine')
  ```
  Run `python3 -m flake8 test.py`

  Result:
  "pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'"
  Run flake8 with greater verbosity to see more details
  test.py:1:9: E203 whitespace before ':'
  test.py:1:10: E231 missing whitespace after ':'

  `echo $?` shows a return value of 1

  With the 3.8.3-1 version of the package proposed for Groovy
  (https://launchpad.net/ubuntu/+source/python-flake8/3.8.3-1) `test.py`
  produces no output and returns 0

  [Regression Potential]
  Potential is minimal as this is a minor version bump, which upstream defines as only offering additional, optional checks and not breaking backward compatibility. No reported breakages between 3.7.9 and 3.8.3 are shown in upstream issue tracker.

  Any regressions would appear as unexpected errors emitted when running
  the linter on previously error-less, valid python code.

  Upstream QA:
  https://flake8.pycqa.org/en/latest/internal/releases.html#process
  outlines the required tests a release must pass, all of which
  completed in https://gitlab.com/pycqa/flake8/-/pipelines/154124695

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycodestyle/+bug/1883175/+subscriptions



More information about the Ubuntu-sponsors mailing list