Releases: Backblaze/b2-sdk-python
Releases · Backblaze/b2-sdk-python
1.31.0
Fixed
- Remove obsolete test scripts from b2sdk package:
test_upload_url_concurrency
,b2sdk.b2http:test_http
. (#471)
Added
- Allow for
min_part_size
that is greater than defaultrecommended_part_size
value, without having to explicitly setrecommended_part_size
value. - Add
GET
method support toB2Http
. - Add
JSON
type annotation and fix type hints inB2Http
methods. - Add more type hints to API methods.
1.30.1
Fixed
- Fix package author metadata.
1.30.0
Fixed
- Fix escape sequence warnings present in python 3.12. (#458)
- Handle json encoded, invalid B2 error responses, preventing exceptions such as
invalid literal for int() with base 10: 'service_unavailable'
.
Added
- Add support for filters to
Bucket.ls()
.
Infrastructure
- Package the library using pdm, use locked dependencies in CI.
- Update
ruff
linter and apply it to all files.
1.29.1
Fixed
- Handle non-json encoded B2 error responses, i.e. retry on 502 and 504 errors.
Doc
- Add missing import in Synchronizer docs example.
1.29.0
Changed
- Change v3.B2Api.authorize_account signature to make
realm
optional and"production"
by default.
Added
- Progress listener instances can now change their descriptions during run. This allows for e.g.: changing description after file headers are downloaded but before the content is fetched.
Infrastructure
- Add
-v
to pytest in CI. - Run windows pypy3.9 tests on nightly builds.
1.28.0
Changed
- On XDG compatible OSes (Linux, BSD), the profile file is now created in
$XDG_CONFIG_HOME
(with a fallback to~/.config/
in absence of given env. variable). - Replace blank
assert
with exception when size values for parts upload are misaligned.
Fixed
- Streaming from empty stream no longer ends with "Empty emerge parts iterator" error.
Infrastructure
- Changelog entries are now validated as a part of CI pipeline.
- Disable dependabot requests for updates unrelated to security issues.
- Fixed tests failing because of changes made to
locale.normalize
in Python 3.12.
1.27.0
Changed
- Add dependency on
setuptools
andpackaging
as they are not shipped by cpython 3.12 and are used in production code.
Fixed
- Fix closing of passed progress listeners in
Bucket.upload
andBucket.copy
1.26.0
Added
- Add
expires
,content_disposition
,content_encoding
,content_language
arguments to variousBucket
methods (#357)
Infrastructure
- Towncrier changelog generation - to avoid conflicts when simultaneously working on PRs
- Fix towncrier generated changelog to work with mindsers/changelog-reader-action
1.25.0
Added
- Add
*_PART_SIZE
,BUCKET_NAME_*
,STDOUT_FILEPATH
constants - Add
points_to_fifo
,points_to_stdout
functions
Changed
- Mark
TempDir
as deprecated in favor oftempfile.TemporaryDirectory
Fixed
- Fix downloading to a non-seekable file, such as /dev/stdout
- Fix ScanPoliciesManager support for compiled regexes
Infrastructure
- Fix readthedocs build by updating to v2 configuration schema
- Fix spellcheck erroring out on LICENSE file
- Fix snyk reporting vulnerability due to tornado package use in docs generation
- Deduplicate test_base files in test suite
- Refactor integration tests for better pytest compatibility & eager bucket cleanup
1.24.1
Fixed
- Fix missing key ID for large file encrypted with SSE-C
- Fix concatenating error message when message is None