Repository: h2non/filetype.py (language: python)

Issue:
support python 3.10+
The package only supports up to python 3.9, please make it support up to the latest release.




Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index 21a6a6a..2236b93 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,8 @@
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
         'Topic :: System',
         'Topic :: System :: Filesystems',
         'Topic :: Utilities'],
diff --git a/tox.ini b/tox.ini
index 86c647a..0b7eaee 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py{27,35,36,37,38,39}, lint, test, doc, clean
+envlist = py27, py3{7,5,6,7,8,9,10,11}, lint, test, doc, clean
 skip_missing_interpreters = true
 
 [testenv:test]


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 90c5527..535d2fb 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,7 +20,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ ubuntu-latest ]
-        python-version: ["3.9"]
+        python-version: ["3.11"]
 
     steps: