-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(shared): move to static version bumping to prevent issues with cu…
…stomers custom builds (#2386)
- Loading branch information
1 parent
8b71185
commit 8f0b808
Showing
5 changed files
with
26 additions
and
176 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
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,16 +1,3 @@ | ||
""" | ||
This file serves to create a constant that informs | ||
the current version of the Powertools package and exposes it in the main module | ||
"""Exposes version constant to avoid circular dependencies.""" | ||
|
||
Since Python 3.8 there the built-in importlib.metadata | ||
When support for Python3.7 is dropped, we can remove the optional importlib_metadata dependency | ||
See: https://docs.python.org/3/library/importlib.metadata.html | ||
""" | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): | ||
from importlib.metadata import version | ||
else: | ||
from importlib_metadata import version | ||
|
||
VERSION = version("aws-lambda-powertools") | ||
VERSION = "2.16.1" |
Oops, something went wrong.