Skip to content

Commit

Permalink
Release v3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks committed Jul 8, 2021
2 parents f17acac + f007dcb commit 85f1d63
Show file tree
Hide file tree
Showing 37 changed files with 564 additions and 320 deletions.
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on: [push, pull_request]

jobs:
main:
strategy:
fail-fast: false
matrix:
include:
- name: "Test: Python 3.7"
python: "3.7"
tox: py37
- name: "Test: Python 3.8"
python: "3.8"
tox: py38
- name: "Test: Python 3.9"
python: "3.9"
tox: py39
coverage: true
- name: "Lint: check-manifest"
python: "3.9"
tox: check-manifest
- name: "Lint: flake8"
python: "3.9"
tox: flake8
- name: "Lint: mypy"
python: "3.9"
tox: mypy
- name: "Docs"
python: "3.9"
tox: docs

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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Fix home dir permissions to enable pip caching
run: chown -R root /github/home
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-
- run: python -m pip install pygobject 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@v1
if: ${{ matrix.coverage }}
22 changes: 22 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "CodeQL"

on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]
schedule:
- cron: '32 4 * * 4'

jobs:
analyze:
name: Analyze Python
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: github/codeql-action/init@v1
with:
languages: "python"
- uses: github/codeql-action/autobuild@v1
- uses: github/codeql-action/analyze@v1
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-20.04

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@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 }}
29 changes: 29 additions & 0 deletions .github/workflows/ubuntu-devel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Ubuntu devel"

on:
schedule:
# Every Friday at 18:20 UTC, so we can fix the issue over the weekend
- cron: "20 18 * * 5"
workflow_dispatch:

jobs:
main:
name: "Test: Python 3.9"
runs-on: ubuntu-20.04

# The container should be automatically updated from time to time.
container: ubuntu:devel

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
python3-gst-1.0 \
python3 \
tox
- run: tox -e py39
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ include AUTHORS
include AUTHORS.update
include LICENSE
include MANIFEST.in
include mopidy/py.typed
include pyproject.toml
include tox.ini

recursive-include .circleci *
recursive-include .github *

recursive-include docs *
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ To get started with Mopidy, begin by reading the
:target: https://pypi.python.org/pypi/Mopidy/
:alt: Latest PyPI version

.. image:: https://img.shields.io/circleci/project/github/mopidy/mopidy/develop.svg
:target: https://circleci.com/gh/mopidy/mopidy
:alt: CircleCI build status
.. image:: https://img.shields.io/github/workflow/status/mopidy/mopidy/CI
:target: https://github.com/mopidy/mopidy/actions
:alt: CI build status

.. image:: https://img.shields.io/readthedocs/mopidy.svg
:target: https://docs.mopidy.com/
Expand Down
5 changes: 5 additions & 0 deletions docs/api/backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ you should create your own, and name it after your extension's
with already in use URI schemes. It is also recommended to design the format
such that tracks, playlists and other entities can be distinguished easily.

However, it's important to note that outside of the backend that created them,
URIs are opaque values that neither Mopidy's core layer or Mopidy frontends
should attempt to derive any meaning from. The only valid exception to this is
checking the scheme.


Backend class
=============
Expand Down
1 change: 1 addition & 0 deletions docs/api/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Current track

.. automethod:: mopidy.core.PlaybackController.get_current_tl_track
.. automethod:: mopidy.core.PlaybackController.get_current_track
.. automethod:: mopidy.core.PlaybackController.get_current_tlid
.. automethod:: mopidy.core.PlaybackController.get_stream_title
.. automethod:: mopidy.core.PlaybackController.get_time_position

Expand Down
2 changes: 1 addition & 1 deletion docs/api/frontend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following requirements applies to any frontend implementation:
opening TCP ports and exposing Mopidy for a group of clients.

- A frontend MUST implement at least one `Pykka
<https://www.pykka.org/>`_ actor, called the "main actor" from here
<https://pykka.readthedocs.io/>`_ actor, called the "main actor" from here
on.

- The main actor MUST accept two constructor arguments:
Expand Down
2 changes: 1 addition & 1 deletion docs/api/http-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ to expose something over HTTP.
The HTTP server side API can be used to:

- host static files for e.g. a Mopidy client written in pure JavaScript,
- host a `Tornado <http://www.tornadoweb.org/>`__ application, or
- host a `Tornado <https://www.tornadoweb.org/>`__ application, or
- host a WSGI application, including e.g. Flask applications.

To host static files using the web server, an extension needs to register a
Expand Down
2 changes: 1 addition & 1 deletion docs/authors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Authors
*******

Mopidy is copyright 2009-2020 Stein Magnus Jodal and contributors. Mopidy is
Mopidy is copyright 2009-2021 Stein Magnus Jodal and contributors. Mopidy is
licensed under the `Apache License, Version 2.0
<http://www.apache.org/licenses/LICENSE-2.0>`_.

Expand Down
14 changes: 14 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ This changelog is used to track all major changes to Mopidy.
For older releases, see :ref:`history`.


v3.2.0 (2021-07-08)
===================

- Initial type annotations and mypy support. (PR: :issue:`1842`)

- Move CI to GitHub Actions (PR: :issue:`1951`)

- Fix logging during extension loading (Fixes: :issue:`1958`, PR:
:issue:`1960`)

- Fix appsrc track change after live-mode previously set. (Fixes:
:issue:`1969`, PR: :issue:`1971`)


v3.1.1 (2020-12-26)
===================

Expand Down
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ def setup(app):
master_doc = "index"

project = "Mopidy"
copyright = "2009-2020, Stein Magnus Jodal and contributors"
copyright = "2009-2021, Stein Magnus Jodal and contributors"


release = get_version()
version = ".".join(release.split(".")[:2])

# To make the build reproducible, avoid using today's date in the manpages
today = "2020"
today = "2021"

exclude_trees = ["_build"]

Expand Down Expand Up @@ -146,8 +146,8 @@ def setup(app):

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"pykka": ("https://www.pykka.org/en/latest/", None),
"tornado": ("http://www.tornadoweb.org/en/stable/", None),
"pykka": ("https://pykka.readthedocs.io/en/latest/", None),
"tornado": ("https://www.tornadoweb.org/en/stable/", None),
}

# -- Options for linkcheck builder -------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Pull request guidelines
``docs/add-ext-mopidy-spotify-tunigo``.

#. Follow the :ref:`code style <codestyle>`, especially make sure the
``flake8`` linter does not complain about anything. CircleCI will check
that your pull request is "flake8 clean". See :ref:`code-linting`.
``flake8`` linter does not complain about anything. Our CI setup will
check that your pull request is "flake8 clean". See :ref:`code-linting`.

#. Include tests for any new feature or substantial bug fix. See
:ref:`running-tests`.
Expand All @@ -112,13 +112,13 @@ Pull request guidelines
For more inspiration, feel free to read these blog posts:

- `Writing Git commit messages
<http://365git.tumblr.com/post/3308646748/writing-git-commit-messages>`_
<https://365git.tumblr.com/post/3308646748/writing-git-commit-messages>`_

- `A Note About Git Commit Messages
<https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html>`_

- `On commit messages
<http://who-t.blogspot.ch/2009/12/on-commit-messages.html>`_
<https://who-t.blogspot.com/2009/12/on-commit-messages.html>`_

#. Send a pull request to the ``develop`` branch. See the `GitHub pull request
docs <https://help.github.com/en/articles/about-pull-requests>`_ for help.
Expand Down

0 comments on commit 85f1d63

Please sign in to comment.