Remove support for Python 3.7 in the build and docs

This commit is contained in:
Šarūnas Nejus 2024-06-04 18:14:23 +01:00
parent 4c844d6efa
commit 0aa361e6c8
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
5 changed files with 17 additions and 14 deletions

View file

@ -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: |

View file

@ -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)
--------------------

View file

@ -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)

View file

@ -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.

View file

@ -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",