Skip to content

Commit 0da3e87

Browse files
committed
Workaround backward compatibility issues with older setuptools versions due to license-files
The license-files field in the pyproject.toml was not allowed in older setuptools versions: ValueError: invalid pyproject.toml config: `project`. configuration error: `project` must not contain {'license-files'} properties This commit worksaround the issue by moving the license-files back to setup.py.
1 parent a7c2e80 commit 0da3e87

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ package-dir = {"" = "lib"}
1212
name = "cfv"
1313
description = "Command-line File Verify - versatile file checksum creator and verifier"
1414
readme = "README.md"
15-
license-files = ["COPYING", "lib/cfv/BitTorrent/LICENSE.txt"]
1615
classifiers = [
1716
"Development Status :: 5 - Production/Stable",
1817
"Environment :: Console",

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ def _get_version(path):
3131
# backward compatibility issues with older setuptools versions.
3232
# See: https://github.com/pypa/setuptools/issues/4903
3333
license_expression='GPL-2.0-or-later AND MIT',
34+
license_files=('COPYING', 'lib/cfv/BitTorrent/LICENSE.txt'),
3435
)

0 commit comments

Comments
 (0)