Skip to content
Draft
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/pygraphviz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ versions:
gpl-sources:
filename: gpl-sources.tar
description: the copyleft libraries bundled in the wheel
- version: 2.0.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From f0aed7f4528cff54aaa8f61d799df8814c67ffb3 Mon Sep 17 00:00:00 2001
From: Ludovic Henry <git@ludovic.dev>
Date: Fri, 28 Aug 2026 11:34:14 +0200
Subject: [PATCH] Ship the licences of the libraries bundled in the wheels

The Linux and Windows wheels bundle the shared libraries graphviz links --
cairo, pango, fontconfig, freetype, harfbuzz, fribidi, libthai, libdatrie,
graphite2, gd, libpng, libjpeg, libtiff, libwebp, libxcb and others. Several
are LGPL and the rest are MIT/BSD-style; all of them require their licence
text or copyright notice to travel with a binary redistribution. The wheels
ship only pygraphviz's own LICENSE and LICENSE.graphviz.

`license-files` is an explicit list, so setuptools' default LICEN[CS]E* glob
is off and a licence file dropped beside LICENSE is ignored. Widen the second
entry to LICENSE.* so the build can stage one file per bundled library --
LICENSE.graphviz keeps matching, so nothing is lost.

Upstream-Status: To upstream [same gap affects upstream's own manylinux and Windows wheels; not yet submitted to pygraphviz/pygraphviz]
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 43d2896..e78521f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,7 @@ description = "Python interface to Graphviz"
readme = "README.rst"
requires-python = ">=3.10"
license = "BSD-3-Clause"
-license-files = ['LICENSE', 'LICENSE.graphviz']
+license-files = ['LICENSE', 'LICENSE.*']
dynamic = ["version"]
keywords = [
"Networks",
Loading