This is an automated email from the ASF dual-hosted git repository.

fcsaky pushed a commit to branch v5.1
in repository https://gitbox.apache.org/repos/asf/flink-connector-aws.git


The following commit(s) were added to refs/heads/v5.1 by this push:
     new 9682e86  [hotfix] Fix Python CI
9682e86 is described below

commit 9682e86b7f24ef890dbb74fa6ef6fd9a9b15b101
Author: Ferenc Csaky <[email protected]>
AuthorDate: Tue Jan 6 19:29:45 2026 +0100

    [hotfix] Fix Python CI
---
 flink-python/setup.py  | 22 ++++++++++++++++------
 flink-python/tox.ini   |  2 +-
 tools/releasing/shared |  2 +-
 3 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/flink-python/setup.py b/flink-python/setup.py
index 8c37061..fc8584b 100644
--- a/flink-python/setup.py
+++ b/flink-python/setup.py
@@ -79,7 +79,17 @@ def prepare_pyflink_dir():
     connector_version = pom_root.findall(
         
"./{http://maven.apache.org/POM/4.0.0}version";)[0].text.replace("-SNAPSHOT", 
".dev0")
 
-    flink_dependency = "apache-flink>=" + flink_version
+    # Pin to the minor version (e.g., >=1.19.1,<1.20.0) to allow patch updates
+    # but prevent major/minor version upgrades
+    version_parts = flink_version.split('.')
+    if len(version_parts) >= 2:
+        next_minor = str(int(version_parts[1]) + 1)
+        next_version = version_parts[0] + '.' + next_minor + '.0'
+        flink_dependency = "apache-flink>=" + flink_version + ",<" + 
next_version
+    else:
+        # Fallback to exact match if version format is unexpected
+        print("Falling back to exact match for unexpected version format: " + 
flink_version)
+        flink_dependency = "apache-flink==" + flink_version
 
     with io.open(VERSION_FILE, 'w', encoding='utf-8') as f:
         f.write('# Generated file, do not edit\n')
@@ -94,8 +104,8 @@ def prepare_pyflink_dir():
 print("Python version used to package: " + sys.version)
 
 # Python version check
-if sys.version_info < (3, 7):
-    print("Python versions prior to 3.7 are not supported for PyFlink.",
+if sys.version_info < (3, 8):
+    print("Python versions prior to 3.8 are not supported for PyFlink.",
           file=sys.stderr)
     sys.exit(-1)
 
@@ -132,7 +142,7 @@ setup(
     license='https://www.apache.org/licenses/LICENSE-2.0',
     author='Apache Software Foundation',
     author_email='[email protected]',
-    python_requires='>=3.7',
+    python_requires='>=3.8',
     install_requires=[flink_dependency],
     description='Apache Flink Python AWS Connector API',
     long_description=long_description,
@@ -144,10 +154,10 @@ setup(
     classifiers=[
         'Development Status :: 5 - Production/Stable',
         'License :: OSI Approved :: Apache Software License',
-        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
-        'Programming Language :: Python :: 3.10']
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11']
 )
 
 print("\nFlink AWS connector package is ready\n")
diff --git a/flink-python/tox.ini b/flink-python/tox.ini
index c21c00f..1f526fd 100644
--- a/flink-python/tox.ini
+++ b/flink-python/tox.ini
@@ -21,7 +21,7 @@
 # in multiple virtualenvs. This configuration file will run the
 # test suite on all supported python versions.
 # new environments will be excluded by default unless explicitly added to 
envlist.
-envlist = {py38, py39, py310}-cython
+envlist = {py39, py310, py311}-cython
 
 [testenv]
 whitelist_externals = /bin/bash
diff --git a/tools/releasing/shared b/tools/releasing/shared
index d15b90d..45bb68f 160000
--- a/tools/releasing/shared
+++ b/tools/releasing/shared
@@ -1 +1 @@
-Subproject commit d15b90de64799764d814c0b1ab2ee5e5e3baa1db
+Subproject commit 45bb68f550874ec398b1da344dd4d82e703b4be1

Reply via email to