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 .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_commit: v2.1.3
_commit: v2.2.0
_src_path: gh:mopidy/mopidy-ext-template
author_email: stein.magnus@jodal.no
author_full_name: Stein Magnus Jodal
Expand Down
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,47 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: hynek/build-and-inspect-python-package@v2

main:
strategy:
fail-fast: false
matrix:
include:
- name: "pytest (3.11)"
python: "3.11"
tox: "3.11"
- name: "pytest (3.12)"
python: "3.12"
tox: "3.12"
- name: "pytest (3.13)"
python: "3.13"
tox: "3.13"
- name: "pytest (3.14)"
python: "3.14"
tox: "3.14"
coverage: true
- name: "pyright"
python: "3.13"
tox: "pyright"
# - name: "pyright"
# python: "3.14"
# tox: "pyright"
- name: "ruff check"
python: "3.13"
python: "3.14"
tox: "ruff-check"
- name: "ruff format"
python: "3.13"
python: "3.14"
tox: "ruff-format"

name: ${{ matrix.name }}
runs-on: ubuntu-24.04
container: ghcr.io/mopidy/ci:latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Fix home dir permissions to enable pip caching
run: chown -R root /github/home
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
cache: pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: hynek/build-and-inspect-python-package@v2
id: build
- uses: actions/download-artifact@v4
Expand Down
22 changes: 16 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mopidy-spotify"
description = "Mopidy extension for playing music from Spotify"
readme = "README.md"
requires-python = ">= 3.11"
requires-python = ">= 3.13"
license = { text = "Apache-2.0" }
authors = [{ name = "Stein Magnus Jodal", email = "stein.magnus@jodal.no" }]
maintainers = [{ name = "Nick Steel", email = "nick@nsteel.co.uk" }]
Expand All @@ -14,7 +14,11 @@ classifiers = [
"Topic :: Multimedia :: Sound/Audio :: Players",
]
dynamic = ["version"]
dependencies = ["mopidy >= 4.0.0a4", "pykka >= 4", "requests >= 2.20.0"]
dependencies = [
"mopidy >= 4.0.0a7",
"pykka >= 4.1",
"requests >= 2.32",
]

[project.urls]
Homepage = "https://github.com/mopidy/mopidy-spotify"
Expand All @@ -24,7 +28,7 @@ spotify = "mopidy_spotify:Extension"


[build-system]
requires = ["setuptools >= 66", "setuptools-scm >= 7.1"]
requires = ["setuptools >= 78", "setuptools-scm >= 8.2"]
build-backend = "setuptools.build_meta"


Expand All @@ -51,7 +55,7 @@ show_missing = true


[tool.pyright]
pythonVersion = "3.11"
pythonVersion = "3.13"
typeCheckingMode = "standard"
# Not all dependencies have type hints:
reportMissingTypeStubs = false
Expand All @@ -69,7 +73,7 @@ filterwarnings = [


[tool.ruff]
target-version = "py311"
target-version = "py313"

[tool.ruff.lint]
select = ["ALL"]
Expand Down Expand Up @@ -115,7 +119,13 @@ ignore = [


[tool.tox]
env_list = ["3.11", "3.12", "3.13", "pyright", "ruff-check", "ruff-format"]
env_list = [
"3.13",
"3.14",
"pyright",
"ruff-check",
"ruff-format",
]

[tool.tox.env_run_base]
package = "wheel"
Expand Down
4 changes: 2 additions & 2 deletions src/mopidy_spotify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def get_config_schema(self):
return schema

def setup(self, registry):
from mopidy_spotify.backend import SpotifyBackend
from mopidy_spotify.backend import SpotifyBackend # noqa: PLC0415

registry.add("backend", SpotifyBackend)

def get_command(self):
from .commands import SpotifyCommand
from .commands import SpotifyCommand # noqa: PLC0415

return SpotifyCommand()

Expand Down