Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.9", "pypy3.10"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10"]
extras: [ "" ]
exclude:
- os: "macos-latest"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ With `nox`, you can run different sessions (default are `lint` and `test`):

* `format` -> Format the code.
* `lint` -> Run linters.
* `test` (`test-3.9`, `test-3.10`, `test-3.11`, `test-3.12`, `test-3.13`, `test-3.14`, `test-pypy3.9`, `test-pypy3.10`) -> Run test suite.
* `test` (`test-3.10`, `test-3.11`, `test-3.12`, `test-3.13`, `test-3.14`, `test-pypy3.10`) -> Run test suite.
* `cover` -> Perform coverage analysis.
* `build` -> Build the distribution.
* `doc` -> Build the documentation.
Expand All @@ -85,7 +85,7 @@ For example:
nox > Running session format
...

Sessions `test` ,`unit`, and `integration` can run on many Python versions, 3.9-3.14 (+ pypy3.9 and pypy3.10) by default.
Sessions `test` ,`unit`, and `integration` can run on many Python versions, 3.10-3.14 (+ pypy3.10) by default.

Sessions other than `test` use the last CPython version from `NOX_PYTHONS`, 3.14 by default.

Expand Down
1 change: 1 addition & 0 deletions changelog.d/+drop-python3.9.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop support for Python 3.9 and PyPy 3.9.
1 change: 1 addition & 0 deletions changelog.d/+test-deps-upgrade.infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade test dependencies versions.
4 changes: 2 additions & 2 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ With ``nox``, you can run different sessions (default are ``lint`` and ``test``)

* ``format`` -> Format the code.
* ``lint`` -> Run linters.
* ``test`` (``test-3.9``, ``test-3.10``, ``test-3.11``, ``test-3.12``, ``test-3.13``, ``test-3.14``, ``test-pypy3.9``, ``test-pypy3.10``) -> Run test suite.
* ``test`` (``test-3.10``, ``test-3.11``, ``test-3.12``, ``test-3.13``, ``test-3.14``, ``test-pypy3.10``) -> Run test suite.
* ``cover`` -> Perform coverage analysis.
* ``build`` -> Build the distribution.
* ``deploy`` -> Deploy the distribution to the PyPi.
Expand All @@ -56,7 +56,7 @@ For example::
nox > Running session format
...

Sessions ``test``, ``unit``, and ``integration`` can run on many Python versions, 3.9-3.14 (+ pypy3.9 and pypy3.10) by default.
Sessions ``test``, ``unit``, and ``integration`` can run on many Python versions, 3.10-3.14 (+ pypy3.10) by default.

Sessions other than ``test`` use the last CPython version from ``NOX_PYTHONS``, 3.14 by default.

Expand Down
2 changes: 0 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

PYTHON_VERSIONS = (
[
'pypy3.9',
'pypy3.10',
'3.9',
'3.10',
'3.11',
'3.12',
Expand Down
1,900 changes: 0 additions & 1,900 deletions pdm.lock

This file was deleted.

41 changes: 20 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dynamic = ["version"]
authors = [
{name = "Backblaze Inc", email = "support@backblaze.com"},
]
requires-python = ">=3.9"
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
keywords = ["backblaze", "b2", "cloud", "storage"]
Expand All @@ -15,7 +15,6 @@ classifiers = [
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -25,15 +24,15 @@ classifiers = [
dependencies = [
"annotated_types>=0.5.0",
"logfury<2.0.0,>=1.0.1",
"requests<3.0.0,>=2.9.1",
"requests<3.0.0,>=2.33.0",
"typing-extensions>=4.7.1; python_version < '3.12'",
]

[project.optional-dependencies]
full = [
"tqdm<5.0.0,>=4.5.0",
"eval_type_backport>=0.1.3,<1; python_version<'3.10'",
"pydantic>=2.0.1",
"pydantic>=2.0.1,<2.13; platform_python_implementation == 'PyPy' and python_version < '3.11'", # newer pydantic versions do not play well with PyPy 3.10
"pydantic>=2.0.1; platform_python_implementation != 'PyPy' or python_version >= '3.11'",
]

[dependency-groups]
Expand All @@ -44,28 +43,28 @@ format = [
"ruff~=0.8.4",
]
lint = [
"pip>=25.3",
"pip>=26.1",
"ruff~=0.8.4",
"pytest>=8.3.3",
"tenacity>=9.1.2",
"pytest>=9.0.3,<10",
"tenacity>=9.1.4,<10",
"liccheck==0.9.2",
"setuptools",
]
test = [
"coverage>=7.2.7",
"pytest>=8.3.3,<9",
"pytest-cov>=3.0.0",
"pytest-mock>=3.6.1",
"pytest-lazy-fixtures==1.1.1",
"pytest-xdist>=2.5.0",
"pytest-timeout>=2.1.0",
"pytest-watcher>=0.6.3",
"tenacity>=9.1.2",
"coverage>=7.13.5,<8",
"pytest>=9.0.3,<10",
"pytest-cov>=7.1.0,<8",
"pytest-mock>=3.15.1,<4",
"pytest-lazy-fixtures>=1.4.0,<2",
"pytest-xdist>=3.8.0,<4",
"pytest-timeout>=2.4.0,<3",
"pytest-watcher>=0.6.3,<1",
"tenacity>=9.1.4,<10",
"tqdm<5.0.0,>=4.5.0",
"eval_type_backport>=0.1.3,<1; python_version<'3.10'", # used with pydantic
"pydantic>=2.0.1",
"pywin32>=306; sys_platform == \"win32\" and platform_python_implementation!='PyPy'",
"responses",
"pydantic>=2.0.1,<2.13; platform_python_implementation == 'PyPy' and python_version < '3.11'",
"pydantic>=2.13.3,<3; platform_python_implementation != 'PyPy' or python_version >= '3.11'",
"pywin32>=311,<312; sys_platform == \"win32\" and platform_python_implementation!='PyPy'",
"responses>=0.26.0,<1",
]
release = [
"towncrier==23.11.0",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/bucket/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ def test_copy_encryption(self):
SSE_C_AES_2_NO_SECRET,
),
]:
with self.subTest(kwargs=kwargs, length=length, data=data):
with self.subTest(kwargs=repr(kwargs), length=length, data=data):
file_info = self.bucket.copy(**kwargs, new_file_name='new_file', length=length)
self.assertTrue(isinstance(file_info, VFileVersionInfo))
self.assertEqual(file_info.server_side_encryption, expected_encryption)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/v0/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def test_copy_encryption(self):
SSE_C_AES_2_NO_SECRET,
),
]:
with self.subTest(kwargs=kwargs, length=length, data=data):
with self.subTest(kwargs=repr(kwargs), length=length, data=data):
file_info = self.bucket.copy(**kwargs, new_file_name='new_file', length=length)
self.assertTrue(isinstance(file_info, FileVersionInfo))
self.assertEqual(file_info.server_side_encryption, expected_encryption)
Expand Down
Loading
Loading