Browse Source

test against python3.10

Fabian Peter Hammerle 2 years ago
parent
commit
fd03943401
4 changed files with 10 additions and 2 deletions
  1. 1 0
      .github/workflows/python.yml
  2. 6 0
      Pipfile
  3. 2 2
      Pipfile.lock
  4. 1 0
      setup.py

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

@@ -36,6 +36,7 @@ jobs:
         - '3.7'
         - '3.8'
         - '3.9'
+        - '3.10'
       fail-fast: false
     steps:
     - uses: actions/checkout@v2.3.4

+ 6 - 0
Pipfile

@@ -16,6 +16,12 @@ pylint-import-requirements = "*"
 pytest = "*"
 pytest-cov = "*"
 
+# python3.10 compatibility
+# >   File "[...]/lib/python3.10/site-packages/mypy/main.py", line 11, in <module>
+# >     from typing_extensions import Final, NoReturn
+# > ModuleNotFoundError: No module named 'typing_extensions'
+typing_extensions = "*"
+
 [requires]
 python_version = "3"
 

+ 2 - 2
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "35694f2f0f715db4ff89a1d2665e2279325f375ee8122d2ee782e414c29e3cbd"
+            "sha256": "aaf97c6f909c05fadff82a4b8b7de164ea4c2bbecf11efaf552f76fe5005105d"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -452,7 +452,7 @@
                 "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7",
                 "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"
             ],
-            "markers": "python_version < '3.10'",
+            "index": "pypi",
             "version": "==3.10.0.2"
         },
         "urllib3": {

+ 1 - 0
setup.py

@@ -46,6 +46,7 @@ setuptools.setup(
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Topic :: Utilities",
     ],
     entry_points={