mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 00:24:25 +01:00
Update python version references
This commit is contained in:
parent
a7830bebae
commit
dc33932871
9 changed files with 18 additions and 15 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
|
@ -20,10 +20,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, windows-latest]
|
platform: [ubuntu-latest, windows-latest]
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
env:
|
env:
|
||||||
IS_MAIN_PYTHON: ${{ matrix.python-version == '3.9' && matrix.platform == 'ubuntu-latest' }}
|
IS_MAIN_PYTHON: ${{ matrix.python-version == '3.10' && matrix.platform == 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Install Python tools
|
- name: Install Python tools
|
||||||
|
|
|
||||||
6
.github/workflows/integration_test.yaml
vendored
6
.github/workflows/integration_test.yaml
vendored
|
|
@ -3,6 +3,10 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * SUN" # run every Sunday at midnight
|
- cron: "0 0 * * SUN" # run every Sunday at midnight
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHON_VERSION: "3.10"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_integration:
|
test_integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -12,7 +16,7 @@ jobs:
|
||||||
uses: BrandonLWhite/pipx-install-action@v1.0.3
|
uses: BrandonLWhite/pipx-install-action@v1.0.3
|
||||||
- uses: actions/setup-python@v6
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
cache: poetry
|
cache: poetry
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ concurrency:
|
||||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: 3.9
|
PYTHON_VERSION: "3.10"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changed-files:
|
changed-files:
|
||||||
2
.github/workflows/make_release.yaml
vendored
2
.github/workflows/make_release.yaml
vendored
|
|
@ -8,7 +8,7 @@ on:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: 3.9
|
PYTHON_VERSION: "3.10"
|
||||||
NEW_VERSION: ${{ inputs.version }}
|
NEW_VERSION: ${{ inputs.version }}
|
||||||
NEW_TAG: v${{ inputs.version }}
|
NEW_TAG: v${{ inputs.version }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,12 +124,12 @@ command. Instead, you can activate the virtual environment in your shell with:
|
||||||
|
|
||||||
$ poetry shell
|
$ poetry shell
|
||||||
|
|
||||||
You should see ``(beets-py3.9)`` prefix in your shell prompt. Now you can run
|
You should see ``(beets-py3.10)`` prefix in your shell prompt. Now you can run
|
||||||
commands directly, for example:
|
commands directly, for example:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ (beets-py3.9) pytest
|
$ (beets-py3.10) pytest
|
||||||
|
|
||||||
Additionally, poethepoet_ task runner assists us with the most common
|
Additionally, poethepoet_ task runner assists us with the most common
|
||||||
operations. Formatting, linting, testing are defined as ``poe`` tasks in
|
operations. Formatting, linting, testing are defined as ``poe`` tasks in
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ from collections import defaultdict
|
||||||
from functools import cached_property, wraps
|
from functools import cached_property, wraps
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from types import GenericAlias
|
|
||||||
from typing import TYPE_CHECKING, Any, ClassVar, Literal, TypeVar
|
from typing import TYPE_CHECKING, Any, ClassVar, Literal, TypeVar
|
||||||
|
|
||||||
import mediafile
|
import mediafile
|
||||||
|
|
@ -450,9 +449,6 @@ def _get_plugin(name: str) -> BeetsPlugin | None:
|
||||||
for obj in reversed(namespace.__dict__.values()):
|
for obj in reversed(namespace.__dict__.values()):
|
||||||
if (
|
if (
|
||||||
inspect.isclass(obj)
|
inspect.isclass(obj)
|
||||||
and not isinstance(
|
|
||||||
obj, GenericAlias
|
|
||||||
) # seems to be needed for python <= 3.9 only
|
|
||||||
and issubclass(obj, BeetsPlugin)
|
and issubclass(obj, BeetsPlugin)
|
||||||
and obj != BeetsPlugin
|
and obj != BeetsPlugin
|
||||||
and not inspect.isabstract(obj)
|
and not inspect.isabstract(obj)
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,6 @@ def compile_func(arg_names, statements, name="_the_func", debug=False):
|
||||||
decorator_list=[],
|
decorator_list=[],
|
||||||
)
|
)
|
||||||
|
|
||||||
# The ast.Module signature changed in 3.8 to accept a list of types to
|
|
||||||
# ignore.
|
|
||||||
mod = ast.Module([func_def], [])
|
mod = ast.Module([func_def], [])
|
||||||
|
|
||||||
ast.fix_missing_locations(mod)
|
ast.fix_missing_locations(mod)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ below!
|
||||||
Unreleased
|
Unreleased
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Beets now requires Python 3.10 or later since support for EOL Python 3.9 has
|
||||||
|
been dropped.
|
||||||
|
|
||||||
New features:
|
New features:
|
||||||
|
|
||||||
- :doc:`plugins/ftintitle`: Added argument for custom feat. words in ftintitle.
|
- :doc:`plugins/ftintitle`: Added argument for custom feat. words in ftintitle.
|
||||||
|
|
@ -42,6 +45,8 @@ For plugin developers:
|
||||||
|
|
||||||
For packagers:
|
For packagers:
|
||||||
|
|
||||||
|
- The minimum supported Python version is now 3.10.
|
||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
||||||
- The documentation chapter :doc:`dev/paths` has been moved to the "For
|
- The documentation chapter :doc:`dev/paths` has been moved to the "For
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
Installation
|
Installation
|
||||||
============
|
============
|
||||||
|
|
||||||
Beets requires `Python 3.9 or later`_. You can install it using package
|
Beets requires `Python 3.10 or later`_. You can install it using package
|
||||||
managers, pipx_, pip_ or by using package managers.
|
managers, pipx_, pip_ or by using package managers.
|
||||||
|
|
||||||
.. _python 3.9 or later: https://python.org/download/
|
.. _python 3.10 or later: https://python.org/download/
|
||||||
|
|
||||||
Using ``pipx`` or ``pip``
|
Using ``pipx`` or ``pip``
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue