File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 101.3.0
4
+
5
+ * Upgrade Python version to 3.13
6
+ * Adjust get_remote_version() to compensate for changes in locals() in Python 3.13
7
+
3
8
## 101.2.1
4
9
5
10
- Remove ` clients.redis.rate_limit_cache_key ` (no longer used)
Original file line number Diff line number Diff line change 1
- FROM python:3.11 -bookworm AS test
1
+ FROM python:3.13 -bookworm AS test
2
2
WORKDIR /home/vcap/app
3
3
RUN apt-get update && \
4
4
apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 5
5
# - `make version-minor` for new features
6
6
# - `make version-patch` for bug fixes
7
7
8
- __version__ = "101.2.1 " # 67bdb2db1d590d079d507ea9662cf6fb
8
+ __version__ = "101.3.0 " # c6298a7a74b9758048d755d97673f55a
Original file line number Diff line number Diff line change @@ -50,8 +50,13 @@ def upgrade_version():
50
50
51
51
52
52
def get_remote_version ():
53
- exec (get_file_contents_from_github ("main" , "notifications_utils/version.py" ))
54
- return locals ()["__version__" ]
53
+ # The functionality of locals() has been optimised starting in Python 3.12 and further
54
+ # in Python 3.13 due to PEP 667 https://github.com/python/cpython/issues/118888
55
+ # locals is no longer has insight into a functions state. We now have to explicitly define a local scope dict.
56
+ local_scope = {}
57
+ version_data = get_file_contents_from_github ("main" , "notifications_utils/version.py" )
58
+ exec (version_data , {}, local_scope )
59
+ return local_scope ["__version__" ]
55
60
56
61
57
62
def get_app_version ():
Original file line number Diff line number Diff line change 2
2
# uv pip compile requirements_for_test.in pyproject.toml --output-file requirements_for_test.txt
3
3
amqp==5.2.0
4
4
# via kombu
5
- async-timeout==5.0.1
6
- # via redis
7
5
awscrt==0.22.0
8
6
# via botocore
9
7
beautifulsoup4==4.12.3
You can’t perform that action at this time.
0 commit comments