Skip to content

Commit

Permalink
Merge pull request #874 from Backblaze/prepare_v3.9.0
Browse files Browse the repository at this point in the history
Prepare release v3.9.0
  • Loading branch information
ppolewicz authored Apr 27, 2023
2 parents 2bafe10 + 67e2b46 commit cd1ff75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.9.0] - 2023-04-28

### Added
* Support for custom file upload timestamp

Expand Down Expand Up @@ -419,7 +421,8 @@ This version is pinned strictly to `b2-sdk-python==1.16.0` for the same reason.
* 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.

[Unreleased]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.8.0...HEAD
[Unreleased]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.9.0...HEAD
[3.9.0]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.8.0...v3.9.0
[3.8.0]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.7.1...v3.8.0
[3.7.1]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.7.0...v3.7.1
[3.7.0]: https://github.com/Backblaze/B2_Command_Line_Tool/compare/v3.6.0...v3.7.0
Expand Down
5 changes: 3 additions & 2 deletions test/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,19 +340,20 @@ class EnvVarTestContext:

def __init__(self, account_info_file_name: str):
self.account_info_file_name = account_info_file_name
self.suffix = ''.join(RNG.choice('abcdefghijklmnopqrstuvwxyz0123456789') for _ in range(7))

def __enter__(self):
src = self.account_info_file_name
dst = path.join(gettempdir(), 'b2_account_info')
shutil.copyfile(src, dst)
shutil.move(src, src + '.bkup')
shutil.move(src, src + self.suffix)
environ[self.ENV_VAR] = dst
return dst

def __exit__(self, exc_type, exc_val, exc_tb):
os.remove(environ.get(self.ENV_VAR))
fname = self.account_info_file_name
shutil.move(fname + '.bkup', fname)
shutil.move(fname + self.suffix, fname)
if environ.get(self.ENV_VAR) is not None:
del environ[self.ENV_VAR]

Expand Down

0 comments on commit cd1ff75

Please sign in to comment.