Skip to content

Commit 6ec9bd4

Browse files
committed
Add Python 3.9
1 parent 75f8d5d commit 6ec9bd4

File tree

7 files changed

+21
-18
lines changed

7 files changed

+21
-18
lines changed

.github/workflows/cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags: 'v*' # push events to matching v*, i.e. v1.0, v20.15.10
66

77
env:
8-
PYTHON_DEFAULT_VERSION: 3.8
8+
PYTHON_DEFAULT_VERSION: 3.9
99
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1010

1111
jobs:

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [master]
88

99
env:
10-
PYTHON_DEFAULT_VERSION: 3.8
10+
PYTHON_DEFAULT_VERSION: 3.9
1111

1212
jobs:
1313
lint:
@@ -51,7 +51,7 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
os: [ubuntu-latest, macos-latest, windows-latest]
54-
python-version: [3.5, 3.6, 3.7, 3.8, '3.9.0-beta.5', pypy3]
54+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
5555
exclude:
5656
- os: windows-latest
5757
python-version: pypy3

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ formats: all
1414

1515
# Optionally set the version of Python and requirements required to build your docs
1616
python:
17-
version: 3.8
17+
version: 3.9
1818
install:
1919
- requirements: requirements.txt
2020
- method: pip

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
* Add support for Python 3.9
10+
811
### Removed
912
* 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))
1013
* Remove `--prefix` from `ls` (it didn't really work, use `folderName` argument)

CONTRIBUTING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ With `nox`, you can run different sessions (default are `lint` and `test`):
2727

2828
* `format` -> Format the code.
2929
* `lint` -> Run linters.
30-
* `test` (`test-3.5`, `test-3.6`, `test-3.7`, `test-3.8`) -> Run test suite.
30+
* `test` (`test-3.5`, `test-3.6`, `test-3.7`, `test-3.8`, `test-3.9`) -> Run test suite.
3131
* `cover` -> Perform coverage analysis.
3232
* `build` -> Build the distribution.
3333
* `deploy` -> Deploy the distribution to the PyPi.
@@ -38,7 +38,7 @@ For example:
3838

3939
$ nox -s format
4040
nox > Running session format
41-
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/format
41+
nox > Creating virtual environment (virtualenv) using python3.9 in .nox/format
4242
...
4343

4444
$ nox -s format
@@ -50,9 +50,9 @@ For example:
5050
nox > Running session format
5151
...
5252

53-
Sessions `test` ,`unit`, and `integration` can run on many Python versions, 3.5-3.8 by default.
53+
Sessions `test` ,`unit`, and `integration` can run on many Python versions, 3.5-3.9 by default.
5454

55-
Sessions other than than use the last given Python version, 3.8 by default.
55+
Sessions other than than use the last given Python version, 3.9 by default.
5656

5757
You can change it:
5858

@@ -76,17 +76,17 @@ To run all tests on every available Python version:
7676

7777
To run all tests on a specific version:
7878

79-
nox -s test-3.8
79+
nox -s test-3.9
8080

8181
To run just unit tests:
8282

83-
nox -s unit-3.8
83+
nox -s unit-3.9
8484

8585
To run just integration tests:
8686

8787
export B2_TEST_APPLICATION_KEY=your_app_key
8888
export B2_TEST_APPLICATION_KEY_ID=your_app_key_id
89-
nox -s integration-3.8
89+
nox -s integration-3.9
9090

9191
## Documentation
9292

noxfile.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
CI = os.environ.get('CI') is not None
1919
NOX_PYTHONS = os.environ.get('NOX_PYTHONS')
2020

21-
PYTHON_VERSIONS = ['3.5', '3.6', '3.7', '3.8'] if NOX_PYTHONS is None else NOX_PYTHONS.split(',')
21+
PYTHON_VERSIONS = ['3.5', '3.6', '3.7', '3.8', '3.9'
22+
] if NOX_PYTHONS is None else NOX_PYTHONS.split(',')
2223
PYTHON_DEFAULT_VERSION = PYTHON_VERSIONS[-1]
2324

2425
PY_PATHS = ['b2', 'test', 'noxfile.py', 'setup.py']
@@ -27,10 +28,6 @@
2728
REQUIREMENTS_LINT = ['yapf==0.27', 'pyflakes==2.2.0', 'pytest==5.4.3', 'liccheck==0.4.7']
2829
REQUIREMENTS_TEST = ['nose==1.3.7', 'pytest==5.4.3', 'pytest-cov==2.10.0']
2930
REQUIREMENTS_BUILD = ['setuptools>=20.2']
30-
REQUIREMENTS_DOC = [
31-
'sphinx', 'sphinx-autobuild', 'sphinx_rtd_theme', 'sphinx-argparse', 'sphinxcontrib-plantuml',
32-
'sadisplay'
33-
]
3431

3532
nox.options.reuse_existing_virtualenvs = True
3633
nox.options.sessions = [
@@ -196,5 +193,7 @@ def doc(session):
196193
session.run('sphinx-build', *sphinx_args)
197194
# TODO: implement doc_cover that works with sphinx-argparse
198195
else:
199-
sphinx_args[-2:-2] = ['--open-browser', '-z', '../b2', '-i', '*.pyc', '-i', '*~']
196+
sphinx_args[-2:-2] = [
197+
'--open-browser', '--watch', '../b2', '--ignore', '*.pyc', '--ignore', '*~'
198+
]
200199
session.run('sphinx-autobuild', *sphinx_args)

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
'Programming Language :: Python :: 3.6',
9292
'Programming Language :: Python :: 3.7',
9393
'Programming Language :: Python :: 3.8',
94+
'Programming Language :: Python :: 3.9',
9495
],
9596

9697
# What does your project relate to?
@@ -129,7 +130,7 @@
129130

130131
# Although 'package_data' is the preferred approach, in some case you may
131132
# need to place data files outside of your packages. See:
132-
# http://docs.python.org/3.8/distutils/setupscript.html#installing-additional-files # noqa
133+
# http://docs.python.org/3.9/distutils/setupscript.html#installing-additional-files # noqa
133134
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
134135
data_files=[
135136
#('my_data', ['data/data_file'])

0 commit comments

Comments
 (0)