-
Notifications
You must be signed in to change notification settings - Fork 13.7k
[FLINK-38231][python] Standardise use of uv for PyFlink building, testing & linting #26897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ echo "Detected OS: ${sys_os}" | |
sys_machine=$(uname -m) | ||
echo "Detected machine: ${sys_machine}" | ||
|
||
wget "https://github.com/astral-sh/uv/releases/download/0.5.23/uv-installer.sh" -O "uv-installer.sh" | ||
wget "https://github.com/astral-sh/uv/releases/download/0.8.9/uv-installer.sh" -O "uv-installer.sh" | ||
chmod +x uv-installer.sh | ||
|
||
UV_UNMANAGED_INSTALL="uv-bin" ./uv-installer.sh | ||
|
@@ -34,10 +34,10 @@ source venv/bin/activate "" | |
# install PyFlink dependency | ||
if [[ $1 = "" ]]; then | ||
# install the latest version of pyflink | ||
pip install apache-flink | ||
uv pip install apache-flink | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I notice we are using a very back level version of uv. Can we use the latest here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll bump it to the latest - we could also use the |
||
else | ||
# install the specified version of pyflink | ||
pip install "apache-flink==$1" | ||
uv pip install "apache-flink==$1" | ||
fi | ||
|
||
# deactivate the python virtual environment | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,30 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
################################################################################ | ||
[build-system] | ||
# Minimum requirements for the build system to execute. | ||
requires = [ | ||
"setuptools>=75.3", | ||
"wheel", | ||
] | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
[project] | ||
name = "apache-flink-libraries" | ||
description = "Apache Flink Libraries" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
authors = [ | ||
{name = "Apache Software Foundation", email = "[email protected]"} | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dynamic = ["version", "dependencies"] | ||
|
||
[metadata] | ||
description-file = README.md | ||
[project.urls] | ||
homepage = "https://flink.apache.org" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,27 +215,11 @@ def find_file_path(pattern): | |
PACKAGE_DATA['pyflink.licenses'] = ['*'] | ||
|
||
setup( | ||
name='apache-flink-libraries', | ||
version=VERSION, | ||
packages=PACKAGES, | ||
include_package_data=True, | ||
package_dir=PACKAGE_DIR, | ||
package_data=PACKAGE_DATA, | ||
url='https://flink.apache.org', | ||
license='https://www.apache.org/licenses/LICENSE-2.0', | ||
author='Apache Software Foundation', | ||
author_email='[email protected]', | ||
python_requires='>=3.9', | ||
description='Apache Flink Libraries', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12'], | ||
) | ||
finally: | ||
if in_flink_source: | ||
|
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.