Browse Source

drop compatibility with python3.6; test against python3.10

https://github.com/fphammerle/ical2vdir/commit/2b32144312b59398a91d4814ea1d3981076b3238
https://github.com/fphammerle/acpi-backlight/commit/6bcb9e76e45fc9564ad78feb8d211e6ac950bc65
Fabian Peter Hammerle 2 years ago
parent
commit
037142ba46
5 changed files with 20 additions and 22 deletions
  1. 1 1
      .github/workflows/python.yml
  2. 1 1
      CHANGELOG.md
  3. 5 4
      Pipfile
  4. 11 14
      Pipfile.lock
  5. 2 2
      setup.py

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

@@ -39,10 +39,10 @@ jobs:
     strategy:
       matrix:
         python-version:
-        - '3.6'
         - '3.7'
         - '3.8'
         - '3.9'
+        - '3.10'
       fail-fast: false
     steps:
     - uses: actions/checkout@v2.4.0

+ 1 - 1
CHANGELOG.md

@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - dockerfile: add `--force` flag to `rm` invocation to avoid interactive questions while running `podman build`
 
 ### Removed
-- compatibility with `python3.5`
+- compatibility with `python3.5` & `python3.6`
 
 ## [0.5.0] - 2020-11-06
 ### Added

+ 5 - 4
Pipfile

@@ -15,10 +15,11 @@ pylint-import-requirements = ">=2.0.3"
 pytest = "*"
 pytest-cov = "*"
 
-# python3.6 compatibility
-importlib-metadata = "<4.9"
-platformdirs = "<2.4.1"
-zipp = "<3.7"
+# 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 = "*"
 # mypy on python<3.8
 typed-ast = {markers = "python_version < '3.8'"}
 

+ 11 - 14
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "5ff57557f40049a38101fcfd789bbd1d832bbd5353b3b2ad5f9c114eb1274844"
+            "sha256": "8f431c21878248cca0378685afdc72ce7e9c8ff4325624ac55db484322b34b9b"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -139,11 +139,10 @@
         },
         "importlib-metadata": {
             "hashes": [
-                "sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e",
-                "sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668"
+                "sha256:899e2a40a8c4a1aec681feef45733de8a6c58f3f6a0dbed2eb6574b4387a77b6",
+                "sha256:951f0d8a5b7260e9db5e41d429285b5f451e928479f19d80818878527d36e95e"
             ],
-            "index": "pypi",
-            "version": "==4.8.3"
+            "version": "==4.10.1"
         },
         "iniconfig": {
             "hashes": [
@@ -257,11 +256,10 @@
         },
         "platformdirs": {
             "hashes": [
-                "sha256:367a5e80b3d04d2428ffa76d33f124cf11e8fff2acdaa9b43d545f5c7d661ef2",
-                "sha256:8868bbe3c3c80d42f20156f22e7131d2fb321f5bc86a2a345375c6481a67021d"
+                "sha256:1d7385c7db91728b83efd0ca99a5afb296cab9d0ed8313a45ed8ba17967ecfca",
+                "sha256:440633ddfebcc36264232365d7840a970e75e1018d15b4327d11f91909045fda"
             ],
-            "index": "pypi",
-            "version": "==2.4.0"
+            "version": "==2.4.1"
         },
         "pluggy": {
             "hashes": [
@@ -361,7 +359,7 @@
                 "sha256:4ca091dea149f945ec56afb48dae714f21e8692ef22a395223bcd328961b6a0e",
                 "sha256:7f001e5ac290a0c0401508864c7ec868be4e701886d5b573a9528ed3973d9d3b"
             ],
-            "markers": "python_version < '3.10'",
+            "index": "pypi",
             "version": "==4.0.1"
         },
         "wrapt": {
@@ -422,11 +420,10 @@
         },
         "zipp": {
             "hashes": [
-                "sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832",
-                "sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc"
+                "sha256:9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d",
+                "sha256:b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375"
             ],
-            "index": "pypi",
-            "version": "==3.6.0"
+            "version": "==3.7.0"
         }
     }
 }

+ 2 - 2
setup.py

@@ -55,10 +55,10 @@ setuptools.setup(
         "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
         "Operating System :: POSIX :: Linux",
         # .github/workflows/python.yml
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Topic :: Home Automation",
     ],
     entry_points={
@@ -67,7 +67,7 @@ setuptools.setup(
         ]
     },
     # >=3.6 variable type hints, f-strings & * to force keyword-only arguments
-    python_requires=">=3.6",
+    python_requires=">=3.7",  # python<3.7 untested
     # https://dbus.freedesktop.org/doc/dbus-python/news.html
     install_requires=["PyGObject<4", "dbus-python<2", "paho-mqtt<2"],
     setup_requires=["setuptools_scm"],