Skip to content

Commit

Permalink
Remove support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Jul 30, 2023
1 parent 2de5018 commit 5dc679e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

container: python:${{ matrix.python-version }}

Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- uses: actions/checkout@v3
- name: Install dependencies
run: |
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
name = "scramp"
description = "An implementation of the SCRAM protocol."
readme = "README.rst"
requires-python = ">=3.7"
requires-python = ">=3.8"
keywords = ["SCRAM", "authentication", "SASL"]
license = {text = "MIT No Attribution"}
classifiers = [
Expand All @@ -18,18 +18,17 @@ classifiers = [
"License :: OSI Approved :: MIT No Attribution License (MIT-0)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
]
dependencies = [
"asn1crypto >= 1.5.1",
'importlib-metadata >= 1.0 ; python_version < "3.8"',
]
dynamic = ["version"]

Expand Down
7 changes: 2 additions & 5 deletions scramp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from importlib.metadata import version

from scramp.core import (
ScramClient,
ScramException,
Expand All @@ -7,9 +9,4 @@

__all__ = [ScramClient, ScramMechanism, ScramException, make_channel_binding]

try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version

__version__ = version("scramp")

0 comments on commit 5dc679e

Please sign in to comment.