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
8 changes: 8 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_commit: v2.0.0
_src_path: gh:mopidy/mopidy-ext-template
author_email: [email protected]
author_full_name: Stein Magnus Jodal
dist_name: mopidy-local
ext_name: local
github_username: mopidy
short_description: Mopidy extension for playing music from your local music archive
27 changes: 19 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,40 @@ on:
- main

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

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

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

steps:
Expand All @@ -41,12 +51,13 @@ jobs:
with:
python-version: ${{ matrix.python }}
cache: pip
allow-prereleases: true
- run: python -m pip install tox
- run: python -m tox -e ${{ matrix.tox }}
if: ${{ ! matrix.coverage }}
- run: python -m tox -e ${{ matrix.tox }} -- --cov-report=xml
if: ${{ matrix.coverage }}
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
if: ${{ matrix.coverage }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:

jobs:
release:
runs-on: ubuntu-20.04

runs-on: ubuntu-24.04
environment:
name: pypi
url: https://pypi.org/project/mopidy-local/
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: "Install dependencies"
run: python3 -m pip install build
- name: "Build package"
run: python3 -m build
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
id: build
- uses: actions/download-artifact@v4
with:
name: ${{ steps.build.outputs.artifact-name }}
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
*.egg-info
*.pyc
*.egg-info/
/*.lock
/.*_cache/
/.coverage
/.mypy_cache/
/.pytest_cache/
/.tox/
/MANIFEST
/.venv/
/build/
/dist/
/docs/_build/
/tests/data/
__pycache__/
Loading