Skip to content

Releases: youtype/mypy_boto3_builder

8.7.0 - Build It Yourself

19 Dec 23:06
Compare
Choose a tag to compare

Highlights

  • All packages can be build within 3 minutes
  • New ChatBot interface: uvx mypy_boto3_builder
  • All packages use new syntax for type annotations

Added

  • [services] All generated modules use __future__.annotations
  • [services] Support future type annotations in all generated files
  • [services] type: ignore comments always have a specific type
  • [builder] Added support for Generic base classes usage (used in updated Paginator class)

Changed

  • [services] Paginator.paginate **kwargs: Unpack[<name>] naming changed to a shorter variant (⚠breaking change)
  • [services] Paginator.wait **kwargs: Unpack[<name>] naming changed to a shorter variant (⚠breaking change)
  • [services] Subscripts are no longer stringified
  • [services] Subresources are sorted alphabetically, removed pseudo-topological sorting
  • [services] Replaced Optional[...] with ... | None
  • [services] Replaced inline Union with a new X | Y syntax (named Unions preserve old style for python<3.10 compatibility)
  • [services] Replaced typing.Dict/List/type with builtins equivalients
  • [services] Replaced typing.Set with builtins.set (currently unused in botocore)
  • [aiobotocore-services] Importing <service>.service_resourse is no longer safe when boto3 and aioboto3 are not installed (⚠breaking change)
  • [all] All annotations synced from static stubs
  • [chat] Fully migrated to prompt_toolkit styles
  • [chat] Added new select and multiselect UI
  • [builder] Optimized type replacement (e.g. quicksight parsing is now 10 times faster)

Fixed

  • [services] Docstring headers for generated files were not formatted properly
  • [builder] Unnamed Union returns correct required imports for rendering
  • [services] BotocoreClientError is no longer generated, using botocore.exceptions.ClientError instead
  • [services] Client.close method is no longer generated, inherited from static stubs instead
  • [services] Client.exceptions is inherited from BaseClientExceptions
  • [services] Paginator is inherited from botocore.paginate.Paginator
  • [services] Conditional imports marked with # type: ignore[assignment] for better mypy support
  • [aiobotocore-services] Fixed Paginator.paginate method return type
  • [aioboto3] [aiobotocore] boto3/botocore imports are now replaced with aioboto3/aiobotocore imports in Session as well
  • [builder] Unnamed Union returns correct required imports for rendering
  • [sms-voice] Service class name changed from duplicated PinpointSMSVoice to SMSVoice

8.6.4

17 Dec 11:30
Compare
Choose a tag to compare

Fixed

  • [s3] ContentMD5 argument for Object.put restored (reported by @rpmrmartin in #332)

Updated packages

  • mypy-boto3-s3 1.35.81
  • types-aiobotocore-s3 2.15.2.post3
  • types-boto3-s3 1.35.81

8.6.3

10 Dec 22:59
Compare
Choose a tag to compare

Fixed

  • [s3] ContentMD5 argument is no longer globally removed, only for specific methods (reported by @kveretennicov in #332)

Updated packages

  • mypy-boto3-s3 1.35.76.post1
  • types-boto3-s3 1.35.76.post1

8.6.2

08 Dec 23:48
Compare
Choose a tag to compare

Fixed

  • [all] Fixed inconsistencies in setup.py for all packages
  • [aiobotocore] Resources were not loaded correctly if boto3 was missing (reported by @ThisGuyCodes in #328)
  • [aioboto3] Synced generated session.pyi with static stubs
  • [chat] Changed incorrect wording in some places

8.6.1

06 Dec 00:40
Compare
Choose a tag to compare

Fixed

  • [docs] Updated uvx usage examples

Updated packages

  • types-aiobotocore-full 2.15.2.post1

8.6.0 - Chat Assistant

06 Dec 00:05
Compare
Choose a tag to compare

Highlights

  • uvx mypy-boto3-builder command makes building custom packages easier

Added

  • [builder] Running with no CLI arguments starts an interactive interface

Changed

  • [docs] Updated installation instructions

Fixed

  • [s3] SSECustomerKey and CopySourceSSECustomerKey arguments accept str | bytes (reported by @ThisGuyCodes in #328)
  • [s3] SSECustomerKeyMD5 and CopySourceSSECustomerKeyMD5 arguments are removed because boto3 calculates them internally
  • [types-aioboto3] Synced Session type annotations with static stubs
  • [types-aioboto3] Added missing ClientCreatorContext wrapper for Session.client return type annotations (reported by @kpark-hrp in #325)
  • [types-aioboto3-lite] Incorrect types-botocore version was required
  • [builder] Added a missing shortcut for uvx runs

Updated packages

  • mypy-boto3-s3 1.35.76
  • types-boto3-s3 1.35.76
  • types-aiobotocore-s3 2.15.2.post1
  • types-aioboto3 13.2.0.post3
  • types-aioboto3-lite 13.2.0.post3

8.5.0 - Custom Packages

30 Nov 17:37
Compare
Choose a tag to compare

Highlights

  • New products: types-boto3-custom, boto3-custom, aiobotocore-custom, aioboto3-custom to build a custom package specifically for your project
  • Builder can be run with uvx mypy_boto3_bulder

Added

  • [cli] New product: types-boto3-custom - All-in-one type annotations for boto3
  • [cli] New product: boto3-stubs-custom - All-in-one type annotations for boto3
  • [cli] New product: aiobotocore-custom - All-in-one type annotations for aiobotocore
  • [cli] New product: aioboto3-custom - All-in-one type annotations for aioboto3

Fixed

  • [builder] Added botocore dependency
  • [builder] Fixed run in isolated enviroment, e.g. uvx

8.4.2

29 Nov 10:50
Compare
Choose a tag to compare

Fixed

  • [types-aiobotocore] Removed botocore requirement from aiobotocore target (reported by @lg-kialo in #327)
  • [types-aioboto3] Removed botocore requirement from aioboto3 target
  • [types-aiobotocore-full] Removed botocore requirement from aiobotocore target
  • [types-boto3] Package name was incorrect
  • [builder] Added missing counter to skipped packages info log

8.4.1

27 Nov 22:09
Compare
Choose a tag to compare

Fixed

  • [builder] CLI arguments parsing was broken on Python 3.12

8.4.0 - Wheels Included

27 Nov 20:21
Compare
Choose a tag to compare

Highlighs

  • New product types-boto3 support - successor to boto3-stubs. It will become a recommended package in the next release.
  • Builder can now build wheel and sdist packages
  • No boto3 dependency for better aio* products and 3x build speed boost
  • --installed CLI flag is replaced with a new --output-type=package|installed|wheel|sdist CLI argument
  • Better support for types-aioboto3 and types-aiobotocore

Added

  • [cli] New --product-type CLI argument that accepts package, wheel, source or installed package generation type
  • [cli] --installed flag is deprecated, use --product-type=installed instead
  • [cli] New product: --product=types-boto3 to generate types-boto3 package
  • [cli] New product: --product=types-boto3-lite to generate types-boto3-lite package
  • [cli] New product: --product=types-boto3-services to generate types-boto3-<service> packages
  • [cli] New product: --product=types-boto3-full to generate types-boto3-full package
  • [cli] New product: --product=types-boto3-docs to generate types-boto3-docs package
  • [cli] New product: --product=boto3-lite to generate boto3-stubs-lite package (removed from boto3 product)
  • [cli] New product: --product=aiobotocore-lite to generate types-aiobotocore-lite package (removed from aiobotocore product)
  • [cli] New product: --product=aioboto3-lite to generate types-aioboto3-lite package (removed from aioboto3 product)
  • [builder] Support for *.whl and *.tar.gz packages as an output
  • [s3] Annotated missing injected methods

Changed

  • [builder] Removed boto3 dependency
  • [builder] Backported boto3.model.ResourceModel
  • [builder] Package builds are now 3 times faster due removed boto3 instances creation
  • [builder] Faster output file comparison
  • [builder] All *-lite packages were moved to new products and no longer generated with full stubs

Fixed

  • [aioboto3] Fixed Session.resource return type (reported by @kpark-hrp in #325)
  • [aiobotocore] Fixed Session.client return type (reported by @kpark-hrp in #325)
  • [builder] Static files that will be overwritten by templates are no longer created
  • [builder] Error on invalid version received from PyPI
  • [services] Added a warning on attribute name conflict
  • [services] Replaced NO-BREAK SPACE with a regular space in docstrings