Skip to content

Commit

Permalink
Merge pull request #25 from mill1000/issue/min_python_version
Browse files Browse the repository at this point in the history
Set minimum Python version to 3.8.
  • Loading branch information
mill1000 authored Aug 8, 2023
2 parents 3084ab1 + bc36fa1 commit 13171a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- uses: actions/cache@v3
with:
path: ~/.cache/pip
Expand All @@ -24,12 +24,17 @@ jobs:

run-unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: python -c "import sys; print(sys.version)"
- run: |
python -m pip install --upgrade pip
pip install --editable .
Expand Down
7 changes: 1 addition & 6 deletions msmart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import sys

if sys.version_info >= (3, 8):
from importlib import metadata
else:
import importlib_metadata as metadata
from importlib import metadata

__version__ = metadata.version("msmart")
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
authors = [
{name = "Tucker Kern", email = "tuckkern@gmail.com"},
]
requires-python = ">=3.5"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"Programming Language :: Python :: 3",
Expand All @@ -20,8 +20,7 @@ dependencies = [
"click",
"pycryptodome",
"requests",
"ifaddr",
"importlib-metadata; python_version<'3.8'",
"ifaddr"
]
dynamic = ["version"]

Expand Down

0 comments on commit 13171a7

Please sign in to comment.