Support Python 3.14 in tests (#2515)

This commit is contained in:
Soxoj
2026-04-11 15:11:09 +02:00
committed by GitHub
parent 28cb6c9ffb
commit 8267367bed
6 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"] python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps: steps:
- name: Checkout - name: Checkout
+3 -2
View File
@@ -1,4 +1,5 @@
import asyncio import asyncio
import inspect
import sys import sys
import time import time
from typing import Any, Iterable, List, Callable from typing import Any, Iterable, List, Callable
@@ -113,7 +114,7 @@ class AsyncioProgressbarQueueExecutor(AsyncExecutor):
async def increment_progress(self, count): async def increment_progress(self, count):
"""Update progress by calling the provided progress function.""" """Update progress by calling the provided progress function."""
if self.progress: if self.progress:
if asyncio.iscoroutinefunction(self.progress): if inspect.iscoroutinefunction(self.progress):
await self.progress(count) await self.progress(count)
else: else:
self.progress(count) self.progress(count)
@@ -124,7 +125,7 @@ class AsyncioProgressbarQueueExecutor(AsyncExecutor):
"""Stop the progress tracking.""" """Stop the progress tracking."""
if hasattr(self.progress, "close") and self.progress: if hasattr(self.progress, "close") and self.progress:
close_func = self.progress.close close_func = self.progress.close
if asyncio.iscoroutinefunction(close_func): if inspect.iscoroutinefunction(close_func):
await close_func() await close_func()
else: else:
close_func() close_func()
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"version": 1, "version": 1,
"updated_at": "2026-04-10T10:28:14Z", "updated_at": "2026-04-11T13:07:15Z",
"sites_count": 3150, "sites_count": 3150,
"min_maigret_version": "0.6.0", "min_maigret_version": "0.6.0",
"data_sha256": "72a493fef4eb8958fe8ed0c9b895841ec10c335f1b8e5e9b24b50784be6ad017", "data_sha256": "72a493fef4eb8958fe8ed0c9b895841ec10c335f1b8e5e9b24b50784be6ad017",
+5
View File
@@ -15,6 +15,11 @@ repository = "https://github.com/soxoj/maigret"
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Information Technology", "Intended Audience :: Information Technology",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
+1
View File
@@ -3,4 +3,5 @@
filterwarnings = filterwarnings =
error error
ignore::UserWarning ignore::UserWarning
ignore:codecs.open\(\) is deprecated:DeprecationWarning:xmind.core.saver
asyncio_mode=auto asyncio_mode=auto
+1 -1
View File
@@ -3154,7 +3154,7 @@ Rank data fetched from Majestic Million by domains.
1. ![](https://www.google.com/s2/favicons?domain=https://flarum.es) [flarum.es (https://flarum.es)](https://flarum.es)*: top 100M, es, forum* 1. ![](https://www.google.com/s2/favicons?domain=https://flarum.es) [flarum.es (https://flarum.es)](https://flarum.es)*: top 100M, es, forum*
1. ![](https://www.google.com/s2/favicons?domain=https://forum.fibra.click) [forum.fibra.click (https://forum.fibra.click)](https://forum.fibra.click)*: top 100M, forum, it* 1. ![](https://www.google.com/s2/favicons?domain=https://forum.fibra.click) [forum.fibra.click (https://forum.fibra.click)](https://forum.fibra.click)*: top 100M, forum, it*
The list was updated at (2026-04-10) The list was updated at (2026-04-11)
## Statistics ## Statistics
Enabled/total sites: 2589/3150 = 82.19% Enabled/total sites: 2589/3150 = 82.19%