Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/packages/pytomlpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ versions:
gpl-sources:
filename: gpl-sources.tar
description: gcc
- version: 1.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ludovic Henry <[email protected]>
Date: Wed, 14 Oct 2026 19:30:00 +0200
Subject: [PATCH] ship toml++'s and pybind11's licences in the wheel's dist-info

The pytomlpp._impl extension compiles in the header-only toml++
library from the third_party/tomlplusplus git submodule (marzer/
tomlplusplus at e7aaccca3fa3dbde9818ab8313250f3da4976e37, MIT) and the
pybind11 headers that setup_requires pulls in (pybind11~=2.10, i.e.
2.13.6, BSD-3-Clause). Both licences require their copyright notice to
accompany binary redistributions.

setup.cfg sets the deprecated singular `license_file = LICENSE`, which
turns off setuptools' default LICEN[CS]E* root glob, so only pytomlpp's
own LICENSE reaches dist-info/licenses/. Reproduced against the real
pytomlpp-1.0.13-cp311-cp311-musllinux_1_1_x86_64.whl from PyPI: its
dist-info carries only LICENSE.

Add both texts unchanged at the project root (toml++'s from the
submodule commit above, pybind11's from the 2.13.6 release) as
LICENSE.tomlplusplus and LICENSE.pybind11, and list them with
pytomlpp's own LICENSE under `license_files`.

third_party/optional.hpp is CC0-1.0 and carries no notice requirement.

Upstream-Status: To upstream [not yet submitted; this port may only touch riseproject-dev/python-wheels]

Signed-off-by: Ludovic Henry <[email protected]>
---
LICENSE.pybind11 | 29 +++++++++++++++++++++++++++++
LICENSE.tomlplusplus | 16 ++++++++++++++++
setup.cfg | 5 ++++-
3 files changed, 49 insertions(+), 1 deletion(-)
create mode 100644 LICENSE.pybind11
create mode 100644 LICENSE.tomlplusplus

diff --git a/LICENSE.pybind11 b/LICENSE.pybind11
new file mode 100644
index 0000000..e466b0d
--- /dev/null
+++ b/LICENSE.pybind11
@@ -0,0 +1,29 @@
+Copyright (c) 2016 Wenzel Jakob <[email protected]>, All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Please also refer to the file .github/CONTRIBUTING.md, which clarifies licensing of
+external contributions to this project including patches, pull requests, etc.
diff --git a/LICENSE.tomlplusplus b/LICENSE.tomlplusplus
new file mode 100644
index 0000000..261cd61
--- /dev/null
+++ b/LICENSE.tomlplusplus
@@ -0,0 +1,16 @@
+MIT License
+
+Copyright (c) Mark Gillard <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/setup.cfg b/setup.cfg
index cb1e4ba..54d2dbb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -3,7 +3,10 @@ name = pytomlpp
version = 1.1.0
author = Bob Fang
author_email = [email protected]
-license_file = LICENSE
+license_files =
+ LICENSE
+ LICENSE.pybind11
+ LICENSE.tomlplusplus
description = A python wrapper for toml++
long_description = file: README.md
long_description_content_type = text/markdown
--
2.43.0

Loading