Skip to content

Commit 8c8c966

Browse files
bjornjorgensendongjoon-hyun
authored andcommitted
[SPARK-53443][PYTHON] Update python to SPDX-license
### What changes were proposed in this pull request? update to the SPDX license https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license ### Why are the changes needed? when we build pyspark we get an warning Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. <img width="1040" height="632" alt="image" src="https://github.com/user-attachments/assets/dc09ae25-8fe0-4868-8d60-dd396d775591" /> With the PR <img width="1367" height="866" alt="image" src="https://github.com/user-attachments/assets/9220b3cd-74e5-4889-bb2e-929a2dd8245c" /> ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass CI/CD test and check in the builds log to see if the deprecated warning is there. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52184 from bjornjorgensen/update-python-to-SPDX-license. Authored-by: Bjørn Jørgensen <bjornjorgensen@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 9ada1e7 commit 8c8c966

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

python/packaging/classic/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def run(self):
342342
"pyspark.examples.src.main.python": ["*.py", "*/*.py"],
343343
},
344344
scripts=scripts,
345-
license="http://www.apache.org/licenses/LICENSE-2.0",
345+
license="Apache-2.0",
346346
# Don't forget to update python/docs/source/getting_started/install.rst
347347
# if you're updating the versions or dependencies.
348348
install_requires=["py4j==0.10.9.9"],
@@ -380,7 +380,6 @@ def run(self):
380380
python_requires=">=3.10",
381381
classifiers=[
382382
"Development Status :: 5 - Production/Stable",
383-
"License :: OSI Approved :: Apache Software License",
384383
"Programming Language :: Python :: 3.10",
385384
"Programming Language :: Python :: 3.11",
386385
"Programming Language :: Python :: 3.12",

python/packaging/client/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
url="https://github.com/apache/spark/tree/master/python",
203203
packages=connect_packages + test_packages,
204204
include_package_data=True,
205-
license="http://www.apache.org/licenses/LICENSE-2.0",
205+
license="Apache-2.0",
206206
# Don't forget to update python/docs/source/getting_started/install.rst
207207
# if you're updating the versions or dependencies.
208208
install_requires=[
@@ -217,7 +217,6 @@
217217
python_requires=">=3.10",
218218
classifiers=[
219219
"Development Status :: 5 - Production/Stable",
220-
"License :: OSI Approved :: Apache Software License",
221220
"Programming Language :: Python :: 3.10",
222221
"Programming Language :: Python :: 3.11",
223222
"Programming Language :: Python :: 3.12",

python/packaging/connect/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
url="https://github.com/apache/spark/tree/master/python",
112112
packages=connect_packages,
113113
include_package_data=True,
114-
license="http://www.apache.org/licenses/LICENSE-2.0",
114+
license="Apache-2.0",
115115
# Don't forget to update python/docs/source/getting_started/install.rst
116116
# if you're updating the versions or dependencies.
117117
install_requires=[
@@ -127,7 +127,6 @@
127127
python_requires=">=3.9",
128128
classifiers=[
129129
"Development Status :: 5 - Production/Stable",
130-
"License :: OSI Approved :: Apache Software License",
131130
"Programming Language :: Python :: 3.9",
132131
"Programming Language :: Python :: 3.10",
133132
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)