Skip to content

Releases: FirebirdSQL/python3-base

v2.0.2: Release 2.0.2

02 Jun 18:36
Compare
Choose a tag to compare

Fixed

  • Fix: "quick fingers" issue with _decompose fix.

v2.0.1: Release 2.0.1

02 Jun 18:19
Compare
Choose a tag to compare

Fixed

  • Issue with trace configuration.
  • Issues with _decompose.
  • Signature match in eventsocket.

v2.0.0

30 Apr 08:45
Compare
Choose a tag to compare

Added

  • firebird.base.buffer.MemoryBuffer.get_raw method.
  • get_raw method to BufferFactory, BytesBufferFactory and CTypesBufferFactory.
  • __repr__ method for PyCode and PyCallable that will limit output to 50 characters.
  • Optional encoding parameter for ZMQAddress constructor.

Changed

  • Tests changed from unittest to pytest, 96% code coverage.
  • Minimal Python version raised to 3.11.
  • The firebird.base.logging module was completelly reworked.
  • Function firebird.base.types.Conjunctive renamed to conjunctive.
  • firebird.base.collections.DataList.__init__ parameter frozen is now keyword-only.
  • firebird.base.collections.DataList.extract parameter copy is now keyword-only.
  • firebird.base.collections.DataList.sort parameter reverse is now keyword-only.
  • firebird.base.collections.DataList.split parameter frozen is now keyword-only.
  • firebird.base.collections.Registry.popitem parameter last is now keyword-only.
  • firebird.base.collections.BaseObjectCollection.contains parameter expr now does not have default value.
  • Deprecated firebird.base.config.create_config function was removed.
  • firebird.base.config.DirectoryScheme parameter force_home is now keyword only.
  • firebird.base.config.Option parameters required and default are now keyword only.
  • Parameter context was removed from firebird.base.trace.traced decorator.
  • Option context was removed from firebird.base.trace.BaseTraceConfig.
  • Log function return value as repr rather than str.
  • Sentinel objects completely reworked. Individual sentinels are now classes derived from Sentinel.

Fixed

  • Broken firebird.base.types.Distinct support for dataclasses and hash function.
  • Raise BufferError istead IOError in firebird.base.buffer.MemoryBuffer methods resize,
    read and read_number
  • Problem with firebird.base.collections.Registry.pop that did not raised KeyError when
    default was not specified.
  • Bug in firebird.base.collections.Registry.popitem with last = True.
  • Problem with name handling in firebird.base.config.ConfigOption.clear and set_value.
  • Problem with firebird.base.config.WindowsDirectoryScheme and firebird.base.config.MacOSDirectoryScheme constructors.
  • Problem with firebird.base.config.ListOption.item_types value.
  • Problem with internal .Convertor initialization in firebird.base.config.ListOption.
  • Use copy of default list stead direct use in firebird.base.config.ListOption.
  • firebird.base.config.ListOption.get_formatted and firebird.base.config.ListOption.get_as_str
    should return typed values for multitype lists.
  • firebird.base.config.ConfigOption.validate should validate the Config as well if defined.
  • firebird.base.config.ConfigListOption.validate should report error for empty list when required.
  • Problem with conversion of flags from string in firebird.base.strconv.

v1.8.0

03 May 15:02
Compare
Choose a tag to compare

Added

  • New EnvExtendedInterpolation class in config module that extends configparser.ExtendedInterpolation
    with special handling for "env" section that returns value of specified environment
    variable, or empty string if such variable is not defined.

v1.7.2

20 Feb 14:09
Compare
Choose a tag to compare

Fixed

  • Error.getattr() should not mask the absence of __notes__ attribute.

v1.7.1

08 Oct 13:47
Compare
Choose a tag to compare

Fixed

  • Log record values module and filename were not assigned properly under Python 3.11
  • Failed tests due to subtle changes in Python 3.11

Changed

  • Downgrade dependency to protobuf>=4.23.4

v1.7.0

03 Oct 14:27
Compare
Choose a tag to compare

Added

  • .pyi file for config protobuf
  • Stub pytest test

Changed

  • Update dependency to protobuf >=4.24.3
  • Build system changed from setuptools to hatch
  • Package version is now defined in firebird.base.__about__.py (__version__)

v1.6.1

03 Mar 16:27
Compare
Choose a tag to compare
  • firebird.base.config module:

    • Fixed bug with Config.get_config() and plain bool argument.
    • StrOption now supports preservation of significant leading whitespace for multiline
      values (like PyCodeOption).

v1.6.0

15 Feb 16:47
Compare
Choose a tag to compare
  • protobuf module:

    Registration of already registered protobuf registration is now ignored instead raising exception.

  • config module:

    Config.get_config() and Option.get_config() now provides plain bool argument to return configuration text without comments. Deafult is False.

  • trace module:

    Fixed bug in TraceManager.load_config().

Release 1.4.3

27 Oct 12:16
Compare
Choose a tag to compare
  • firebird.base.types module:

    • Added internal functions _decompose and _power_of_two from stdlib enum module,
      because they were removed in Python 3.11.
  • firebird.base.protobuf module:

    • Use importlib.metadata.entry_points instead pkg_resources.iter_entry_points.
  • Improved documentation.