Browse Source

test library against python3.10

https://github.com/fphammerle/freesurfer-surface/commit/6f89b5e201958389a23a233f0e673dcf9d555039
Fabian Peter Hammerle 2 years ago
parent
commit
4173ab6200
4 changed files with 18 additions and 2 deletions
  1. 9 0
      .github/workflows/python.yml
  2. 6 0
      Pipfile
  3. 2 2
      Pipfile.lock
  4. 1 0
      setup.py

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

@@ -37,6 +37,7 @@ jobs:
         - '3.7'
         - '3.8'
         - '3.9'
+        - '3.10'
         pandas-version:
         - '' # locked version
         - 0.23.*
@@ -68,6 +69,14 @@ jobs:
         # > Cython-generated file 'pandas/_libs/algos.c' not found.
         - python-version: 3.9
           pandas-version: 0.25.*
+        - python-version: '3.10'
+          pandas-version: 0.23.*
+        - python-version: '3.10'
+          pandas-version: 0.24.*
+        - python-version: '3.10'
+          pandas-version: 0.25.*
+        - python-version: '3.10'
+          pandas-version: 1.1.* # building for >4min
       fail-fast: false
     steps:
     - uses: actions/checkout@v2.4.0

+ 6 - 0
Pipfile

@@ -18,6 +18,12 @@ pytest = "*"
 pytest-cov = "*"
 pytest-timeout = "*"
 
+# 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 = {markers = ""}
+
 [requires]
 python_version = "3"
 

+ 2 - 2
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "0b1945197b7afe4e719d11a528d95a5b20db43629fb456539a911990256d40ca"
+            "sha256": "a7be5441adfca51a733f881412ab301906edd81de15ca54198445cc2bcb2558a"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -536,7 +536,7 @@
                 "sha256:4ca091dea149f945ec56afb48dae714f21e8692ef22a395223bcd328961b6a0e",
                 "sha256:7f001e5ac290a0c0401508864c7ec868be4e701886d5b573a9528ed3973d9d3b"
             ],
-            "markers": "python_version >= '3.6'",
+            "index": "pypi",
             "version": "==4.0.1"
         },
         "wrapt": {

+ 1 - 0
setup.py

@@ -37,6 +37,7 @@ setuptools.setup(
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Topic :: Scientific/Engineering :: Information Analysis",
         "Topic :: Scientific/Engineering :: Medical Science Apps.",
         "Topic :: Utilities",