You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "martin-traverse (via GitHub)" <gi...@apache.org> on 2025/09/11 17:45:35 UTC

[PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

martin-traverse opened a new pull request, #47551:
URL: https://github.com/apache/arrow/pull/47551

   ### Rationale for this change
   
   This is to address #47550 (as per [PEP 639](https://peps.python.org/pep-0639/#spdx-license-expression-syntax), SPDX license expressions are now the standard for Python packages).
   
   ### What changes are included in this PR?
   
   Update to SPDX license metadata for the Python package (changes in pyproject.toml). Also remove license from the list of classifiers (this is deprecated). License files are currently specified in setup.cfg, there is no need to change these.
   
   ### Are these changes tested?
   
   There are no code changes.
   
   ### Are there any user-facing changes?
   
   No in that there are no code changes. Yes in that the Python package metadata is public.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-3282051578

   :warning: GitHub issue #47550 **has been automatically assigned in GitHub** to PR creator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #47551:
URL: https://github.com/apache/arrow/pull/47551#discussion_r2348881184


##########
python/pyproject.toml:
##########
@@ -32,9 +32,8 @@ dynamic = ["version"]
 requires-python = ">=3.10"
 description = "Python library for Apache Arrow"
 readme = {file = "README.md", content-type = "text/markdown"}
-license = {text = "Apache Software License"}
+license = "Apache-2.0"
 classifiers  = [
-    'License :: OSI Approved :: Apache Software License',

Review Comment:
   Is there a reason to remove the classifier?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-6015196517

   Thank you for your contribution. Unfortunately, this pull request has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this PR will be closed in 14 days.  Feel free to re-open this if it has been closed in error. If you do not have repository permissions to reopen the PR, please tag a maintainer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "martin-traverse (via GitHub)" <gi...@apache.org>.
martin-traverse commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-3282602202

   It looks like the reason for the failure in the tests in #47141 is that the test is expecting this:
   
       license = {text = "Apache-2.0"}
   
   Otherwise the changes in that PR look good to me. @paddyroddy, do you want to update your PR and we can try re-running the CI there? I'm happy to replicate on a new branch otherwise.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "rok (via GitHub)" <gi...@apache.org>.
rok commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-3282106913

   This was already proposed in #47141. It seems LICENSE.txt and NOTICE.txt will have to be added.
   cc @paddyroddy  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "paddyroddy (via GitHub)" <gi...@apache.org>.
paddyroddy commented on code in PR #47551:
URL: https://github.com/apache/arrow/pull/47551#discussion_r2391582341


##########
python/pyproject.toml:
##########
@@ -32,9 +32,8 @@ dynamic = ["version"]
 requires-python = ">=3.10"
 description = "Python library for Apache Arrow"
 readme = {file = "README.md", content-type = "text/markdown"}
-license = {text = "Apache Software License"}
+license = "Apache-2.0"
 classifiers  = [
-    'License :: OSI Approved :: Apache Software License',

Review Comment:
   Yeah, as said above, it seems they're phasing them out



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "paddyroddy (via GitHub)" <gi...@apache.org>.
paddyroddy commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-3283165004

   @martin-traverse I'm on holiday at the moment but can have a look when I'm back on 29th


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #47551:
URL: https://github.com/apache/arrow/pull/47551#discussion_r2355794660


##########
python/pyproject.toml:
##########
@@ -32,9 +32,8 @@ dynamic = ["version"]
 requires-python = ">=3.10"
 description = "Python library for Apache Arrow"
 readme = {file = "README.md", content-type = "text/markdown"}
-license = {text = "Apache Software License"}
+license = "Apache-2.0"
 classifiers  = [
-    'License :: OSI Approved :: Apache Software License',

Review Comment:
   Ok, it seems that NumPy have [removed their license classifier](https://github.com/numpy/numpy/commit/0f39fd27ff149b25f74fc58d589c92b4fd881226), so I'm fine with that as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-3318138753

   I think setuptools 77 is required: https://setuptools.pypa.io/en/latest/history.html#v77-0-0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #47551:
URL: https://github.com/apache/arrow/pull/47551#issuecomment-6015776072

   I think this is superseded by PR #47141, which added the SPDX licence expression as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "martin-traverse (via GitHub)" <gi...@apache.org>.
martin-traverse commented on code in PR #47551:
URL: https://github.com/apache/arrow/pull/47551#discussion_r2355772431


##########
python/pyproject.toml:
##########
@@ -32,9 +32,8 @@ dynamic = ["version"]
 requires-python = ">=3.10"
 description = "Python library for Apache Arrow"
 readme = {file = "README.md", content-type = "text/markdown"}
-license = {text = "Apache Software License"}
+license = "Apache-2.0"
 classifiers  = [
-    'License :: OSI Approved :: Apache Software License',

Review Comment:
   @pitrou - The Python packaging tools spit out repeated and fairly loud warnings about this:
   
       /private/var/folders/cn/7nm4fws564l2dl8k7n2wfgjm0000gn/T/build-env-6gz668wo/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
       !!
       
               ********************************************************************************
               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.
               ********************************************************************************
       
       !!
         self._finalize_license_expression()
   
   I have removed them in the packages I am responsible for because of this warning. However, it seems that a lot of packages are using SPDX license IDs in the "license" field but still keeping the classifiers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47550: [Python] Use SPDX convention for license metadata on PyPI [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou closed pull request #47551: GH-47550: [Python] Use SPDX convention for license metadata on PyPI
URL: https://github.com/apache/arrow/pull/47551


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org