From 047df977b1b66d41177f22d24bb52378d33c40c4 Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Sun, 24 Apr 2022 01:55:48 +0200 Subject: [PATCH] MAINT: Ensure that libint and hdf5 licenses are only distributed in the wheels i.e. exclude them from source-only distributions --- LICENSE => LICENSE.txt | 0 MANIFEST.in | 3 --- licenses/{hdf5.txt => LICENSE_HDF5.txt} | 0 licenses/{libint.txt => LICENSE_LIBINT.txt} | 0 licenses/README.rst | 2 +- pyproject.toml | 1 + setup.py | 1 + 7 files changed, 3 insertions(+), 4 deletions(-) rename LICENSE => LICENSE.txt (100%) rename licenses/{hdf5.txt => LICENSE_HDF5.txt} (100%) rename licenses/{libint.txt => LICENSE_LIBINT.txt} (100%) diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/MANIFEST.in b/MANIFEST.in index f522b9213..862a05615 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,6 @@ exclude test/* include *_requirements.txt -include licenses/*.txt -include licenses/*.rst - include nanoqm/py.typed recursive-include nanoqm *.pyi include nanoqm/basis/GTH_POTENTIALS diff --git a/licenses/hdf5.txt b/licenses/LICENSE_HDF5.txt similarity index 100% rename from licenses/hdf5.txt rename to licenses/LICENSE_HDF5.txt diff --git a/licenses/libint.txt b/licenses/LICENSE_LIBINT.txt similarity index 100% rename from licenses/libint.txt rename to licenses/LICENSE_LIBINT.txt diff --git a/licenses/README.rst b/licenses/README.rst index 686828302..a481e9018 100644 --- a/licenses/README.rst +++ b/licenses/README.rst @@ -1,3 +1,3 @@ Licenses for various third-party binaries distributed in the Nano-QMFlows wheels. -Note that no such files are present in source-only Nano-QMFlows distributions. +Note that aforementioned binaries are absent from source-only Nano-QMFlows distributions. diff --git a/pyproject.toml b/pyproject.toml index 6a0717720..bd01d4060 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ ignore_missing_imports = true [tool.cibuildwheel] build = "cp*-manylinux_x86_64" build-verbosity = "3" +before-all = "cp licenses/LICENSE*.txt ." repair-wheel-command = "auditwheel -v repair -w {dest_dir} {wheel}" manylinux-x86_64-image = "ghcr.io/nlesc-nano/manylinux2014_x86_64-qmflows" environment = { QMFLOWS_INCLUDEDIR="", QMFLOWS_LIBDIR="", CFLAGS="-Werror", LDFLAGS="-Wl,--strip-debug" } diff --git a/setup.py b/setup.py index fa8e336a6..554c9fa2b 100644 --- a/setup.py +++ b/setup.py @@ -171,6 +171,7 @@ def get_paths() -> "tuple[list[str], list[str]]": version=version['__version__'], description='Derivative coupling calculation', license='Apache-2.0', + license_files=["LICENSE*.txt"], url='https://github.com/SCM-NV/nano-qmflows', author='Felipe Zapata & Ivan Infante', author_email='f.zapata@esciencecenter.nl',