Poetry: Bump Python to 3.11 and update build system to poetry-core

The oldest still-supported version of Blender is 4.2-LTS, which uses
Python 3.11, so that's what's now the required Python version for BAT.

Make the build system depend on `poetry-core` instead of `poetry`, to
make package builds faster (especially important when using Tox for
testing in various environments).

This also re-generates the `poetry.lock` file, so updates the
dependencies to their latest version compatible with the `project.toml`
file.
This commit is contained in:
Sybren A. Stüvel 2025-11-24 15:42:25 +01:00
parent 3b61399f7f
commit 7322c0772a
5 changed files with 896 additions and 814 deletions

View File

@ -5,6 +5,7 @@ changed functionality, fixed bugs).
# Version 1.21 (in development) # Version 1.21 (in development)
- Require Python version 3.11 or newer.
- Skip packed blend files. BAT will assume that the packed file is self-contained, i.e. any asset used by a packed blend file should also be packed. - Skip packed blend files. BAT will assume that the packed file is self-contained, i.e. any asset used by a packed blend file should also be packed.
- Support Geometry Node simulation caches ([#92890](https://projects.blender.org/blender/blender-asset-tracer/pulls/92890)). - Support Geometry Node simulation caches ([#92890](https://projects.blender.org/blender/blender-asset-tracer/pulls/92890)).
- Add a `py.typed` marker file, such that tooling like mypy know BAT has type annotations ([#92895](https://projects.blender.org/blender/blender-asset-tracer/pulls/92895)). - Add a `py.typed` marker file, such that tooling like mypy know BAT has type annotations ([#92895](https://projects.blender.org/blender/blender-asset-tracer/pulls/92895)).

1699
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@ s3 = ["boto3"]
zstandard = ["zstandard"] zstandard = ["zstandard"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.9" python = ">=3.11,<4.0"
requests = "^2.11" requests = "^2.11"
# For S3 storage support: # For S3 storage support:
@ -55,5 +55,5 @@ bat = 'blender_asset_tracer.cli:cli_main'
[build-system] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.masonry.api" build-backend = "poetry.core.masonry.api"

View File

@ -6,7 +6,7 @@ max-line-length = 100
[mypy] [mypy]
# This should match pyproject.toml # This should match pyproject.toml
python_version = 3.9 python_version = 3.11
warn_redundant_casts = True warn_redundant_casts = True
ignore_missing_imports = True ignore_missing_imports = True

View File

@ -1,6 +1,6 @@
[tox] [tox]
isolated_build = true isolated_build = true
envlist = py39, py310, py311, py312, py313 envlist = py311, py312, py313
[testenv] [testenv]
whitelist_externals = poetry whitelist_externals = poetry