[release-announce] reno 3.5.0

no-reply at openstack.org no-reply at openstack.org
Thu Oct 7 10:35:24 UTC 2021


We are jazzed to announce the release of:

reno 3.5.0: RElease NOtes manager

The source is available from:

    https://opendev.org/openstack/reno

Download the package from:

    https://pypi.org/project/reno

For more details, please see below.

3.5.0
^^^^^


New Features
************

* The "reno.scanner.Scanner" and "reno.loader.Loader" classes can
  now be used as context managers. For example:

     import reno.scannner

     with reno.scanner.Scanner(...) as scanner:
         pass

  This will ensure any open files pertaining to the scanned Git repo
  are correctly closed, avoiding "ResourceWarning" instances otherwise
  seen.

  A "close()" method is also provided for both, allowing use outside
  of context managers. For example:

     import reno.loader

     loader = reno.loader.Loader(...)
     try:
         pass
     finally:
         loader.close()


Bug Fixes
*********

* Instances of "reno.scanner.Scanner" and "reno.loader.Loader" will
  now corectly close all open files related to the scanned Git repo
  when the "close()" method is called. Alternatively, these classes
  may be used as a context manager. Previously, Python would attempt
  to close these files itself, resulting in a "ResourceWarning"
  warning being emitted.

Changes in reno 3.4.0..3.5.0
----------------------------

cd31b90 Close files opened by Scanner, Loader


Diffstat (except docs and test files)
-------------------------------------

...r-loader-context-managers-5d80d95dc3d33fe0.yaml |  31 ++
reno/cache.py                                      |  86 +++--
reno/linter.py                                     |  26 +-
reno/lister.py                                     |  24 +-
reno/loader.py                                     |  38 ++-
reno/report.py                                     |  28 +-
reno/scanner.py                                    |  10 +
reno/semver.py                                     | 131 ++++----
reno/setup_command.py                              |  16 +-
reno/sphinxext.py                                  |  33 +-
13 files changed, 435 insertions(+), 360 deletions(-)







More information about the Release-announce mailing list