From 5cb6831f16731f4763d9231fad1037b4912da987 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Fri, 2 Apr 2021 17:51:52 +0100 Subject: [PATCH] Set minimum supported Python version to 3.8 --- .github/workflows/ci.yaml | 2 +- gpsoauth/__init__.py | 1 - pyproject.toml | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77cbfc6..b0f536a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: name: Pre-commit strategy: matrix: - python-version: [3.6] + python-version: [3.8] runs-on: ubuntu-latest steps: - name: Check out the repository diff --git a/gpsoauth/__init__.py b/gpsoauth/__init__.py index d65b03c..f3b6e35 100644 --- a/gpsoauth/__init__.py +++ b/gpsoauth/__init__.py @@ -54,7 +54,6 @@ def init_poolmanager(self, *args, **kwargs): context.options |= ssl.OP_NO_COMPRESSION context.options |= ssl.OP_NO_SSLv2 context.options |= ssl.OP_NO_SSLv3 - # pylint: disable=attribute-defined-outside-init context.post_handshake_auth = True context.verify_mode = ssl.CERT_REQUIRED self.poolmanager = PoolManager(*args, ssl_context=context, **kwargs) diff --git a/pyproject.toml b/pyproject.toml index b620172..589dbaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,8 +11,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", ] @@ -21,7 +19,7 @@ homepage = "https://github.com/simon-weber/gpsoauth" repository = "https://github.com/simon-weber/gpsoauth" [tool.poetry.dependencies] -python = "^3.6.1" +python = "^3.8" pycryptodomex = "^3.10.1" requests = "^2.25.1" importlib-metadata = "^3.10.0" @@ -50,6 +48,7 @@ combine_as_imports = true [tool.pylint.master] extension-pkg-whitelist = [ "binascii", + "_ssl", ] [tool.pylint.format]