Skip to content

Commit 0a88fde

Browse files
committed
Revert "python: Replace deprecated License with License-Expression (PEP 639).".
This reverts commit 7330836. The 'License-Expression' is not a classifier, so it must not be in the list of classifiers. Otherwise PyPI rejects the package: HTTPError: 400 Bad Request The server could not comply with the request since it is either malformed or otherwise incorrect. 400 'License-Expression :: Apache 2.0' is not a valid classifier. See https://packaging.python.org/specifications/core-metadata for more information. So, the commit is clearly wrong. The list of valid classifiers can be seen here: https://pypi.org/classifiers/ We probably shouldn't list the classifier at all and change the 'license' field instead. But that's a thing to explore later. For now, just revert the change to the legacy working state. Fixes: 7330836 ("python: Replace deprecated License with License-Expression (PEP 639).") Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
1 parent 028e626 commit 0a88fde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/setup.py.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ setup_args = dict(
9797
'Topic :: Database :: Front-Ends',
9898
'Topic :: Software Development :: Libraries :: Python Modules',
9999
'Topic :: System :: Networking',
100-
'License-Expression :: Apache 2.0',
100+
'License :: OSI Approved :: Apache Software License',
101101
'Programming Language :: Python :: 3',
102102
'Programming Language :: Python :: 3.7',
103103
],

0 commit comments

Comments
 (0)