Skip to content

Commit

Permalink
Add Python 3.11.0-rc1 support. (#139)
Browse files Browse the repository at this point in the history
* Try adding Python 3.11.0-rc1 support.

* Update all.yml

* Remove win_arm64 builds.

* Add debugging info to weakref test.

* Try factoring out test code to avoid GC issues.

* Avoid using py::dynamic_attr to avoid Py3.11 incompatibility.

Should be fixed in PyBind11: pybind/pybind11@6abb7de.

* Re-add upload path to upload action.

* Ignore CSS when comparing docs to expected values.

* Don't generate type stubs for documentation on Py3.11.

* Remove ubuntu-18.04.

* Bump to v0.5.10.

* Bump documentation version.
  • Loading branch information
psobot authored Aug 22, 2022
1 parent cc9b2f8 commit 8c0ad96
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 68 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
continue-on-error: true
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.11.0-rc.1']
os: [ubuntu-latest]
name: Lint Python
steps:
Expand Down Expand Up @@ -59,9 +59,9 @@ jobs:
MINIMUM_COVERAGE_PERCENTAGE: 80
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc.1']
# TODO: Switch back to macos-latest once https://github.com/actions/python-versions/pull/114 is fixed
os: [ubuntu-18.04, ubuntu-latest, windows-latest, macos-12]
os: [ubuntu-latest, windows-latest, macos-12]
name: Test with Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -101,7 +101,8 @@ jobs:
run: python setup.py install
- name: Generate type stubs and documentation, and validate they match
# Only validate documentation on macOS, as Linux and Windows have a subset of the classes
if: matrix.python-version != '3.6' && startsWith(matrix.os, 'macos')
# TODO: 3.11.0-rc1 doesn't include type hints when generating type stubs.
if: matrix.python-version != '3.6' && matrix.python-version != '3.11.0-rc.1' && startsWith(matrix.os, 'macos')
run: python3 -m scripts.generate_type_stubs_and_docs --check
- name: Install VSTs for testing
env:
Expand Down Expand Up @@ -133,7 +134,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc.1']
os: [ubuntu-latest]
name: Test with Python ${{ matrix.python-version }} + Address Sanitizer
steps:
Expand Down Expand Up @@ -185,15 +186,15 @@ jobs:
- { os: macos-12, build: cp38-macosx_x86_64 }
- { os: macos-12, build: cp39-macosx_x86_64 }
- { os: macos-12, build: cp310-macosx_x86_64 }
# - { os: macos-12, build: cp311-macosx_x86_64 }
- { os: macos-12, build: cp311-macosx_x86_64 }
- { os: macos-12, build: cp38-macosx_universal2 }
- { os: macos-12, build: cp39-macosx_universal2 }
- { os: macos-12, build: cp310-macosx_universal2 }
# - { os: macos-12, build: cp311-macosx_universal2 }
- { os: macos-12, build: cp311-macosx_universal2 }
- { os: macos-12, build: cp38-macosx_arm64 }
- { os: macos-12, build: cp39-macosx_arm64 }
- { os: macos-12, build: cp310-macosx_arm64 }
# - { os: macos-12, build: cp311-macosx_arm64 }
- { os: macos-12, build: cp311-macosx_arm64 }
- { os: macos-12, build: pp37-macosx_x86_64 }
- { os: macos-12, build: pp38-macosx_x86_64 }
- { os: macos-12, build: pp39-macosx_x86_64 }
Expand All @@ -202,6 +203,7 @@ jobs:
- { os: windows-latest, build: cp38-win_amd64 }
- { os: windows-latest, build: cp39-win_amd64 }
- { os: windows-latest, build: cp310-win_amd64 }
- { os: windows-latest, build: cp311-win_amd64 }
- { os: windows-latest, build: pp37-win_amd64 }
- { os: windows-latest, build: pp38-win_amd64 }
- { os: windows-latest, build: pp39-win_amd64 }
Expand Down Expand Up @@ -231,9 +233,9 @@ jobs:
# Used to host cibuildwheel, so version doesn't really matter
- uses: actions/setup-python@v2
with:
python-version: "3.8"
python-version: "3.10"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel>=2.0.0a4
run: python -m pip install cibuildwheel>=2.9.0
- name: Set up QEMU for aarch64 on Linux
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
Expand All @@ -255,15 +257,11 @@ jobs:
# so we can't run post-wheel-build tests there.
# Also testing any pypy versions fails, as TensorFlow isn't pypy compatible.
CIBW_TEST_SKIP: "*manylinux* *pp* *-macosx_universal2:arm64"
CIBW_PRERELEASE_PYTHONS: true
# Use the minimum macOS deployment target that has C++17 support:
MACOSX_DEPLOYMENT_TARGET: "10.13"
- uses: actions/upload-artifact@v2
with:
# TODO(psobot): Don't upload wheels for prerelease Python versions: 3.11
path: |
./wheelhouse/*.whl
!./wheelhouse/*cp311*.whl
path: ./wheelhouse/*.whl

upload-pypi:
needs: [build-wheels]
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: 'v0.5.9',
VERSION: 'v0.5.10',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
8 changes: 4 additions & 4 deletions docs/compatibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/compatibility.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="pedalboard allows loading VST3® and Audio Unit plugins, which could contain any code. Most plugins that have been tested work just fine with pedalboard, but some plugins may not work with pedalboar..." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Pedalboard Internals" href="internals.html" /><link rel="prev" title="Frequently Asked Questions" href="faq.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>Plugin Compatibility - Pedalboard v0.5.9 Documentation</title>
<title>Plugin Compatibility - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
8 changes: 4 additions & 4 deletions docs/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/examples.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="Quick start: Making a guitar-style pedalboard: Using VST3® or Audio Unit plugins: Creating parallel effects chains: This example creates a delayed pitch-shift effect by running multiple Pedalboards..." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Frequently Asked Questions" href="faq.html" /><link rel="prev" title="The pedalboard.io API" href="reference/pedalboard.io.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>Examples - Pedalboard v0.5.9 Documentation</title>
<title>Examples - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
8 changes: 4 additions & 4 deletions docs/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/faq.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="Can Pedalboard be used with live (real-time) audio?: Technically, yes, Pedalboard could be used with live audio input/output. See: Pull request #98, which contains an experimental live audio interf..." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Plugin Compatibility" href="compatibility.html" /><link rel="prev" title="Examples" href="examples.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>Frequently Asked Questions - Pedalboard v0.5.9 Documentation</title>
<title>Frequently Asked Questions - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
6 changes: 3 additions & 3 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Index - Pedalboard v0.5.9 Documentation</title>
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Index - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -122,7 +122,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -148,7 +148,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/index.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="🎛 🔊 Documentation for Pedalboard: A Python library for working with audio." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="The pedalboard API" href="reference/pedalboard.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>Pedalboard v0.5.9 Documentation</title>
<title>Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="#"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="#"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
8 changes: 4 additions & 4 deletions docs/internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/internals.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="Pedalboard is a Python wrapper around JUCE, an open-source cross-platform C++ library for developing audio applications. Most of Pedalboard is written in C++ using pybind11, a library for binding C..." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="License" href="license.html" /><link rel="prev" title="Plugin Compatibility" href="compatibility.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>Pedalboard Internals - Pedalboard v0.5.9 Documentation</title>
<title>Pedalboard Internals - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
8 changes: 4 additions & 4 deletions docs/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta property="og:url" content="https://spotify.github.io/pedalboard/license.html" />

<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />

<meta property="og:description" content="pedalboard is Copyright 2021-2022 Spotify AB. pedalboard is licensed under the GNU General Public License v3. pedalboard includes a number of libraries that are statically compiled, and which carry..." />

Expand All @@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="prev" title="Pedalboard Internals" href="internals.html" />

<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
<title>License - Pedalboard v0.5.9 Documentation</title>
<title>License - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
Expand Down Expand Up @@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
<a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
<span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
Expand Down
Loading

0 comments on commit 8c0ad96

Please sign in to comment.