Bladeren bron

drop compatibility with python3.6

https://github.com/fphammerle/systemctl-mqtt/commit/037142ba464d4fcfc02decf9ec8337aa26ff923f
Fabian Peter Hammerle 2 jaren geleden
bovenliggende
commit
c8776f5666
5 gewijzigde bestanden met toevoegingen van 19 en 29 verwijderingen
  1. 0 1
      .github/workflows/python.yml
  2. 1 1
      CHANGELOG.md
  3. 0 5
      Pipfile
  4. 10 14
      Pipfile.lock
  5. 8 8
      setup.py

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

@@ -36,7 +36,6 @@ jobs:
     strategy:
       matrix:
         python-version:
-        - '3.6'
         - '3.7'
         - '3.8'
         - '3.9'

+ 1 - 1
CHANGELOG.md

@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - GPLv3+ license
 
 ### Removed
-- compatibility with `python3.5`
+- compatibility with `python3.5` & `python3.6`
 
 ### Fixed
 - return type hint of function `bibtex_entry_from_pmid`

+ 0 - 5
Pipfile

@@ -15,11 +15,6 @@ pytest = "*"
 pytest-cov = "*"
 types-requests = "*"
 
-# python3.6 compatibility
-importlib-metadata = "<4.9"
-platformdirs = "<2.4.1"
-tomli = "<2"
-zipp = "<3.7"
 # mypy on python<3.8
 typed-ast = {markers = "python_version < '3.8'"}
 

+ 10 - 14
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "60761d58ec18f2e3d811889084775b4871b3059f6a7c6c6c31d76b8d21e17ef7"
+            "sha256": "3fa17dd5030f50ebe30d2545ed270b91b8186596d13a4da06f034f5ad211d66d"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -142,11 +142,10 @@
         },
         "importlib-metadata": {
             "hashes": [
-                "sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e",
-                "sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668"
+                "sha256:899e2a40a8c4a1aec681feef45733de8a6c58f3f6a0dbed2eb6574b4387a77b6",
+                "sha256:951f0d8a5b7260e9db5e41d429285b5f451e928479f19d80818878527d36e95e"
             ],
-            "index": "pypi",
-            "version": "==4.8.3"
+            "version": "==4.10.1"
         },
         "iniconfig": {
             "hashes": [
@@ -260,11 +259,10 @@
         },
         "platformdirs": {
             "hashes": [
-                "sha256:367a5e80b3d04d2428ffa76d33f124cf11e8fff2acdaa9b43d545f5c7d661ef2",
-                "sha256:8868bbe3c3c80d42f20156f22e7131d2fb321f5bc86a2a345375c6481a67021d"
+                "sha256:1d7385c7db91728b83efd0ca99a5afb296cab9d0ed8313a45ed8ba17967ecfca",
+                "sha256:440633ddfebcc36264232365d7840a970e75e1018d15b4327d11f91909045fda"
             ],
-            "index": "pypi",
-            "version": "==2.4.0"
+            "version": "==2.4.1"
         },
         "pluggy": {
             "hashes": [
@@ -331,7 +329,6 @@
                 "sha256:05b6166bff487dc068d322585c7ea4ef78deed501cc124060e0f238e89a9231f",
                 "sha256:e3069e4be3ead9668e21cb9b074cd948f7b3113fd9c8bba083f48247aab8b11c"
             ],
-            "index": "pypi",
             "version": "==1.2.3"
         },
         "typed-ast": {
@@ -441,11 +438,10 @@
         },
         "zipp": {
             "hashes": [
-                "sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832",
-                "sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc"
+                "sha256:9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d",
+                "sha256:b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375"
             ],
-            "index": "pypi",
-            "version": "==3.6.0"
+            "version": "==3.7.0"
         }
     }
 }

+ 8 - 8
setup.py

@@ -1,19 +1,20 @@
-import os
+import pathlib
 
 import setuptools
 
-with open("README.rst", "r") as readme:
-    LONG_DESCRIPTION = readme.read()
-
 setuptools.setup(
     name="pubmed-bibtex",
     use_scm_version={
-        "write_to": os.path.join("pubmed_bibtex", "version.py"),
+        "write_to": pathlib.Path(__file__).parent.joinpath(
+            "pubmed_bibtex", "version.py"
+        ),
         # `version` triggers pylint C0103
         "write_to_template": "__version__ = '{version}'\n",
     },
     description="Generate BibTeX Entries for PubMed Publications",
-    long_description=LONG_DESCRIPTION,
+    long_description=pathlib.Path(__file__)
+    .parent.joinpath("README.rst")
+    .read_text(encoding="utf8"),
     author="Fabian Peter Hammerle",
     author_email="fabian@hammerle.me",
     url="https://github.com/fphammerle/pubmed-bibtex",
@@ -37,7 +38,6 @@ setuptools.setup(
         "Intended Audience :: Science/Research",
         "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
         # .github/workflows/python.yml
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
@@ -51,7 +51,7 @@ setuptools.setup(
         ],
     },
     # >=3.6 for variable type hints
-    python_requires=">=3.6",
+    python_requires=">=3.7",  # python<3.7 untested
     install_requires=[
         "requests>=2,<3",
     ],