Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gha: Run tests with python 3.12 #2207

Merged
merged 12 commits into from
Jun 22, 2024
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ body:
label: Python
description: What version of python do you use?
options:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- Other
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
- macos-latest
- windows-latest
python-version:
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
chickn-args:
- "--no-venv"
regression:
Expand Down Expand Up @@ -65,7 +66,7 @@ jobs:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
if: steps.run_result.outputs.run_result != 'success'
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: syphar/restore-virtualenv@v1
Expand Down Expand Up @@ -99,4 +100,4 @@ jobs:

- name: Mark build as successful
if: steps.run_result.outputs.run_result != 'success'
run: echo "::set-output name=run_result::success" > run_result
run: echo "::set-output name=run_result::success" > run_result
16 changes: 8 additions & 8 deletions docs/api/pyatv.conf.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1 class="title">Module <code>pyatv.conf</code></h1>
<p>A configuration describes a device, e.g. it's name, IP address and credentials. It is
possible to manually create a configuration, but generally scanning for devices will
provide configurations for you.</p>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L1-L239" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L1-L240" class="git-link">Browse git</a></div>
</section>
<section>
</section>
Expand All @@ -70,7 +70,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<section class="desc"><p>Representation of an AirPlay service.</p>
<p><strong>DEPRECATED: Use <code><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></code> instead.</strong></p>
<p>Initialize a new AirPlayService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L184-L199" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L185-L200" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></li>
Expand Down Expand Up @@ -105,7 +105,7 @@ <h3>Inherited members</h3>
several services depending on the protocols it supports, e.g. DMAP or
AirPlay.</p>
<p>Initialize a new AppleTV.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L16-L95" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L17-L96" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.interface.BaseConfig" href="../interface#pyatv.interface.BaseConfig">BaseConfig</a></li>
Expand Down Expand Up @@ -141,7 +141,7 @@ <h3>Inherited members</h3>
<section class="desc"><p>Representation of a Companion link service.</p>
<p><strong>DEPRECATED: Use <code><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></code> instead.</strong></p>
<p>Initialize a new CompaniomService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L203-L217" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L204-L218" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></li>
Expand Down Expand Up @@ -174,7 +174,7 @@ <h3>Inherited members</h3>
<section class="desc"><p>Representation of a DMAP service.</p>
<p><strong>DEPRECATED: Use <code><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></code> instead.</strong></p>
<p>Initialize a new DmapService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L146-L161" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L147-L162" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></li>
Expand Down Expand Up @@ -206,7 +206,7 @@ <h3>Inherited members</h3>
<dd>
<section class="desc"><p>Service used when manually creating and adding a service.</p>
<p>Initialize a new ManualService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L98-L142" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L99-L143" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.interface.BaseService" href="../interface#pyatv.interface.BaseService">BaseService</a></li>
Expand Down Expand Up @@ -246,7 +246,7 @@ <h3>Inherited members</h3>
<section class="desc"><p>Representation of a MediaRemote Protocol (MRP) service.</p>
<p><strong>DEPRECATED: Use <code><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></code> instead.</strong></p>
<p>Initialize a new MrpService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L165-L180" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L166-L181" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></li>
Expand Down Expand Up @@ -279,7 +279,7 @@ <h3>Inherited members</h3>
<section class="desc"><p>Representation of an RAOP service.</p>
<p><strong>DEPRECATED: Use <code><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></code> instead.</strong></p>
<p>Initialize a new RaopService.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L221-L239" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/conf.py#L222-L240" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="pyatv.conf.ManualService" href="#pyatv.conf.ManualService">ManualService</a></li>
Expand Down
28 changes: 14 additions & 14 deletions docs/api/pyatv.const.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1 class="title">Module <code>pyatv.const</code></h1>
</header>
<section id="section-intro">
<p>Constants used in the public API.</p>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L1-L435" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L1-L436" class="git-link">Browse git</a></div>
</section>
<section>
</section>
Expand All @@ -230,7 +230,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<section class="desc"><p>Hardware device model.</p>
<p>Gen2-Gen4K are Apple TV model names and will be renamed to AppleTVGenX in the
future.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L149-L193" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L150-L194" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -297,7 +297,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported device states.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L52-L71" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L53-L72" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -336,7 +336,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported features.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L248-L435" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L249-L436" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -599,7 +599,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>State of a particular feature.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L228-L244" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L229-L245" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -631,7 +631,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>Type of input when pressing a button.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L196-L206" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L197-L207" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand All @@ -658,7 +658,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported keyboard focus states.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L113-L123" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L114-L124" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand All @@ -685,7 +685,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported media types.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L32-L49" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L33-L50" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -718,7 +718,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>Operating system on device.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L126-L146" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L127-L147" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -756,7 +756,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>Pairing requirement for a service.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L209-L225" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L210-L226" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -791,7 +791,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported power states.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L100-L110" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L101-L111" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand All @@ -818,7 +818,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported protocols.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L13-L29" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L14-L30" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down Expand Up @@ -853,7 +853,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported repeat states.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L74-L84" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L75-L85" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand All @@ -880,7 +880,7 @@ <h3>Class variables</h3>
</code></dt>
<dd>
<section class="desc"><p>All supported shuffle states.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L87-L97" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/const.py#L88-L98" class="git-link">Browse git</a></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>enum.Enum</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/pyatv.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
</dd>
<dt id="pyatv.scan">
<code class="name flex">
<span>async def <span class="ident">scan</span></span>(<span>loop: asyncio.events.AbstractEventLoop, timeout: int = 5, identifier: Union[str, Set[str], None] = None, protocol: Union[<a title="pyatv.const.Protocol" href="../const#pyatv.const.Protocol">Protocol</a>, Set[<a title="pyatv.const.Protocol" href="../const#pyatv.const.Protocol">Protocol</a>], None] = None, hosts: Optional[List[str]] = None, aiozc: Optional[zeroconf.asyncio.AsyncZeroconf] = None, storage: Optional[<a title="pyatv.interface.Storage" href="../interface#pyatv.interface.Storage">Storage</a>] = None) -> List[<a title="pyatv.interface.BaseConfig" href="../interface#pyatv.interface.BaseConfig">BaseConfig</a>]</span>
<span>async def <span class="ident">scan</span></span>(<span>loop: asyncio.events.AbstractEventLoop, timeout: int = 5, identifier: Union[str, Set[str], ForwardRef(None)] = None, protocol: Union[<a title="pyatv.const.Protocol" href="../const#pyatv.const.Protocol">Protocol</a>, Set[<a title="pyatv.const.Protocol" href="../const#pyatv.const.Protocol">Protocol</a>], ForwardRef(None)] = None, hosts: Optional[List[str]] = None, aiozc: Optional[zeroconf.asyncio.AsyncZeroconf] = None, storage: Optional[<a title="pyatv.interface.Storage" href="../interface#pyatv.interface.Storage">Storage</a>] = None) -> List[<a title="pyatv.interface.BaseConfig" href="../interface#pyatv.interface.BaseConfig">BaseConfig</a>]</span>
</code>
</dt>
<dd>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/pyatv.interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ <h3>Methods</h3>
</code></dt>
<dd>
<section class="desc"><p>Container for media (e.g. audio or video) metadata.</p></section>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/interface.py#L75-L82" class="git-link">Browse git</a></div>
<div class="git-link-div"><a href="https://github.com/postlund/pyatv/blob/master/pyatv/interface.py#L73-L82" class="git-link">Browse git</a></div>
<h3>Class variables</h3>
<dl>
<dt id="pyatv.interface.MediaMetadata.album"><code class="name">var <span class="ident">album</span> -> Optional[str]</code></dt>
Expand Down
Loading
Loading