Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[build-system]
requires = [
# first version that supports Python 3.12; older versions may work
# with previous Python versions, but are not tested
"setuptools >= 66.1"
# Required for PEP 639 support
"setuptools >= 77.0.3"
]
build-backend = "setuptools.build_meta"

Expand All @@ -16,7 +15,8 @@ requires-python = ">=3.9"

description = "Foreign Function Interface for Python calling C code."
readme = "README.md"
license = { file = "LICENSE" }
license = "MIT-0 AND MIT"
license-files = ["LICENSE", "src/c/libffi_x86_x64/LICENSE"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds the license for libffi_x86_64. Is this part of the wheel for all platform or just x86_64?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, license-files cannot be configured dynamically, it must be the same for all platforms: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata. Whether or not the license for libffi should be included or excluded is another question.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also from-source builds that will not bundle libffi at all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's distributed with the source dist, isn't it? I would therefore argue the package should reference that licence.

classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down
Loading