diff --git a/.changes/header.tpl.md b/.changes/header.tpl.md new file mode 100644 index 000000000..c0fa5e107 --- /dev/null +++ b/.changes/header.tpl.md @@ -0,0 +1,8 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +This project uses [*Changie*](https://changie.dev/) and the changes for the +upcoming release can be found in [.changes/unreleased](.changes/unreleased). diff --git a/.changes/unreleased/Infrastructure-20261117-150151.yaml b/.changes/unreleased/Infrastructure-20261117-150151.yaml new file mode 100644 index 000000000..6dac6a105 --- /dev/null +++ b/.changes/unreleased/Infrastructure-20261117-150151.yaml @@ -0,0 +1,3 @@ +kind: Infrastructure +body: Build standalone Linux executables with Ubuntu 22.04's system Python 3.10, removing the dependency on the deadsnakes PPA in CI and release builds. +time: 2026-11-17T15:01:51.758903-06:00 diff --git a/.changes/unreleased/Infrastructure-20261117-150743.yaml b/.changes/unreleased/Infrastructure-20261117-150743.yaml new file mode 100644 index 000000000..c674265b4 --- /dev/null +++ b/.changes/unreleased/Infrastructure-20261117-150743.yaml @@ -0,0 +1,3 @@ +kind: Infrastructure +body: Use Changie to assemble and validate release notes. +time: 2026-11-17T15:07:43.661831-06:00 diff --git a/.changes/v0.7.4.md b/.changes/v0.7.4.md new file mode 100644 index 000000000..1cbcba77b --- /dev/null +++ b/.changes/v0.7.4.md @@ -0,0 +1,9 @@ +## [0.7.4](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v0.7.4) - 2017-11-09 + +### Added +- More efficient uploads by sending SHA1 checksum at the end. + +### Fixed +- File modification times are set correctly when downloading. +- Fix an off-by-one issue when downloading a range of a file (affects library, but not CLI). +- Better handling of some errors from the B2 service. diff --git a/.changes/v1.0.0.md b/.changes/v1.0.0.md new file mode 100644 index 000000000..910c4a285 --- /dev/null +++ b/.changes/v1.0.0.md @@ -0,0 +1,4 @@ +## [1.0.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.0.0) - 2017-11-09 + +### Added +- Require `--allowEmptySource` to sync from empty directory, to help avoid accidental deletion of all files. diff --git a/.changes/v1.1.0.md b/.changes/v1.1.0.md new file mode 100644 index 000000000..4fd7c042e --- /dev/null +++ b/.changes/v1.1.0.md @@ -0,0 +1,7 @@ +## [1.1.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.1.0) - 2017-11-30 + +### Added +- Add support for CORS rules in `create-bucket` and `update-bucket`. `get-bucket` will display CORS rules. + +### Fixed +- cleanup in integration tests works diff --git a/.changes/v1.2.0.md b/.changes/v1.2.0.md new file mode 100644 index 000000000..f95097466 --- /dev/null +++ b/.changes/v1.2.0.md @@ -0,0 +1,14 @@ +## [1.2.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.2.0) - 2018-07-06 + +### Added +- New `--recursive` option for ls +- New `--showSize` option for get-bucket +- New `--excludeDirRegex` option for sync + +### Fixed +- Include LICENSE file in the source tarball. Fixes #433 +- Test suite now runs as root (fixes #427) +- Validate file names before trying to upload +- Fix scaling problems when syncing large numbers of files +- Prefix Windows paths during sync to handle long paths (fixes #265) +- Check if file to be synced is still accessible before syncing (fixes #397) diff --git a/.changes/v1.3.0.md b/.changes/v1.3.0.md new file mode 100644 index 000000000..57b6a2bd2 --- /dev/null +++ b/.changes/v1.3.0.md @@ -0,0 +1,13 @@ +## [1.3.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.3.0) - 2018-07-20 + +### Added +- Support for [application keys](https://www.backblaze.com/b2/docs/application_keys.html). +- Support for Python 3.6 +- Drop support for Python 3.3 (`setuptools` no longer supports 3.3) + +### Changed +- Faster and more complete integration tests + +### Fixed +- Fix content type so markdown displays properly in PyPI +- The testing package is called `test`, not `tests` diff --git a/.changes/v1.3.2.md b/.changes/v1.3.2.md new file mode 100644 index 000000000..9674de327 --- /dev/null +++ b/.changes/v1.3.2.md @@ -0,0 +1,6 @@ +## [1.3.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.3.2) - 2018-07-28 + +### Fixed +- Tests fixed for Python 3.7 +- Add documentation about what capabilities are required for different commands. +- Better error messages for authorization problems with application keys. diff --git a/.changes/v1.3.4.md b/.changes/v1.3.4.md new file mode 100644 index 000000000..2ffe774df --- /dev/null +++ b/.changes/v1.3.4.md @@ -0,0 +1,6 @@ +## [1.3.4](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.3.4) - 2018-08-10 + +### Fixed +- Better documentation for authorize-account command. +- Fix error reporting when using application keys +- Fix auth issues with bucket-restricted application keys. diff --git a/.changes/v1.3.6.md b/.changes/v1.3.6.md new file mode 100644 index 000000000..c4a0bf212 --- /dev/null +++ b/.changes/v1.3.6.md @@ -0,0 +1,6 @@ +## [1.3.6](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.3.6) - 2018-08-21 + +### Fixed +- Fix auto-reauthorize for application keys. +- Fix problem with bash auto-completion module. +- Fix (hopefully) markdown display in PyPI. diff --git a/.changes/v1.3.8.md b/.changes/v1.3.8.md new file mode 100644 index 000000000..6c5506e9f --- /dev/null +++ b/.changes/v1.3.8.md @@ -0,0 +1,8 @@ +## [1.3.8](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.3.8) - 2018-12-06 + +### Added +- New `--excludeAllSymlinks` option for `sync`. +- Faster downloading of large files using multiple threads and bigger buffers. + +### Fixed +- Fixed doc for cancel-all-unfinished-large-files diff --git a/.changes/v1.4.0.md b/.changes/v1.4.0.md new file mode 100644 index 000000000..efeb5590f --- /dev/null +++ b/.changes/v1.4.0.md @@ -0,0 +1,16 @@ +## [1.4.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.4.0) - 2019-04-25 + +### Added +- (b2sdk) Support for python 3.7 + +### Changed +- Renaming accountId for authentication to application key Id + Note: this means account Id is still backwards compatible, + only the terminology has changed. +- Most of the code moved to b2sdk [repository](https://github.com/Backblaze/b2-sdk-python) and [package](https://pypi.org/project/b2sdk/) +- (b2sdk) Fix transferer crashing on empty file download attempt +- (b2sdk) Enable retries of non-transfer operations +- (b2sdk) Enable continuation of download operations + +### Deprecated +- Deprecation warning added for imports of sdk classes from cli package diff --git a/.changes/v1.4.2.md b/.changes/v1.4.2.md new file mode 100644 index 000000000..561d9ec97 --- /dev/null +++ b/.changes/v1.4.2.md @@ -0,0 +1,12 @@ +## [1.4.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v1.4.2) - 2019-10-03 + +### Added +- Add `prefix` parameter to `list-file-names` and `list-file-versions` +- Add support for (server-side) copy-file command + +### Changed +- Make parameters of `list-file-names` and `list-file-versions` optional (use an empty string like this: `""`) +- (b2sdk) Fix sync when used with a key restricted to filename prefix +- When authorizing with application keys, optional application key ID and + application key can be added using environment variables + B2_APPLICATION_KEY_ID and B2_APPLICATION_KEY respectively. diff --git a/.changes/v2.0.0.md b/.changes/v2.0.0.md new file mode 100644 index 000000000..14c9f9f3c --- /dev/null +++ b/.changes/v2.0.0.md @@ -0,0 +1,20 @@ +## [2.0.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.0.0) - 2020-06-25 + +### Added +- Add official support for python 3.8 +- Add `make-friendly-url` command +- Add `--excludeIfModifiedAfter` parameter for `sync` +- Add `--json` parameter to `ls` and `list-buckets` +- Introduce bundled versions of B2 CLI for Linux, Mac OS and Windows + +### Changed +- Switch to b2sdk api version v1: remove output of `delete-bucket` +- Use b2sdk >1.1.0: add large file server-side copy +- Switch option parser to argparse: readthedocs documentation is now generated automatically +- Normalize output indentation level to 4 spaces + +### Removed +- Remove the ability to import b2sdk classes through b2cli (please use b2sdk directly) +- Remove official support for python 3.4 +- Remove `list-file-names` command. Use `ls --recursive --json` instead +- Remove `list-file-versions` command. Use `ls --recursive --json --versions` instead diff --git a/.changes/v2.0.2.md b/.changes/v2.0.2.md new file mode 100644 index 000000000..c8d8c4b22 --- /dev/null +++ b/.changes/v2.0.2.md @@ -0,0 +1,4 @@ +## [2.0.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.0.2) - 2020-07-15 + +### Added +- Add `--environment` internal parameter for `authorize-account` diff --git a/.changes/v2.1.0.md b/.changes/v2.1.0.md new file mode 100644 index 000000000..bb5a0b911 --- /dev/null +++ b/.changes/v2.1.0.md @@ -0,0 +1,17 @@ +## [2.1.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.1.0) - 2020-11-03 + +### Added +- Add support for Python 3.9 +- Add a possibility to append a string to the User-Agent via `B2_USER_AGENT_APPEND` env + +### Changed +- Update `b2 sync` usage text for bucket-to-bucket sync + +### Removed +- Drop Python 2 support :tada: (for old systems you can now use the [binary distribution](https://www.backblaze.com/b2/docs/quick_command_line.html)) +- Remove `--prefix` from `ls` (it didn't really work, use `folderName` argument) +- Clean up legacy code (`CliBucket`, etc.) + +### Fixed +- Fix docs generation in CI +- Correct names of the arguments in `b2 create-key` usage text diff --git a/.changes/v2.2.0.md b/.changes/v2.2.0.md new file mode 100644 index 000000000..9b8767781 --- /dev/null +++ b/.changes/v2.2.0.md @@ -0,0 +1,15 @@ +## [2.2.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.2.0) - 2021-03-15 + +### Added +- Option to automatically authorize account when running commands other than `authorize-account` via + `B2_APPLICATION_KEY_ID` and `B2_APPLICATION_KEY` env vars + +### Changed +- Improve setup and teardown for the integration tests +- Use `setuptools-scm` for versioning +- Improve CLI and RTD descriptions of the commands +- Add upper version limit for arrow dependency, because of a breaking change + +### Fixed +- Fix for the Windows bundled version +- Fix docs autogen diff --git a/.changes/v2.3.0.md b/.changes/v2.3.0.md new file mode 100644 index 000000000..48e1490cb --- /dev/null +++ b/.changes/v2.3.0.md @@ -0,0 +1,8 @@ +## [2.3.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.3.0) - 2021-03-25 + +### Added +- Add support for SSE-B2 server-side encryption mode + +### Fixed +- Pin `setuptools-scm<6.0` as `>=6.0` doesn't support Python 3.5 +- Fix boot speed regression caused by the `rst2ansi` invocations diff --git a/.changes/v2.4.0.md b/.changes/v2.4.0.md new file mode 100644 index 000000000..028cbf2d3 --- /dev/null +++ b/.changes/v2.4.0.md @@ -0,0 +1,8 @@ +## [2.4.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.4.0) - 2021-04-22 + +### Added +- Sign OSX binary +- Add support for SSE-C server-side encryption mode + +### Fixed +- Exclude packages inside the test package when installing diff --git a/.changes/v2.5.0.md b/.changes/v2.5.0.md new file mode 100644 index 000000000..ad46ece87 --- /dev/null +++ b/.changes/v2.5.0.md @@ -0,0 +1,13 @@ +## [2.5.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.5.0) - 2021-05-22 + +### Added +- Add integration test for sync within one bucket with different encryption +- Notarize OSX binary +- File lock arguments and new commands + +### Fixed +- Fixed breaking integration test case +- Add zoneinfo to the Windows bundle +- Fixed unit tests failing on new attributes of FileVersionInfo +- Removing old buckets in integration tests +- Bucket name entropy in tests increased diff --git a/.changes/v2.5.1.md b/.changes/v2.5.1.md new file mode 100644 index 000000000..24bd8559e --- /dev/null +++ b/.changes/v2.5.1.md @@ -0,0 +1,3 @@ +## [2.5.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v2.5.1) - 2021-08-06 + +- `SRC_LAST_MODIFIED_MILLIS` import fix diff --git a/.changes/v3.0.0.md b/.changes/v3.0.0.md new file mode 100644 index 000000000..3fef2ca65 --- /dev/null +++ b/.changes/v3.0.0.md @@ -0,0 +1,31 @@ +## [3.0.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.0.0) - 2021-08-07 + +### Added +- Add possibility to change realm during integration tests +- Add possibility to install SDK from local folder instead of pypi when running tests +- Add full support of establishing file metadata when copying, with either source or target using SSE-C +- Add `--noInfo` option to `copy-file-by-id` +- Integration test for checking if `bad_bucket_id` error code is returned + +### Fixed +- Fix integration tests on non-production environments +- Fix warnings thrown by integration tests +- delete-key unit test adjusted to a less mocked simulator +- Fix integration test cleanup +- Representing encryption-related metadata in buckets and file versions is now consistent + +### Changed +- CLI now uses `b2sdk.v2` +- Downloading files prints file metadata as soon as the download commences (not when it finishes) +- New way of establishing location of the SQLite cache file, using `XDG_CONFIG_HOME` env var +- Downloaded file's metadata is complete and is displayed before the file is downloaded, a `Download finished` message + is issued at the end +- `contentLength` changed to `size` where appropriate +- Log configuration: stack traces are not printed in case of errors by default, `--verbose` changes that +- Log configuration arguments behaviour altered: `--logConfig` is exclusive with `--verbose` and `--debugLogs` +- Log configuration arguments behaviour altered: `--verbose` and `--debugLogs` can be used at the same time + (and they will both be taken into account) + +### Removed +- Support of `--metadataDirective` argument in `copy-file-by-id` (the `metadataDirective` sent to B2 cloud is + detected automatically) diff --git a/.changes/v3.0.1.md b/.changes/v3.0.1.md new file mode 100644 index 000000000..340925a72 --- /dev/null +++ b/.changes/v3.0.1.md @@ -0,0 +1,4 @@ +## [3.0.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.0.1) - 2021-08-09 + +### Fixed +- logs from all loggers (in dependencies too) brought back diff --git a/.changes/v3.0.2.md b/.changes/v3.0.2.md new file mode 100644 index 000000000..f2d6e5ab6 --- /dev/null +++ b/.changes/v3.0.2.md @@ -0,0 +1,8 @@ +## [3.0.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.0.2) - 2021-09-17 + +### Added +- Sign Windows binary + +### Changed +- Download instruction in README.md (wording suggested by https://github.com/philh7456) +- Make Linux binary statically linked diff --git a/.changes/v3.0.3.md b/.changes/v3.0.3.md new file mode 100644 index 000000000..70b0e1cf3 --- /dev/null +++ b/.changes/v3.0.3.md @@ -0,0 +1,5 @@ +## [3.0.3](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.0.3) - 2021-09-27 + +### Fixed +- Fix pypy selector in CI +- Fix for static linking of Linux binary (CD uses python container) diff --git a/.changes/v3.1.0.md b/.changes/v3.1.0.md new file mode 100644 index 000000000..b279e1e0a --- /dev/null +++ b/.changes/v3.1.0.md @@ -0,0 +1,8 @@ +## [3.1.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.1.0) - 2021-11-02 + +### Added +- Add `--allCapabilities` to `create-key` +- Add support for Python 3.10 + +### Fixed +- Fix testing bundle in CI for a new `staticx` version diff --git a/.changes/v3.10.0.md b/.changes/v3.10.0.md new file mode 100644 index 000000000..21430d1b0 --- /dev/null +++ b/.changes/v3.10.0.md @@ -0,0 +1,34 @@ +## [3.10.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.10.0) - 2023-09-10 + +### Added +- Add ability to upload from an unbound source such as standard input or a named pipe +- --bypassGovernance option to delete_file_version +- Declare official support of Python 3.12 +- Cache-Control option when uploading files +- Add `--lifecycleRule` to `create-bucket` and `update-bucket` and deprecate `--lifecycleRules` argument +- Add extra dependencies for better UX, installable with `pip install b2[full]` +- Add s3 endpoint to `get-account-info` + +### Deprecated +- Deprecate support of `-` as a valid filename in `upload-file` command. In the future `-` will always be interpreted as standard input + +### Changed +- Better help text for --corsRules +- if `--threads` is not explicitly set, number of threads is no longer guaranteed to be 10 + +### Infrastructure +- Remove unsupported PyPy 3.7 from tests matrix and add PyPy 3.10 instead +- Autocomplete integration tests will now work properly even if tested package has not been installed +- Automatically set copyright date when generating the docs +- Increase timeout time in autocomplete tests to accommodate slower CI environments +- Update pyinstaller to fix Linux Bundle build +- Replace `pyflakes` with `ruff` for linting +- Make dependency version pinning less restrictive +- Fix tests by making mocks compatible with latest `b2sdk` version +- Fix readthedocs build + +### Fixed +- Fast rm sometimes failing due to a rare race condition +- Fix UnicodeEncodeError in non-Unicode terminals by prioritizing stdout encoding +- When listing licenses in `license` command only show licenses of `b2` and its dependencies +- Fix license command failing on Windows when non-UTF8 encoding is the default diff --git a/.changes/v3.10.1.md b/.changes/v3.10.1.md new file mode 100644 index 000000000..4282500ff --- /dev/null +++ b/.changes/v3.10.1.md @@ -0,0 +1,8 @@ +## [3.10.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.10.1) - 2023-09-27 + +### Fixed +- Fix lifecycle rules being cleared after using `update-bucket` command if not explicitly set again. +- Fix missing key ID for large file encrypted with SSE-C (fixed by `b2sdk` update) + +### Infrastructure +- Fix bad version number generation in CD diff --git a/.changes/v3.11.0.md b/.changes/v3.11.0.md new file mode 100644 index 000000000..f8b8102bf --- /dev/null +++ b/.changes/v3.11.0.md @@ -0,0 +1,11 @@ +## [3.11.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.11.0) - 2023-10-04 + +### Added +- Add `--quiet` option to all commands to suppress all messages printed to stdout & stderr + +### Changed +- Improve `--quiet` and `--profile` options documentation mentions, while suppressing them in `--help` output + +### Infrastructure +- Fix gathering licenses of typeshed libraries +- Fix spellcheck erroring out on LICENSE file diff --git a/.changes/v3.12.0.md b/.changes/v3.12.0.md new file mode 100644 index 000000000..1889be52e --- /dev/null +++ b/.changes/v3.12.0.md @@ -0,0 +1,12 @@ +## [3.12.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.12.0) - 2023-10-28 + +### Added +- docker tests and pushing the official docker image on release + +### Fixed +- `--quiet` now will implicitly set `--noProgress` option as well +- pypy integration tests + +### Infrastructure +- Use stable Python 3.12 in CI +- Fix readthedocs build by updating to v2 configuration schema diff --git a/.changes/v3.13.0.md b/.changes/v3.13.0.md new file mode 100644 index 000000000..d0dc7b39f --- /dev/null +++ b/.changes/v3.13.0.md @@ -0,0 +1,14 @@ +## [3.13.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.13.0) - 2023-11-16 + +### Added +- Add linux/arm64 platform support to the official Docker image +- Add `cat` command for downloading file contents directly to stdout +- Add `-r` as an alias for `--recursive` argument +- Add `-q` as an alias for `--quiet` argument + +### Fixed +- Emit `Using https://api.backblazeb2.com` message to stderr instead of stdout, therefor prevent JSON output corruption + +### Changed +- Stream `ls --json` JSON output instead of dumping it only after all objects have been fetched +- Alias `-` to stdout in `download-file-by-name` or `download-file-by-id` command diff --git a/.changes/v3.13.1.md b/.changes/v3.13.1.md new file mode 100644 index 000000000..eec8240ab --- /dev/null +++ b/.changes/v3.13.1.md @@ -0,0 +1,16 @@ +## [3.13.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.13.1) - 2023-11-21 + + +### Fixed + +- Fix "pip install" by making pyproject.toml viable. ([#952](https://github.com/Backblaze/B2_Command_Line_Tool/issues/952)) + +### Doc + +- Fix `docker run` example in README.md + +### Infrastructure + +- Towncrier changelog generation - to avoid conflicts when simultaneously working on PRs +- fix towncrier generated changelog to work with mindsers/changelog-reader-action + diff --git a/.changes/v3.14.0.md b/.changes/v3.14.0.md new file mode 100644 index 000000000..38b80e269 --- /dev/null +++ b/.changes/v3.14.0.md @@ -0,0 +1,42 @@ +## [3.14.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.14.0) - 2023-12-06 + + +### Changed + +- Update b2sdk to 1.28.0 (resolves [#958](https://github.com/Backblaze/B2_Command_Line_Tool/issues/958), [#934](https://github.com/Backblaze/B2_Command_Line_Tool/issues/934)). + +### Fixed + +- Don't print `Using https://REALM" in stderr unless explicitly set by user. ([#949](https://github.com/Backblaze/B2_Command_Line_Tool/issues/949)) +- Added autocomplete suggestion caching to improve autocomplete performance. +- Do not include build cache in official `b2` docker image. +- Fix an error that caused multiprocessing semaphores to leak on OSX. + +### Deprecated + +- Deprecated `download-file-by-id` and `download-file-by-name`, use `download-file` instead. + Deprecated `get-file-info`, use `file-info` instead. + Deprecated `make-url` and `make-friendly-url`, use `get-url` instead. + +### Added + +- Add `--expires`, `--content-disposition`, `--content-encoding`, `--content-language` options to subcommands `upload-file`, `upload-unbound-stream`, `copy-file-by-id`. +- Add `download-file`, `file-info` and `get-url` commands using new B2 URI syntax allowing for referring to file-like objects by their bucket&name or ID. + +### Doc + +- Add `cat` command to documentation. +- Add additional linebreaks to ensure lists are properly rendered. + +### Infrastructure + +- Ensure CI checks Python package compatibility with latest setuptools. ([#952](https://github.com/Backblaze/B2_Command_Line_Tool/issues/952)) +- Allow skipping changelog for PRs marked with `-changelog` label. +- Changelog entries are now validated as a part of CI pipeline. +- Disable dependabot requests for updates unrelated to security issues. +- Fix CI badge not showing correct status in README. +- Remove unused exception class and outdated todo. +- Skip draft step in releases - all successful releases are public. +- Update license text generation dependencies to prevent triggering security scan false-positives. +- Use cpython 3.12 (not 3.11) for integration tests with secrets. + diff --git a/.changes/v3.15.0.md b/.changes/v3.15.0.md new file mode 100644 index 000000000..ee5aabe78 --- /dev/null +++ b/.changes/v3.15.0.md @@ -0,0 +1,15 @@ +## [3.15.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.15.0) - 2023-12-07 + + +### Changed + +- Use Python 3.12 in the official `b2` Docker image. + +### Fixed + +- Loosen platformdirs dependency version specifier. + +### Added + +- Whenever target filename is a directory, file is downloaded into that directory. + diff --git a/.changes/v3.16.0.md b/.changes/v3.16.0.md new file mode 100644 index 000000000..88ac92012 --- /dev/null +++ b/.changes/v3.16.0.md @@ -0,0 +1,30 @@ +## [3.16.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.16.0) - 2024-02-19 + + +### Changed + +- All internal Python modules were moved to the `b2._internal` package to further discourage users from importing them. +- Change `ls` and `rm` commands to use the `b2://` URI scheme in the pre-release `_b2v4` command. + +### Fixed + +- Fix `--minPartSize` not supporting values above 100MB. +- Fix a bug where `rm bucketName folderName` command without the `--recursive` flag would + remove a first file from every subdirectory inside `folderName`. +- Fix handling of `?` and `#` in B2 URI. + +### Added + +- ApiVer introduced. `b2` executable points to the latest stable ApiVer version, while + `b2v3` will always point to v3 ApiVer release of `b2` CLI. +- Add `--include` and `--exclude` filters to the `ls` and `rm` commands. +- Add support for deleting a single file by `b2id://` URI in the pre-release `_b2v4` command. +- Print account info if `b2 authorize-account` is successful using the same format as `b2 get-account-info`. +- Print output file path in `download-file` command. + +### Infrastructure + +- Fix CI failing on `mkdir` when testing docker image. +- Use pdm for building, testing and managing dependencies. +- Remove unnecessary files (continuous integration scripts, tests) from sdist tarball. + diff --git a/.changes/v3.16.1.md b/.changes/v3.16.1.md new file mode 100644 index 000000000..40f6c3f32 --- /dev/null +++ b/.changes/v3.16.1.md @@ -0,0 +1,7 @@ +## [3.16.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.16.1) - 2024-02-26 + + +### Fixed + +- Fix `--threads` option being silently ignored in upload commands. + diff --git a/.changes/v3.17.0.md b/.changes/v3.17.0.md new file mode 100644 index 000000000..53eb523a6 --- /dev/null +++ b/.changes/v3.17.0.md @@ -0,0 +1,12 @@ +## [3.17.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.17.0) - 2024-03-15 + + +### Fixed + +- Control character escaping is now enabled by default if running in a terminal for improved security. + +### Added + +- Added `--escape-control-characters` and `--no-escape-control-characters` flags, + as well as `B2_ESCAPE_CONTROL_CHARACTERS` env var to explicitly enable or disable control character escaping. + diff --git a/.changes/v3.18.0.md b/.changes/v3.18.0.md new file mode 100644 index 000000000..41be82846 --- /dev/null +++ b/.changes/v3.18.0.md @@ -0,0 +1,26 @@ +## [3.18.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.18.0) - 2024-04-02 + + +### Changed + +- Change all `_b2v4 --camelCase` CLI flags to --kebab-case. + Add deprecation warning for `b2v3 --camelCase` CLI flags. + +### Fixed + +- Don't persist credentials provided in the Environment variables in any command other than `authorize-account` when using `b2v4`. +- Fix `b2 --help` showing full binary path instead of just basename. + +### Added + +- Add autocomplete support for `zsh` and `fish` shells. +- Add support for calling `b2 ls` without arguments to list all buckets. + +### Infrastructure + +- Add dockerhub description deployment to CD workflow. +- Add support for pre-releases in CD. +- Fix missing command output when running `nox` under CI. +- Increase verbosity when running tests under CI. +- Update to [GitHub Actions using Node 20](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/). + diff --git a/.changes/v3.19.0.md b/.changes/v3.19.0.md new file mode 100644 index 000000000..99b732e0d --- /dev/null +++ b/.changes/v3.19.0.md @@ -0,0 +1,8 @@ +## [3.19.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.19.0) - 2024-04-15 + + +### Added + +- Add `notification-rules` commands for manipulating Bucket notification rules as part of Event Notifications feature Private Preview. + See https://www.backblaze.com/blog/announcing-event-notifications/ for details. + diff --git a/.changes/v3.19.1.md b/.changes/v3.19.1.md new file mode 100644 index 000000000..04992133f --- /dev/null +++ b/.changes/v3.19.1.md @@ -0,0 +1,7 @@ +## [3.19.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.19.1) - 2024-04-23 + + +### Fixed + +- Fix `create-key --all-capabilities` error when using `b2sdk>=2.1`. + diff --git a/.changes/v3.2.0.md b/.changes/v3.2.0.md new file mode 100644 index 000000000..4e8a4ede7 --- /dev/null +++ b/.changes/v3.2.0.md @@ -0,0 +1,9 @@ +## [3.2.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.2.0) - 2021-12-23 + +### Added +- Add compatibility support for arrow >= 1.0.2 on newer Python versions while + continuing to support Python 3.5 + +### Fixed +- Fallback to `ascii` decoder when printing help in case the locales are not properly set +- Apply the value of `--threads` parameter to `sync` downloader threads diff --git a/.changes/v3.2.1.md b/.changes/v3.2.1.md new file mode 100644 index 000000000..1d6691762 --- /dev/null +++ b/.changes/v3.2.1.md @@ -0,0 +1,4 @@ +## [3.2.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.2.1) - 2022-02-23 + +### Fixed +- Fix setting permissions for local sqlite database (thanks to Jan Schejbal for responsible disclosure!) diff --git a/.changes/v3.3.0.md b/.changes/v3.3.0.md new file mode 100644 index 000000000..74c444c1a --- /dev/null +++ b/.changes/v3.3.0.md @@ -0,0 +1,18 @@ +## [3.3.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.3.0) - 2022-04-20 + +### Added +- Add `--threads` parameter to `download-file-by-name` and `download-file-by-id` +- Add `--uploadThreads` and `--downloadThreads` parameters to `sync` +- Add `--profile` switch support +- Add `applicationKeyId` and `isMasterKey` to the output of `get-account-info` + +### Changed +- Rename `--threads` parameter for `--sync` to `--syncThreads` + +### Fixed +- Fix license header checker on Windows +- Fix `UnicodeEncodeError` after successful SSE-C download on a non-utf8 terminal (#786) + +### Removed +- Remove official support for python 3.5 +- Remove official support for python 3.6 diff --git a/.changes/v3.4.0.md b/.changes/v3.4.0.md new file mode 100644 index 000000000..fccfb3535 --- /dev/null +++ b/.changes/v3.4.0.md @@ -0,0 +1,18 @@ +## [3.4.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.4.0) - 2022-05-04 + +This release contains a preview of replication support. It allows for basic usage +of B2 replication feature (currently in closed beta). Until this notice is removed, +the interface of replication related functionality should be not considered as public +API (as defined by SemVer). +This version is pinned strictly to `b2-sdk-python==1.16.0` for the same reason. + +### Added +- Add basic replication support to `create-bucket` and `update-bucket` +- Add more fields to `get-account-info` json +- Add `--replication` to `ls --long` +- Add `replication-setup` command +- Add "quick start guide" to documentation + +### Changed +- Made `bucketType` positional argument to `update-bucket` optional +- Run unit tests on all CPUs diff --git a/.changes/v3.5.0.md b/.changes/v3.5.0.md new file mode 100644 index 000000000..23ffc3b2a --- /dev/null +++ b/.changes/v3.5.0.md @@ -0,0 +1,20 @@ +## [3.5.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.5.0) - 2022-07-27 + +As in 3.4.0, replication support may be unstable, however no backward-incompatible +changes are currently planned. +This version is pinned strictly to `b2-sdk-python==1.17.3` for the same reason. + +### Added +- Add `--write-buffer-size` parameter +- Add `--skip-hash-verification` parameter + +### Changed +- Minimum MacOS version from 10.15 to 11.0 + +### Infrastructure +- Try not to crash tests due to bucket name collision +- Fix replication integration tests +- Fix leaking buckets in integration tests +- Limit number of workers for integration tests to 1 for now +- Make integration tests remove buckets only based on name, not based on creation time +- Add dependabot configuration diff --git a/.changes/v3.6.0.md b/.changes/v3.6.0.md new file mode 100644 index 000000000..420d286e4 --- /dev/null +++ b/.changes/v3.6.0.md @@ -0,0 +1,18 @@ +## [3.6.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.6.0) - 2022-09-20 + +### Added +- Add `replication-delete` command +- Add `replication-pause` command +- Add `replication-status` command +- Add `replication-unpause` command +- Add `--include-existing-files` to `replication-setup` +- Add `--max-streams` parameter to download commands +- Add `--fileLockEnabled` switch to `update-bucket` subcommand + +### Fixed +- Fix `replication-setup` default priority setter + +### Infrastructure +- Fix warnings in tests +- Fix `test_keys` unit test after changes in b2sdk +- Fix running tests on the CI with the latest SDK from the master branch diff --git a/.changes/v3.7.0.md b/.changes/v3.7.0.md new file mode 100644 index 000000000..85740d6dd --- /dev/null +++ b/.changes/v3.7.0.md @@ -0,0 +1,21 @@ +## [3.7.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.7.0) - 2023-02-07 + +### Added +- Add `--incrementalMode` to `sync` and `upload-file` +- Add `license` command for printing licenses of b2 and libraries +- Add wildcard support for the `ls` command +- Add `rm` command + +### Fixed +- Stop using b2sdk.v1 in arg_parser.py +- Fix issues when running commands on Python 3.11 +- Fix tests after changes introduced in b2sdk 1.19.0 +- `rm` can handle any number of files + +### Infrastructure +- GitHub CI got checkout action updated to v3 and setup-python to v4 +- Ensured that changelog validation only happens on pull requests +- GitHub CI uses GITHUB_OUTPUT instead of deprecated set-output +- Releases now feature digests of each file +- Change default Python version in CI/CD to 3.11 +- Temporary marking all directories as `safe.directory` inside CI/CD when bundling diff --git a/.changes/v3.7.1.md b/.changes/v3.7.1.md new file mode 100644 index 000000000..76113a567 --- /dev/null +++ b/.changes/v3.7.1.md @@ -0,0 +1,9 @@ +## [3.7.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.7.1) - 2023-02-08 + +### Fixed +- Remove unnecessary printing options from `rm` +- Clarify that `--recursive` is required when `--withWildcard` is used +- Adjust description of `rm` + +### Infrastructure +- Remove macos stand-alone binary from CI/CD diff --git a/.changes/v3.8.0.md b/.changes/v3.8.0.md new file mode 100644 index 000000000..536e3d083 --- /dev/null +++ b/.changes/v3.8.0.md @@ -0,0 +1,11 @@ +## [3.8.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.8.0) - 2023-03-23 + +### Added +- Add `install-autocomplete` command for installing shell autocompletion (currently only `bash` is supported) + +### Fixed +- Hitting the download endpoint twice in some cases + +### Infrastructure +- GitHub CD builds and uploads an official B2 CLI image to docker hub +- Disable changelog verification for dependabot PRs diff --git a/.changes/v3.9.0.md b/.changes/v3.9.0.md new file mode 100644 index 000000000..e61ef685a --- /dev/null +++ b/.changes/v3.9.0.md @@ -0,0 +1,8 @@ +## [3.9.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.9.0) - 2023-04-28 + +### Added +- Support for custom file upload timestamp + +### Infrastructure +- Limit GitHub CI workload by running most integration tests only against edge versions of supported Python versions +- Add a direct dependency from tqdm diff --git a/.changes/v4.0.0.md b/.changes/v4.0.0.md new file mode 100644 index 000000000..3019ed4c7 --- /dev/null +++ b/.changes/v4.0.0.md @@ -0,0 +1,45 @@ +## [4.0.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.0.0) - 2024-05-13 + + +### Changed + +- CLI `b2` executable now points to the latest stable ApiVer version, `b2v4`, previously it pointed to `b2v3`. + These means following breaking changes: + - `b2` will no longer persists credentials and other secrets on disk if credentials were passed through `B2_*` environment variables. To explicitly persist them and keep using local cache for better performance, user can simply call `b2 account account` + - `b2 ls` and `b2 rm` no longer accept two positional arguments, instead accepting only `B2 URI` (e.g. `b2://bucketName/path`) + - `-` is no longer supported as a valid filename, always being interpreted as standard input alias instead +- Changed `sync` command exit status code from 0 to 1 if any warnings or errors were encountered during the operation. + +### Fixed + +- Invalid unicode characters read from filesystem will no longer interrupt `b2 sync` + +### Deprecated + +- Deprecated `authorize-account`, `get-account-info` and `clear-account`, use `account {authorize|get|clear}` instead. +- Deprecated `delete-file-version`, use `rm` instead. Added `--bypass-governance` option to `rm`. +- Deprecated `file-info`, `get-url`, `cat`, `upload-file`, `download-file`, `copy-file-by-id`, `hide-file`, `update-file-legal-hold` and `update-file-retention`, use `file {info|url|cat|upload|download|copy-by-id|hide|update}` instead. +- Deprecated `get-download-url-with-auth`, use `file url` instead. Added `--with-auth` and `--duration` options to `file url`. +- Deprecated `list-buckets`, `get-bucket`, `create-bucket`, `update-bucket`, `delete-bucket`, `get-download-auth` and `notification-rules`, use `bucket {list|get|create|update|delete|get-download-auth|notification-rule}` instead. +- Deprecated `list-keys`, `create-key` and `delete-key`, use `key {list|create|delete}` instead. +- Deprecated `list-parts`, use `file large parts` instead. + Deprecated `list-unfinished-large-files`, use `file large unfinished list` instead. + Deprecated `cancel-large-file` amd `cancel-all-unfinished-large-files`, use `file large unfinished cancel` instead. +- Deprecated `replication-{setup|delete|pause|unpause|status}`, use `replication {setup|delete|pause|unpause|status}` instead. + +### Added + +- Add `account {authorize|get|clear}` commands. +- Add `bucket {list|get|create|update|delete|get-download-auth|notification-rule}` commands. +- Add `file large {parts|unfinished list|unfinished cancel}` commands. +- Add `file {info|url|cat|upload|download|copy-by-id|hide|update}` commands. +- Add `key {list|create|delete}` commands. +- Add `replication {setup|delete|pause|unpause|status}` commands. +- Allow `b2v3` to be run in official Docker image without the need to change entrypoint. + +### Doc + +- Automate nested subcommand documentation generation. +- Display short descriptions instead of arguments in subcommands help messages. +- Sort subcommands in `--help` alphabetically for better readability. + diff --git a/.changes/v4.0.1.md b/.changes/v4.0.1.md new file mode 100644 index 000000000..2a013954e --- /dev/null +++ b/.changes/v4.0.1.md @@ -0,0 +1,9 @@ +## [4.0.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.0.1) - 2024-05-15 + + +### Fixed + +- Fix `-` handling in file upload commands - even if file with `-` name exists, the stdin will be chosen over it. + This change affects `b2v4` (which is also aliased as `b2`), but not `b2v3` to keep backwards compatibility. +- Fix `b2 ls b2://bucketName/fileName` and `b2 rm b2://bucketName/fileName` to respectively, list and remove file identified by supplied B2 URI. + diff --git a/.changes/v4.0.2.md b/.changes/v4.0.2.md new file mode 100644 index 000000000..88062c34b --- /dev/null +++ b/.changes/v4.0.2.md @@ -0,0 +1,15 @@ +## [4.0.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.0.2) - 2024-06-17 + + +### Fixed + +- Fix `--lifecycle-rule` validation on `python<3.10`. +- Update required `b2sdk` to `2.4.0` which includes following fixes: + - Move scan filters before a read on filesystem access attempt. + - Fix & improve Lifecycle Rule validation. + - Don't retry on `NoPaymentHistory` exception. + +### Doc + +- Add `--lifecycle-rule` example to CLI `--help` and documentation. ([#432](https://github.com/Backblaze/B2_Command_Line_Tool/issues/432)) + diff --git a/.changes/v4.0.3.md b/.changes/v4.0.3.md new file mode 100644 index 000000000..15a17ef6e --- /dev/null +++ b/.changes/v4.0.3.md @@ -0,0 +1,8 @@ +## [4.0.3](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.0.3) - 2024-06-19 + + +### Fixed + +- Fix `sync` reuploading files on re-run despite no changes in the source. + Fixed by updating `b2sdk` to `2.4.1`. + diff --git a/.changes/v4.1.0.md b/.changes/v4.1.0.md new file mode 100644 index 000000000..b50cbfdd4 --- /dev/null +++ b/.changes/v4.1.0.md @@ -0,0 +1,12 @@ +## [4.1.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.1.0) - 2024-07-31 + + +### Fixed + +- Update `b2sdk` to 2.5.0, to fix `TruncatedOutput` download errors when network is congested (e.g., due use of high downloader thread count). ([#554](https://github.com/Backblaze/B2_Command_Line_Tool/issues/554)) + +### Added + +- Add `b2 file unhide` command. +- Support both new `b2_uri` and deprecated `bucket_name file_name` arguments in `b2 file hide`. + diff --git a/.changes/v4.2.0.md b/.changes/v4.2.0.md new file mode 100644 index 000000000..d5de19467 --- /dev/null +++ b/.changes/v4.2.0.md @@ -0,0 +1,29 @@ +## [4.2.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.2.0) - 2024-10-29 + + +### Changed + +- Remove Python 3.7 support in new releases. + Under Python 3.7 `pip` will keep resolving the latest version of the package that supports active interpreter. + This change comes at benefit of using newer versions of B2 CLI dependencies in `b2` standalone binary as well as in the official docker image. + Python 3.8 is now the minimum supported version, [until it reaches EOL in October 2024](https://devguide.python.org/versions/). + We encourage use of latest stable Python release. + If Python interpreter upgrade from 3.7 is not an option, please use provided standalone binaries or official docker image. + +### Fixed + +- Update to b2sdk 2.5.1 to fix `b2 sync` stopping when encountering inaccessible directory. ([#1040](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1040)) +- Fix `b2 file hide b2://bucket/file` handling and test coverage. +- Fix `getdefaultlocale` deprecation warning on Python 3.11+. + +### Added + +- Add `b2 file server-side-copy b2id://XXX` (also accepts `b2://bucket/objectName` syntax). + Add deprecation notice to `b2 file copy-by-id` - use `b2 file server-side-copy` instead in new scripts. +- Declare official support for Python 3.13 in `b2` CLI. + Test `b2` CLI against Python 3.13 in CI. + +### Infrastructure + +- Integration tests now use reuse test buckets whenever possible to speed up test execution and prevent bucket limit exhaustion. + diff --git a/.changes/v4.3.0.md b/.changes/v4.3.0.md new file mode 100644 index 000000000..e40e5581f --- /dev/null +++ b/.changes/v4.3.0.md @@ -0,0 +1,20 @@ +## [4.3.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.3.0) - 2025-01-07 + + +### Fixed + +- Fix shell autocompletion for Python >=3.12.8 and >=3.13.1. +- Update to b2sdk 2.7.0 to fix integration tests on Windows. + +### Added + +- Add `--exclude-if-uploaded-after` to `sync`. +- Add `-l` as an alias for `--long` argument. + +### Infrastructure + +- Fix event notification tests when introducing new keys in API outputs. +- Remove yapf in favor of ruff. +- Upgraded to pytest 8. +- Use SHA384 for Windows signing instead of expired SHA256withRSA. + diff --git a/.changes/v4.3.1.md b/.changes/v4.3.1.md new file mode 100644 index 000000000..7693bbc9b --- /dev/null +++ b/.changes/v4.3.1.md @@ -0,0 +1,12 @@ +## [4.3.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.3.1) - 2025-02-22 + + +### Fixed + +- Avoid failing on BrokenPipeError when running commands. ([#1071](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1071)) +- Display error message when trying to use `--with-auth` param for `b2id://` urls in the `file url` command. + +### Infrastructure + +- Deleting used files by integration tests right away. + diff --git a/.changes/v4.3.2.md b/.changes/v4.3.2.md new file mode 100644 index 000000000..8c8ac70fe --- /dev/null +++ b/.changes/v4.3.2.md @@ -0,0 +1,13 @@ +## [4.3.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.3.2) - 2025-04-24 + + +### Fixed + +- Bump `b2sdk` to `v2.8.1` to fix TimeoutError handling. + +### Infrastructure + +- Capture stdout in integration tests. +- Improve error messaging in autocomplete integration tests. +- Increase terminal size window in autocomplete integration tests. + diff --git a/.changes/v4.3.3.md b/.changes/v4.3.3.md new file mode 100644 index 000000000..1556af4d4 --- /dev/null +++ b/.changes/v4.3.3.md @@ -0,0 +1,11 @@ +## [4.3.3](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.3.3) - 2025-06-04 + + +### Fixed + +- Fix autocomplete install for `zsh`. ([#1086](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1086)) + +### Added + +- Suggest running `b2 bucket list` on `NonExistentBucket` errors. + diff --git a/.changes/v4.4.0.md b/.changes/v4.4.0.md new file mode 100644 index 000000000..1b0215e12 --- /dev/null +++ b/.changes/v4.4.0.md @@ -0,0 +1,20 @@ +## [4.4.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.4.0) - 2025-07-30 + + +### Changed + +- Migrate to b2sdk.v3. +- Switched to cloud-based signing using DigiCert KeyLocker. + +### Added + +- Add multi-bucket keys support to the `key create` subcommand. ([#1083](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1083)) +- Support multi-bucket keys in `key list` subcommand. + +### Infrastructure + +- Replace backoff with tenacity for handling retries in tests. ([#1088](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1088)) +- Fix flaky integration test for multi-bucket key restrictions. +- Redesign console tools tests using b2sdk.v1 to use b2sdk.v3. +- Replace deprecated windows-2019 ci runner image with windows-2025. + diff --git a/.changes/v4.4.1.md b/.changes/v4.4.1.md new file mode 100644 index 000000000..82693bf80 --- /dev/null +++ b/.changes/v4.4.1.md @@ -0,0 +1,7 @@ +## [4.4.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.4.1) - 2025-07-30 + + +### Fixed + +- Pin `docutils` version to avoid breaking the dependent `rst2ansi` library. ([#1101](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1101)) + diff --git a/.changes/v4.4.2.md b/.changes/v4.4.2.md new file mode 100644 index 000000000..795d95ea3 --- /dev/null +++ b/.changes/v4.4.2.md @@ -0,0 +1,15 @@ +## [4.4.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.4.2) - 2025-09-10 + + +### Fixed + +- Handle filenames starting with / or ending with # or ?. ([#1090](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1090)) +- Avoid failing on missing extra dependencies in `b2 license` command. ([#1106](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1106)) +- Fix `b2id://` uri support in `file unhide` command. ([#1114](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1114)) + +### Infrastructure + +- Prepare Linux binary for ARM. ([#1099](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1099)) +- Address duplicate bucket names issue in integration tests by redesigning the seed generation mechanism. +- Bump pypa/gh-action-pypi-publish from 1.3.1 to 1.13.0 in /.github/workflows. + diff --git a/.changes/v4.5.0.md b/.changes/v4.5.0.md new file mode 100644 index 000000000..6e1c9e616 --- /dev/null +++ b/.changes/v4.5.0.md @@ -0,0 +1,18 @@ +## [4.5.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.5.0) - 2026-01-08 + + +### Removed + +- Dropped support for python 3.8. + +### Fixed + +- Fixed SystemError buffer overflow crash on Python 3.14+ caused by rst2ansi's terminal size detection bug. The CLI now gracefully handles this error and continues to function normally. ([#1119](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1119)) +- Disable Tqdm semaphore leak workaround for MacOS >= 15.7.2, as apparently it is no longer an issue in newer versions. + +### Infrastructure + +- Added Python 3.14 support to CI/CD pipeline and test matrix. +- Update CI to not use deprecated `macos-13` runner. +- Use b2sdk pytest plugin and utilities in tests. + diff --git a/.changes/v4.5.1.md b/.changes/v4.5.1.md new file mode 100644 index 000000000..c4ef9c5ce --- /dev/null +++ b/.changes/v4.5.1.md @@ -0,0 +1,15 @@ +## [4.5.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.5.1) - 2026-01-27 + + +### Changed + +- Replace the `phx-class-registry` dependency with a simple in-house implementation. ([#1081](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1081)) + +### Fixed + +- Avoid eager calculation of command help during parser construction. + +### Infrastructure + +- Fix flaky autocomplete integration test. + diff --git a/.changes/v4.6.0.md b/.changes/v4.6.0.md new file mode 100644 index 000000000..5ae55d672 --- /dev/null +++ b/.changes/v4.6.0.md @@ -0,0 +1,16 @@ +## [4.6.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.6.0) - 2026-02-25 + + +### Changed + +- Update the ``version`` command to display the installed ``b2sdk`` version alongside the CLI version. + +### Fixed + +- Bump b2sdk version to 2.10.3 (resolves [#1045](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1045), [#1118](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1118)). +- Fixed autocomplete parser cache on Python 3.14.2+ by clearing argparse's cached validation formatter before pickling the parser. This avoids failures caused by non-picklable color formatting lambdas stored in the cached formatter. + +### Doc + +- Improve command-line options formatting in CLI help text. + diff --git a/.changes/v4.7.0.md b/.changes/v4.7.0.md new file mode 100644 index 000000000..cf730efc4 --- /dev/null +++ b/.changes/v4.7.0.md @@ -0,0 +1,20 @@ +## [4.7.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.7.0) - 2026-05-05 + + +### Removed + +- Drop support for Python 3.9 and PyPy 3.9. + +### Fixed + +- Reject unsafe remote filenames in the Download command. + +### Infrastructure + +- Bump PyInstaller version and remove obsolete hidden imports from the PyInstaller spec file. +- Bump pytest and other test dependencies versions. +- Bump sdk version to v2.12.0. +- Fix tests with pytest 9.0. +- Migrate from pdm to uv. +- Rewrite the test case verifying non-UTF-8 help rendering, replacing subtests with parametrization, cover nested commands. + diff --git a/.changes/v4.7.1.md b/.changes/v4.7.1.md new file mode 100644 index 000000000..2c8b45e7f --- /dev/null +++ b/.changes/v4.7.1.md @@ -0,0 +1,11 @@ +## [4.7.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.7.1) - 2026-06-08 + + +### Fixed + +- Fix `b2://` URI parsing to accept bucket names containing periods. + +### Infrastructure + +- Bump urllib3 from 2.6.3 to 2.7.0. + diff --git a/.changes/v4.8.0.md b/.changes/v4.8.0.md new file mode 100644 index 000000000..ce0d3bb7d --- /dev/null +++ b/.changes/v4.8.0.md @@ -0,0 +1,12 @@ +## [4.8.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v4.8.0) - 2026-09-14 + + +### Removed + +- B2 now applies SSE-B2 (AES256) as the default server-side encryption to every bucket and no longer accepts `none`. `--default-server-side-encryption none` on `bucket create` and `bucket update` now fails with a message explaining that the option should be omitted. Omitting the option uses the server default. + +### Infrastructure + +- Fix Read the Docs builds by migrating the config from the removed pdm setup to `uv sync`. +- Skip changelog requirement for PRs that only modify `uv.lock`. + diff --git a/.changes/v5.0.0.md b/.changes/v5.0.0.md new file mode 100644 index 000000000..ef280cd70 --- /dev/null +++ b/.changes/v5.0.0.md @@ -0,0 +1,7 @@ +## [5.0.0](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v5.0.0) - 2026-09-14 + + +### Changed + +- The `b2` command now runs CLI v5, which no longer offers `none` for `--default-server-side-encryption`; the version-bound `b2v5` command is available alongside `b2v3` and `b2v4`. + diff --git a/.changes/v5.0.1.md b/.changes/v5.0.1.md new file mode 100644 index 000000000..8ff745efe --- /dev/null +++ b/.changes/v5.0.1.md @@ -0,0 +1,21 @@ +## [5.0.1](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v5.0.1) - 2026-10-21 + + +### Fixed + +- Reject `--incremental-mode` on unbound/streamed sources instead of silently performing a full upload; `b2 file upload` now fails with a clear error and a non-zero exit code. ([#1164](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1164)) +- Require b2sdk 2.13.2, certifi 2026.10.19, pip 26.2.2, and uv 0.13.4 or newer to address the eMudhra / emSign CA certificate incident. Update CI and container builds to use the patched tools and refresh container system certificates. + +### Doc + +- Document the ``B2_ENVIRONMENT`` authorization-realm environment variable. ([#1162](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1162)) + +### Infrastructure + +- Expose a version-matched customer-health contract for centralized sdkharness execution against its loopback simulator. ([#1166](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1166)) +- Add a repository-owned sdkharness conformance contract for the files.upload scenario. ([#1168](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1168)) +- Add repository-owned sdkharness conformance contracts for listing, metadata, downloading, hiding, and deleting file versions. ([#1170](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1170)) +- Set the persistent integration-test bucket's SSE-B2 default explicitly so encryption-inheritance tests do not depend on the bucket's age. ([#1184](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1184)) +- Allow the intended custom-realm `Using ` notice in integration-test stderr assertions; every other stderr line still fails. +- Restored three assertions that the repository-owned sdkharness resilience and conformance checks had dropped when they were moved into this repository (the upload response's contentSha1, the stored versions' contentSha1 after a reset-before-response, and that the hide marker is the newest version), plus the parallel-download streams flag, and added a README for running one check locally. This also records, for the repository-owned conformance and resilience migration merged in #1171-#1177 without individual fragments, that those checks now live in `.sdkharness/`. + diff --git a/.changes/v5.0.2.md b/.changes/v5.0.2.md new file mode 100644 index 000000000..0f0a44ea4 --- /dev/null +++ b/.changes/v5.0.2.md @@ -0,0 +1,11 @@ +## [5.0.2](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v5.0.2) - 2026-10-23 + + +### Fixed + +- Require b2sdk 2.13.2, certifi 2026.10.19, pip 26.2.2, and uv 0.13.4 or newer to address the eMudhra / emSign CA certificate incident. Update CI and container builds to use the patched tools and refresh container system certificates. + +### Infrastructure + +- Retag the staticx wheel built on Linux aarch64 as `manylinux2014_aarch64`, because uv 0.9.16 and newer reject its `manylinux1_aarch64` tag, which blocked building the aarch64 standalone executables. + diff --git a/.changes/v5.0.3.md b/.changes/v5.0.3.md new file mode 100644 index 000000000..63b86d586 --- /dev/null +++ b/.changes/v5.0.3.md @@ -0,0 +1,14 @@ +## [5.0.3](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v5.0.3) - 2026-11-12 + +### Fixed + +- On POSIX, `--debug-logs` creates or reopens `b2_cli.log` with owner-only permissions (0600) when `O_NOFOLLOW`, `O_NONBLOCK`, and `fchmod` are available. The command exits if a required control is unavailable, the log path is a symlink, has multiple hard links, or is a non-regular file, the file is owned by another user, or an existing file cannot be secured. +- The `bucket notification-rule create` and `bucket notification-rule update` commands no longer log signing secrets or custom header values in command arguments or SDK call traces. The `bucket notification-rule delete` command also suppresses these values in SDK call traces. +- The `bucket notification-rule create` and `bucket notification-rule update` commands no longer echo invalid `--sign-secret` values in validation errors. + +### Infrastructure + +- Updated development tooling dependencies to incorporate compatible security fixes. ([#1201](https://github.com/Backblaze/B2_Command_Line_Tool/issues/1201)) +- Make the `.sdkharness` `files.list` conformance check upload a nested name, so a client that ignores `ls --recursive` fails it. +- Make the `.sdkharness` `upload.stall` recovery check run: it stalls the upload for 130 s, longer than the 128 s upload timeout of b2sdk, instead of reporting that no client option can shorten it. + diff --git a/.changie.yaml b/.changie.yaml new file mode 100644 index 000000000..626464035 --- /dev/null +++ b/.changie.yaml @@ -0,0 +1,29 @@ +changesDir: .changes +unreleasedDir: unreleased +headerPath: header.tpl.md +changelogPath: CHANGELOG.md +versionExt: md +versionFormat: '## [{{.VersionNoPrefix}}](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/{{.Version}}) - {{.Time.Format "2006-01-02"}}' +kindFormat: '### {{.Kind}}' +changeFormat: '- {{.Body}}' +kinds: + - label: Removed + auto: major + - label: Changed + auto: minor + - label: Fixed + auto: patch + - label: Deprecated + auto: minor + - label: Added + auto: minor + - label: Doc + auto: patch + - label: Infrastructure + auto: patch +newlines: + afterChangelogHeader: 0 + beforeChangelogVersion: 1 + endOfVersion: 1 + afterKind: 1 + beforeKind: 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee60c3309..b1343166c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,9 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ env.PYTHON_DEFAULT_VERSION }} + - uses: actions/setup-go@v6 + with: + go-version: '1.27.1' - uses: astral-sh/setup-uv@v7 with: version: ${{ env.UV_VERSION }} @@ -44,12 +47,12 @@ jobs: exit 0 fi - if [ -z "$(git diff --diff-filter=A --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD -- changelog.d)" ]; then + if [ -z "$(git diff --diff-filter=A --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD -- '.changes/unreleased/*.yaml' '.changes/v*.md')" ]; then echo "No changelog item added." exit 1 fi - name: Changelog validation - run: uv run nox -vs towncrier_check + run: uv run nox -vs changie_check build: timeout-minutes: 30 needs: lint diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cf5ee531..78ad0552e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the changes for the -upcoming release can be found in [changelog.d](changelog.d). - - +This project uses [*Changie*](https://changie.dev/) and the changes for the +upcoming release can be found in [.changes/unreleased](.changes/unreleased). ## [5.0.3](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v5.0.3) - 2026-11-12 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 75402ac08..7d0c82f5e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,32 +26,15 @@ established by reading git tags, i.e. no code or manifest file changes are requi ## Changelog -Each PR needs to have at least one changelog (aka news) item added. This is done by creating files in `changelog.d`. -`towncrier` is used for compiling these files into [CHANGELOG.md](CHANGELOG.md). There are several types of changes -(news): +Each PR needs a changelog entry in [`.changes/unreleased`](.changes/unreleased). Use +[Changie](https://changie.dev/) to create it, for example: -1. fixed -2. changed -3. added -4. deprecated -5. removed -6. infrastructure -7. doc + changie new --kind Fixed --body 'Describe the user-visible fix.' - -The `changelog.d` file name convention is: - -1. If the PR closes a github issue: `{issue_number}.{type}.md` e.g. `157.fixed.md`. Note that the - change description still has to be complete, linking an issue is just there for convenience, a change like - `fixed #157` will not be accepted. -2. If the PR is not related to a github issue: `+{unique_string}.{type}.md` e.g. `+foobar.fixed.md`. - -These files can either be created manually, or using `towncrier` e.g. - - towncrier create -c 'Add proper changelog example to CONTRIBUTING guide' 157.added.md - -`towncrier create` also takes care of duplicates automatically (if there is more than 1 news fragment of one type -for a given github issue). +The configured kinds are Removed, Changed, Fixed, Deprecated, Added, Doc, and Infrastructure. +Write a complete sentence for the entry. For a release, `changie batch vX.Y.Z` assembles the +unreleased entries into `.changes/vX.Y.Z.md`; `changie merge` rebuilds [CHANGELOG.md](CHANGELOG.md). +The existing release history is kept in `.changes/v*.md` so rebuilding the changelog preserves it. ## Developer Info diff --git a/changelog.d/+linux-bundle-distro-python.infrastructure.md b/changelog.d/+linux-bundle-distro-python.infrastructure.md deleted file mode 100644 index 89875cfa8..000000000 --- a/changelog.d/+linux-bundle-distro-python.infrastructure.md +++ /dev/null @@ -1 +0,0 @@ -Build standalone Linux executables with Ubuntu 22.04's system Python 3.10, removing the dependency on the deadsnakes PPA in CI and release builds. diff --git a/changelog.d/.gitkeep b/changelog.d/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/noxfile.py b/noxfile.py index 0a1ba8cb0..70aa6e358 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,6 +29,7 @@ import tomli as tomllib UPSTREAM_REPO_URL = 'git@github.com:Backblaze/B2_Command_Line_Tool.git' +CHANGIE = 'github.com/miniscruff/changie@v1.24.0' CI = os.environ.get('CI') is not None CD = CI and (os.environ.get('CD') is not None) @@ -764,7 +765,7 @@ def build_and_test_docker(session): @nox.session(python=PYTHON_DEFAULT_VERSION) def make_release_commit(session): """ - Runs `towncrier build`, commits changes, tags, all that is left to do is pushing + Batches Changie fragments and assembles the changelog for a release. """ if session.posargs: version = session.posargs[0] @@ -791,8 +792,8 @@ def make_release_commit(session): if current_branch != 'master': session.log('WARNING: releasing from a branch different than master') - uv_install(session, groups=('release',)) - session.run('towncrier', 'build', '--yes', '--version', version) + session.run('go', 'run', CHANGIE, 'batch', f'v{version}', external=True) + session.run('go', 'run', CHANGIE, 'merge', external=True) session.log( f'CHANGELOG updated, changes ready to commit and push\n' @@ -806,119 +807,14 @@ def make_release_commit(session): ) -def load_allowed_change_types( - project_toml: pathlib.Path = pathlib.Path('./pyproject.toml'), -) -> set[str]: - """ - Load the list of allowed change types from the pyproject.toml file. - """ - configuration = tomllib.loads(project_toml.read_text()) - return set(entry['directory'] for entry in configuration['tool']['towncrier']['type']) - - -def is_changelog_filename_valid(filename: str, allowed_change_types: set[str]) -> tuple[bool, str]: - """ - Validates whether the given filename matches our rules. - Provides information about why it doesn't match them. - """ - error_reasons = [] - - wanted_extension = 'md' - try: - description, change_type, extension = filename.rsplit('.', maxsplit=2) - except ValueError: - # Not enough values to unpack. - return False, 'Doesn\'t follow the "..md" pattern.' - - # Check whether the filename ends with .md. - if extension != wanted_extension: - error_reasons.append(f"Doesn't end with {wanted_extension} extension.") - - # Check whether the change type is valid. - if change_type not in allowed_change_types: - error_reasons.append( - f"Change type '{change_type}' doesn't match allowed types: {allowed_change_types}." - ) - - # Check whether the description makes sense. - try: - int(description) - except ValueError: - if description[0] != '+': - error_reasons.append("Doesn't start with a number nor a plus sign.") - - return len(error_reasons) == 0, ' / '.join(error_reasons) if error_reasons else '' - - -def is_changelog_entry_valid(file_content: str) -> tuple[bool, str]: - """ - We expect the changelog entry to be a valid sentence in the English language. - This includes, but not limits to, providing a capital letter at the start - and the full-stop character at the end. - - Note: to do this "properly", tools like `nltk` and `spacy` should be used. - """ - error_reasons = [] - - # Check whether the first character is a capital letter. - # Not allowing special characters nor numbers at the very start. - if not file_content[0].isalpha() or not file_content[0].isupper(): - error_reasons.append('The first character is not a capital letter.') - - # Check if the last character is a full-stop character. - if file_content.strip()[-1] != '.': - error_reasons.append('The last character is not a full-stop character.') - - return len(error_reasons) == 0, ' / '.join(error_reasons) if error_reasons else '' - - @nox.session(python=PYTHON_DEFAULT_VERSION) -def towncrier_check(session): - """ - Check whether all the entries in the changelog.d follow the expected naming convention - as well as some basic rules as to their format. - """ - expected_non_md_files = {'.gitkeep'} - allowed_change_types = load_allowed_change_types() - - is_error = False - - for filename in pathlib.Path('./changelog.d/').glob('*'): - # If that's an expected file, it's all right. - if filename.name in expected_non_md_files: - continue - - # Check whether the file matches the expected pattern. - is_valid, error_message = is_changelog_filename_valid(filename.name, allowed_change_types) - if not is_valid: - session.log(f"File {filename.name} doesn't match the expected pattern: {error_message}") - is_error = True - continue - - # Check whether the file isn't too big. - if filename.lstat().st_size > 16 * 1024: - session.log( - f'File {filename.name} content is too big – it should be smaller than 16kB.' - ) - is_error = True - continue - - # Check whether the file can be loaded as UTF-8 file. - try: - file_content = filename.read_text(encoding='utf-8') - except UnicodeDecodeError: - session.log(f'File {filename.name} is not a valid UTF-8 file.') - is_error = True - continue - - # Check whether the content of the file is anyhow valid. - is_valid, error_message = is_changelog_entry_valid(file_content) - if not is_valid: - session.log(f'File {filename.name} is not a valid changelog entry: {error_message}') - is_error = True - continue - - if is_error: - session.error( - 'Found errors in the changelog.d directory. Check logs above for more information' - ) +def changie_check(session): + """Validate unreleased fragments and the assembled changelog.""" + subprocess.run( + ['go', 'run', CHANGIE, 'batch', 'patch', '--dry-run'], + check=True, + stdout=subprocess.DEVNULL, + ) + rendered = subprocess.check_output(['go', 'run', CHANGIE, 'merge', '--dry-run'], text=True) + if rendered != pathlib.Path('CHANGELOG.md').read_text(): + session.error('CHANGELOG.md differs from `changie merge --dry-run`') diff --git a/pyproject.toml b/pyproject.toml index eb09fe256..4ab298779 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,9 +69,6 @@ lint = [ "liccheck>=0.9.2", "setuptools>=60,<80", # required by liccheck ] -release = [ - "towncrier==23.11.0", -] test = [ "pip>=26.2.2", "coverage>=7.13.5,<8", @@ -179,46 +176,3 @@ ignore = [ [tool.ruff.format] quote-style = "single" - -[tool.towncrier] -directory = "changelog.d" -filename = "CHANGELOG.md" -start_string = "\n" -underlines = ["", "", ""] -title_format = "## [{version}](https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v{version}) - {project_date}" -issue_format = "[#{issue}](https://github.com/Backblaze/B2_Command_Line_Tool/issues/{issue})" - -[[tool.towncrier.type]] -directory = "removed" -name = "Removed" -showcontent = true - -[[tool.towncrier.type]] -directory = "changed" -name = "Changed" -showcontent = true - -[[tool.towncrier.type]] -directory = "fixed" -name = "Fixed" -showcontent = true - -[[tool.towncrier.type]] -directory = "deprecated" -name = "Deprecated" -showcontent = true - -[[tool.towncrier.type]] -directory = "added" -name = "Added" -showcontent = true - -[[tool.towncrier.type]] -directory = "doc" -name = "Doc" -showcontent = true - -[[tool.towncrier.type]] -directory = "infrastructure" -name = "Infrastructure" -showcontent = true diff --git a/uv.lock b/uv.lock index cefa430f4..08bb2d413 100644 --- a/uv.lock +++ b/uv.lock @@ -139,9 +139,6 @@ nox = [ { name = "nox" }, { name = "pip" }, ] -release = [ - { name = "towncrier" }, -] test = [ { name = "coverage" }, { name = "more-itertools" }, @@ -205,7 +202,6 @@ nox = [ { name = "nox", specifier = ">=2025.11.12" }, { name = "pip", specifier = ">=26.2.2" }, ] -release = [{ name = "towncrier", specifier = "==23.11.0" }] test = [ { name = "coverage", specifier = ">=7.13.5,<8" }, { name = "more-itertools", specifier = ">=11.0.2,<12" }, @@ -660,19 +656,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/ff/62/85c4c919272577931d407be5ba5d71c20f0b616d31a0befe0ae45bb79abd/imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b", size = 8769, upload-time = "2022-07-01T12:21:02.467Z" }, ] -[[package]] -name = "incremental" -version = "24.11.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "packaging" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ef/3c/82e84109e02c492f382c711c58a3dd91badda6d746def81a1465f74dc9f5/incremental-24.11.0.tar.gz", hash = "sha256:87d3480dbb083c1d736222511a8cf380012a8176c2456d01ef483242abbbcf8c", size = 24000, upload-time = "2025-11-28T02:30:17.861Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1d/55/0f4df2a44053867ea9cbea73fc588b03c55605cd695cee0a3d86f0029cb2/incremental-24.11.0-py3-none-any.whl", hash = "sha256:a34450716b1c4341fe6676a0598e88a39e04189f4dce5dc96f656e040baa10b3", size = 21109, upload-time = "2025-11-28T02:30:16.442Z" }, -] - [[package]] name = "iniconfig" version = "2.3.0" @@ -1693,21 +1676,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/23/d1/136eb2cb77520a31e1f64cbae9d33ec6df0d78bdf4160398e86eec8a8754/tomli-2.4.0-py3-none-any.whl", hash = "sha256:1f776e7d669ebceb01dee46484485f43a4048746235e683bcdffacdf1fb4785a", size = 14477, upload-time = "2026-01-11T11:22:37.446Z" }, ] -[[package]] -name = "towncrier" -version = "23.11.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "incremental" }, - { name = "jinja2" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e0/43/bb5161b32c538a099e1e1a8b79eedd4556dca925facc3b11e0ea7ab96d40/towncrier-23.11.0.tar.gz", hash = "sha256:13937c247e3f8ae20ac44d895cf5f96a60ad46cfdcc1671759530d7837d9ee5d", size = 51483, upload-time = "2023-11-08T14:27:30.402Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/36/5a/6546c8ea2bee64c9e9552e06fdb31118a4f23a12aa161581b5fefd070152/towncrier-23.11.0-py3-none-any.whl", hash = "sha256:2e519ca619426d189e3c98c99558fe8be50c9ced13ea1fc20a4a353a95d2ded7", size = 49327, upload-time = "2023-11-08T14:27:28.45Z" }, -] - [[package]] name = "tqdm" version = "4.67.3"