瀏覽代碼

test & declare compatibility with python3.13

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fabian Peter Hammerle 4 天之前
父節點
當前提交
3354013687
共有 5 個文件被更改,包括 15 次插入2 次删除
  1. 1 0
      .github/workflows/python.yml
  2. 1 1
      CHANGELOG.md
  3. 3 0
      Pipfile
  4. 9 1
      Pipfile.lock
  5. 1 0
      setup.py

+ 1 - 0
.github/workflows/python.yml

@@ -36,6 +36,7 @@ jobs:
         python-version:
         - '3.11'
         - '3.12'
+        - '3.13'
       fail-fast: false
     steps:
     - uses: actions/checkout@v7

+ 1 - 1
CHANGELOG.md

@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 ### Added
-- declare compatibility with `python3.11` & `python3.12`
+- declare compatibility with `python3.11`, `python3.12` & `python3.13`
 
 ### Fixed
 - `dockerfile`: support build without git history

+ 3 - 0
Pipfile

@@ -42,6 +42,9 @@ pytest-cov = "*"
 # urllib3>=2 removed urllib3.contrib.appengine used by python-telegram-bot==13.15
 # > E   ModuleNotFoundError: No module named 'urllib3.contrib.appengine'
 urllib3 = "<2"
+# python-telegram-bot==13.15 uses imghdr in telegram/files/inputfile.py;
+# imghdr was removed from the standard library in python3.13 (PEP 594)
+standard-imghdr = "*"
 
 [requires]
 python_version = "3"

+ 9 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "23494abf2cbaa203ea4e974e66b82a3746689ddc2461e7bd0660ffafefa6bf02"
+            "sha256": "4014f43151ba2d988477455eae82c88587f905046af01fe3f72f1232c795f648"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -761,6 +761,14 @@
             "markers": "python_version >= '3.8'",
             "version": "==0.4.1"
         },
+        "standard-imghdr": {
+            "hashes": [
+                "sha256:30a1bff5465605bb496f842a6ac3cc1f2131bf3025b0da28d4877d6d4b7cc8e9",
+                "sha256:8d9c68058d882f6fc3542a8d39ef9ff94d2187dc90bd0c851e0902776b7b7a42"
+            ],
+            "index": "pypi",
+            "version": "==3.13.0"
+        },
         "tomlkit": {
             "hashes": [
                 "sha256:177a05aece5a8ca5266fd3c448abb47b8d352f09d477d3ca8332db4d89b24304",

+ 1 - 0
setup.py

@@ -55,6 +55,7 @@ setuptools.setup(
         # .github/workflows/python.yml
         "Programming Language :: Python :: 3.11",
         "Programming Language :: Python :: 3.12",
+        "Programming Language :: Python :: 3.13",
     ],
     entry_points={
         "console_scripts": [