From 0ab6f6beed295c96210c7473fb0d3affbadbd2d9 Mon Sep 17 00:00:00 2001 From: "A. Best" Date: Fri, 12 Jul 2024 20:10:54 +0000 Subject: [PATCH 1/3] updates to address re changes for python 3.11+ --- setupbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupbase.py b/setupbase.py index af000cd4..356be499 100644 --- a/setupbase.py +++ b/setupbase.py @@ -671,7 +671,7 @@ def _translate_glob(pat): translated_parts.append(_translate_glob_part(part)) os_sep_class = '[%s]' % re.escape(SEPARATORS) res = _join_translated(translated_parts, os_sep_class) - return '{res}\\Z(?ms)'.format(res=res) + return '(?ms){res}\\Z'.format(res=res) def _join_translated(translated_parts, os_sep_class): From 71f77283a5846bf65b89a1707e15fe4f98453eb1 Mon Sep 17 00:00:00 2001 From: "A. Best" Date: Fri, 12 Jul 2024 20:19:03 +0000 Subject: [PATCH 2/3] moves to only using combined regex flags --- setupbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupbase.py b/setupbase.py index 356be499..66ba5b72 100644 --- a/setupbase.py +++ b/setupbase.py @@ -644,7 +644,7 @@ def _compile_pattern(pat, ignore_case=True): else: res = _translate_glob(pat) flags = re.IGNORECASE if ignore_case else 0 - return re.compile(res, flags=flags).match + return re.compile(res, flags=flags | re.DOTALL | re.MULTILINE).match def _iexplode_path(path): @@ -671,7 +671,7 @@ def _translate_glob(pat): translated_parts.append(_translate_glob_part(part)) os_sep_class = '[%s]' % re.escape(SEPARATORS) res = _join_translated(translated_parts, os_sep_class) - return '(?ms){res}\\Z'.format(res=res) + return '{res}\\Z'.format(res=res) def _join_translated(translated_parts, os_sep_class): From d0a9fcae7b995d8c788af33223b6db83fa2ddba0 Mon Sep 17 00:00:00 2001 From: Michael Chin Date: Tue, 23 Jul 2024 20:10:58 -0700 Subject: [PATCH 3/3] update changelog --- ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog.md b/ChangeLog.md index 9b9710fc..874a8140 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -8,6 +8,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd - Added better `%reset` user messaging on status check timeout ([Link to PR](https://github.com/aws/graph-notebook/pull/652)) - Modified the `%reset --snapshot` option to use the CreateGraphSnapshot API ([Link to PR](https://github.com/aws/graph-notebook/pull/654)) - Upgraded `setuptools` dependency to 70.x ([Link to PR](https://github.com/aws/graph-notebook/pull/649)) +- Experimental build support for Python 3.11 ([Link to PR](https://github.com/aws/graph-notebook/pull/645)) ## Release 4.5.0 (July 15, 2024)