From 0aa361e6c81040eb7591051a92b4bfc2c04908c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Tue, 4 Jun 2024 18:14:23 +0100 Subject: [PATCH] Remove support for Python 3.7 in the build and docs --- .github/workflows/ci.yaml | 8 ++++---- docs/changelog.rst | 4 ++++ docs/dev/plugins.rst | 12 ++++++------ docs/guides/main.rst | 4 ++-- setup.py | 3 +-- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e463af7c..55e47674a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest, windows-latest] - python-version: ['3.7', '3.8', '3.9', '3.x'] + python-version: ["3.8", "3.9", "3.x"] env: PY_COLORS: 1 @@ -50,7 +50,7 @@ jobs: tox -e py-test - name: Upload code coverage - if: matrix.python-version == '3.7' && matrix.platform == 'ubuntu-latest' + if: matrix.python-version == '3.8' && matrix.platform == 'ubuntu-latest' run: | pip install codecov || true codecov || true @@ -76,7 +76,7 @@ jobs: - name: Set up Python 3.x uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install base dependencies run: | @@ -98,7 +98,7 @@ jobs: - name: Set up Python 3.x uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install base dependencies run: | diff --git a/docs/changelog.rst b/docs/changelog.rst index f129edc54..9deb0aa92 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -10,6 +10,10 @@ Bug fixes: * Improved naming of temporary files by separating the random part with the file extension. +For packagers: + +* The minimum Python version is now 3.8. + 2.0.0 (May 30, 2024) -------------------- diff --git a/docs/dev/plugins.rst b/docs/dev/plugins.rst index 49123b8a0..92a7f870e 100644 --- a/docs/dev/plugins.rst +++ b/docs/dev/plugins.rst @@ -114,7 +114,7 @@ an example:: class SomePlugin(BeetsPlugin): def __init__(self): - super(SomePlugin, self).__init__() + super().__init__() self.register_listener('pluginload', loaded) Note that if you want to access an attribute of your plugin (e.g. ``config`` or @@ -125,7 +125,7 @@ registration process in this case:: class SomePlugin(BeetsPlugin): def __init__(self): - super(SomePlugin, self).__init__() + super().__init__() self.register_listener('pluginload', self.loaded) def loaded(self): @@ -354,7 +354,7 @@ Here's an example:: class MyPlugin(BeetsPlugin): def __init__(self): - super(MyPlugin, self).__init__() + super().__init__() self.template_funcs['initial'] = _tmpl_initial def _tmpl_initial(text): @@ -374,7 +374,7 @@ Here's an example that adds a ``$disc_and_track`` field:: class MyPlugin(BeetsPlugin): def __init__(self): - super(MyPlugin, self).__init__() + super().__init__() self.template_fields['disc_and_track'] = _tmpl_disc_and_track def _tmpl_disc_and_track(item): @@ -452,7 +452,7 @@ to register it:: from beets.plugins import BeetsPlugin class ExamplePlugin(BeetsPlugin): def __init__(self): - super(ExamplePlugin, self).__init__() + super().__init__() self.import_stages = [self.stage] def stage(self, session, task): print('Importing something!') @@ -596,7 +596,7 @@ plugin shall expose to the user:: class ExamplePlugin(BeetsPlugin): def __init__(self): - super(ExamplePlugin, self).__init__() + super().__init__() self.register_listener('before_choose_candidate', self.before_choose_candidate_event) diff --git a/docs/guides/main.rst b/docs/guides/main.rst index eda29ed2b..9468a8c50 100644 --- a/docs/guides/main.rst +++ b/docs/guides/main.rst @@ -10,7 +10,7 @@ Installing ---------- You will need Python. -Beets works on Python 3.7 or later. +Beets works on Python 3.8 or later. * **macOS** 11 (Big Sur) includes Python 3.8 out of the box. You can opt for a more recent Python installing it via `Homebrew`_ @@ -98,7 +98,7 @@ Installing on Windows Installing beets on Windows can be tricky. Following these steps might help you get it right: -1. If you don't have it, `install Python`_ (you want at least Python 3.7). The +1. If you don't have it, `install Python`_ (you want at least Python 3.8). The installer should give you the option to "add Python to PATH." Check this box. If you do that, you can skip the next step. diff --git a/setup.py b/setup.py index 8fa941023..594e66704 100755 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ if "sdist" in sys.argv: setup( name="beets", - version='2.0.0', + version="2.0.0", description="music tagger and library organizer", author="Adrian Sampson", author_email="adrian@radbox.org", @@ -180,7 +180,6 @@ setup( "Environment :: Web Environment", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",