-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters