File tree 5 files changed +26
-176
lines changed
aws_lambda_powertools/shared
5 files changed +26
-176
lines changed Original file line number Diff line number Diff line change 78
78
79
79
# We use a pinned version of Poetry to be certain it won't modify source code before we create a hash
80
80
- name : Install poetry
81
- run : pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
81
+ run : |
82
+ pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
83
+ pipx inject poetry git+https://github.com/monim67/poetry-bumpversion@ef49c63acef7fe8680789ddb31f376cc898f0012 # v0.3.0
82
84
83
85
- name : Bump package version
84
86
id : versioning
@@ -291,7 +293,7 @@ jobs:
291
293
292
294
- name : Create Git Tag
293
295
run : |
294
- git add pyproject.toml
296
+ git add pyproject.toml aws_lambda_powertools/shared/version.py
295
297
git commit -m "chore: version bump"
296
298
git tag -a v"${RELEASE_VERSION}" -m "release_version: v${RELEASE_VERSION}"
297
299
git push origin v"${RELEASE_VERSION}"
@@ -332,7 +334,7 @@ jobs:
332
334
id : create-pr
333
335
uses : ./.github/actions/create-pr
334
336
with :
335
- files : " pyproject.toml"
337
+ files : " pyproject.toml aws_lambda_powertools/shared/version.py "
336
338
temp_branch_prefix : " ci-bump"
337
339
pull_request_title : " chore(ci): bump version to ${{ needs.seal.outputs.RELEASE_VERSION }}"
338
340
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ target:
6
6
7
7
dev :
8
8
pip install --upgrade pip pre-commit poetry
9
+ @$(MAKE ) dev-version-plugin
9
10
poetry install --extras " all"
10
11
pre-commit install
11
12
12
13
dev-gitpod :
13
14
pip install --upgrade pip poetry
15
+ @$(MAKE ) dev-version-plugin
14
16
poetry install --extras " all"
15
17
pre-commit install
16
18
@@ -106,3 +108,7 @@ changelog:
106
108
107
109
mypy :
108
110
poetry run mypy --pretty aws_lambda_powertools examples
111
+
112
+
113
+ dev-version-plugin :
114
+ poetry self add git+https://github.com/monim67/poetry-bumpversion@ef49c63acef7fe8680789ddb31f376cc898f0012
Original file line number Diff line number Diff line change 1
- """
2
- This file serves to create a constant that informs
3
- the current version of the Powertools package and exposes it in the main module
1
+ """Exposes version constant to avoid circular dependencies."""
4
2
5
- Since Python 3.8 there the built-in importlib.metadata
6
- When support for Python3.7 is dropped, we can remove the optional importlib_metadata dependency
7
- See: https://docs.python.org/3/library/importlib.metadata.html
8
- """
9
- import sys
10
-
11
- if sys .version_info >= (3 , 8 ):
12
- from importlib .metadata import version
13
- else :
14
- from importlib_metadata import version
15
-
16
- VERSION = version ("aws-lambda-powertools" )
3
+ VERSION = "2.16.1"
You can’t perform that action at this time.
0 commit comments