mirror of https://github.com/docker/docker-py.git
chore: remove support for Python 3.7 (#3187)
Python 3.7 reached EOL in June 2023: https://endoflife.date/python Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
fd2f5029f0
commit
586988ce2d
|
@ -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
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
try:
|
||||
from ._version import __version__
|
||||
except ImportError:
|
||||
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__ = '0.0.0'
|
||||
|
|
3
setup.py
3
setup.py
|
@ -59,7 +59,7 @@ setup(
|
|||
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=[
|
||||
|
@ -69,7 +69,6 @@ setup(
|
|||
'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',
|
||||
|
|
Loading…
Reference in New Issue