Skip to content

Commit

Permalink
chore: remove support for Python 3.7 (#3187)
Browse files Browse the repository at this point in the history
Python 3.7 reached EOL in June 2023: https://endoflife.date/python

Signed-off-by: Milas Bowman <[email protected]>
  • Loading branch information
milas authored Nov 21, 2023
1 parent fd2f502 commit 586988c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 3 additions & 9 deletions docker/version.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
try:
from ._version import __version__
except ImportError:
from importlib.metadata import version, PackageNotFoundError
try:
# importlib.metadata available in Python 3.8+, the fallback (0.0.0)
# is fine because release builds use _version (above) rather than
# this code path, so it only impacts developing w/ 3.7
from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version('docker')
except PackageNotFoundError:
__version__ = '0.0.0'
except ImportError:
__version__ = version('docker')
except PackageNotFoundError:
__version__ = '0.0.0'
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
install_requires=requirements,
tests_require=test_requirements,
extras_require=extras_require,
python_requires='>=3.7',
python_requires='>=3.8',
zip_safe=False,
test_suite='tests',
classifiers=[
Expand All @@ -69,7 +69,6 @@
'Operating System :: OS Independent',
'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',
Expand Down

0 comments on commit 586988c

Please sign in to comment.