Drop support for Python 3.7

Installing on Python 3.7 no longer works due to lack of support in the
minimal version of setuptools_scm. This commit makes the change
official, but it happened a while ago.
This commit is contained in:
Hugo Osvaldo Barrera 2025-04-07 18:14:53 +02:00
parent 057f3af293
commit 32453cccfc
5 changed files with 6 additions and 7 deletions

View file

@ -9,11 +9,12 @@ Package maintainers and users who have to manually update their installation
may want to subscribe to `GitHub's tag feed may want to subscribe to `GitHub's tag feed
<https://github.com/pimutils/vdirsyncer/tags.atom>`_. <https://github.com/pimutils/vdirsyncer/tags.atom>`_.
Version 0.19.4 Version 0.20.0
============== ==============
- Remove dependency on abandoned ``atomicwrites`` library. - Remove dependency on abandoned ``atomicwrites`` library.
- Implement ``filter_hook`` for the HTTP storage. - Implement ``filter_hook`` for the HTTP storage.
- Drop support for Python 3.7.
Version 0.19.3 Version 0.19.3
============== ==============

View file

@ -42,7 +42,7 @@ If your distribution doesn't provide a package for vdirsyncer, you still can
use Python's package manager "pip". First, you'll have to check that the use Python's package manager "pip". First, you'll have to check that the
following things are installed: following things are installed:
- Python 3.7 to 3.11 and pip. - Python 3.8 to 3.11 and pip.
- ``libxml`` and ``libxslt`` - ``libxml`` and ``libxslt``
- ``zlib`` - ``zlib``
- Linux or macOS. **Windows is not supported**, see :gh:`535`. - Linux or macOS. **Windows is not supported**, see :gh:`535`.

View file

@ -26,7 +26,6 @@ classifiers = [
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Topic :: Internet", "Topic :: Internet",
@ -60,7 +59,6 @@ select = [
# "TID", # "TID",
"RSE" "RSE"
] ]
target-version = "py37"
[tool.ruff.isort] [tool.ruff.isort]
force-single-line = true force-single-line = true

View file

@ -21,8 +21,8 @@ except ImportError: # pragma: no cover
def _check_python_version(): def _check_python_version():
import sys import sys
if sys.version_info < (3, 7, 0): # noqa: UP036 if sys.version_info < (3, 8, 0): # noqa: UP036
print("vdirsyncer requires at least Python 3.7.") print("vdirsyncer requires at least Python 3.8.")
sys.exit(1) sys.exit(1)

View file

@ -210,7 +210,7 @@ def open_graphical_browser(url, new=0, autoraise=True):
cli_names = {"www-browser", "links", "links2", "elinks", "lynx", "w3m"} cli_names = {"www-browser", "links", "links2", "elinks", "lynx", "w3m"}
if webbrowser._tryorder is None: # Python 3.7 if webbrowser._tryorder is None: # Python 3.8
webbrowser.register_standard_browsers() webbrowser.register_standard_browsers()
for name in webbrowser._tryorder: for name in webbrowser._tryorder: