• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H06-Aug-2021-208191

b2sdk/H06-Aug-2021-20,49115,746

b2sdk.egg-info/H03-May-2022-6645

contrib/H06-Aug-2021-5438

doc/H06-Aug-2021-2,9902,025

test/H06-Aug-2021-12,6589,802

.gitignoreH A D06-Aug-2021127 1514

.readthedocs.ymlH A D06-Aug-2021592 2520

CHANGELOG.mdH A D06-Aug-20219.6 KiB275204

CONTRIBUTING.mdH A D06-Aug-20213.1 KiB10065

LICENSEH A D06-Aug-20211.3 KiB3122

MANIFEST.inH A D06-Aug-202141 32

PKG-INFOH A D06-Aug-20213 KiB6645

README.mdH A D06-Aug-20212.2 KiB4022

README.release.mdH A D06-Aug-20211.2 KiB2624

noxfile.pyH A D06-Aug-20216.6 KiB206130

setup.cfgH A D06-Aug-2021940 6154

setup.pyH A D03-May-20224.6 KiB13663

README.md

1# B2 Python SDK
2 [![Continuous Integration](https://github.com/Backblaze/b2-sdk-python/workflows/Continuous%20Integration/badge.svg)](https://github.com/Backblaze/b2-sdk-python/actions?query=workflow%3A%22Continuous+Integration%22) [![License](https://img.shields.io/pypi/l/b2sdk.svg?label=License)](https://pypi.python.org/pypi/b2) [![python versions](https://img.shields.io/pypi/pyversions/b2sdk.svg?label=python%20versions)](https://pypi.python.org/pypi/b2sdk) [![PyPI version](https://img.shields.io/pypi/v/b2sdk.svg?label=PyPI%20version)](https://pypi.python.org/pypi/b2sdk) [![Docs](https://readthedocs.org/projects/b2-sdk-python/badge/?version=master)](https://b2-sdk-python.readthedocs.io/en/master/)
3
4
5
6This repository contains a client library and a few handy utilities for easy access to all of the capabilities of B2 Cloud Storage.
7
8[B2 command-line tool](https://github.com/Backblaze/B2_Command_Line_Tool) is an example of how it can be used to provide command-line access to the B2 service, but there are many possible applications (including FUSE filesystems, storage backend drivers for backup applications etc).
9
10# Documentation
11
12The latest documentation is available on [Read the Docs](https://b2-sdk-python.readthedocs.io).
13
14# Installation
15
16The sdk can be installed with:
17
18    pip install b2sdk
19
20# Version policy
21
22b2sdk follows [Semantic Versioning](https://semver.org/) policy, so in essence the version number is MAJOR.MINOR.PATCH (for example 1.2.3) and:
23- we increase MAJOR version when we make incompatible API changes
24- we increase MINOR version when we add functionality in a backwards-compatible manner, and
25- we increase PATCH version when we make backwards-compatible bug fixes (unless someone relies on the undocumented behavior of a fixed bug)
26
27Therefore when setting up b2sdk as a dependency, please make sure to match the version appropriately, for example you could put this in your `requirements.txt` to make sure your code is compatible with the `b2sdk` version your user will get from pypi:
28
29```
30b2sdk>=0.0.0,<1.0.0
31```
32
33# Release History
34
35Please refer to the [changelog](CHANGELOG.md).
36
37# Developer Info
38
39Please see our [contributing guidelines](CONTRIBUTING.md).
40

README.release.md

1# Release Process
2
3- Get the Nox:
4  - `pip install -U nox`
5- Update the release history in `CHANGELOG.md`:
6  - Change "Unreleased" to the current release version and date.
7  - Create empty "Unreleased" section.
8  - Add proper link to the new release (at the bottom of the file). Use GitHub [compare feature](https://docs.github.com/en/free-pro-team@latest/github/committing-changes-to-your-project/comparing-commits#comparing-tags) between two tags.
9  - Update "Unreleased" link (at the bottom of the file).
10- Run linters and tests:
11  - `export B2_TEST_APPLICATION_KEY=your_app_key`
12  - `export B2_TEST_APPLICATION_KEY_ID=your_app_key_id`
13  - `nox -x`
14- Build docs locally:
15  - `nox --non-interactive -xs doc`
16- Commit and push to GitHub, then wait for CI workflow to complete successfully.
17  - No need to make a branch. Push straight to `master`.
18- Tag in git and push tag to origin.  (Version tags look like "v0.4.6".)
19  - `git tag vx.x.x`
20  - `git push origin vx.x.x`
21- Wait for CD workflow to complete successfully.
22  - Verify that the GitHub release is created
23  - Verify that the release has been uploaded to the PyPI
24- Install using pip and verify that it gets the correct version:
25  - `pip install -U b2sdk`
26