diff --git a/MANIFEST.in b/MANIFEST.in index 9561fb1..bfb51c7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ include README.rst +include LICENSE +include lz4libs/LICENSE +include lz4libs/LICENSE.xxhash diff --git a/docs/license.rst b/docs/license.rst index 3d599fa..5fdc679 100644 --- a/docs/license.rst +++ b/docs/license.rst @@ -2,3 +2,11 @@ Licensing ========= Code specific to this project is covered by the `BSD 3-Clause License `_ + +This package bundles the LZ4 and xxHash C libraries (under ``lz4libs/``) when +they are built from source rather than linked against a system-provided +``liblz4``. Those libraries are covered by their own `BSD 2-Clause License +`_, copyright Yann Collet. The +license texts are included alongside the vendored sources in +``lz4libs/LICENSE`` and ``lz4libs/LICENSE.xxhash``, and are packaged with the +distributed sdist and wheel. diff --git a/lz4libs/LICENSE b/lz4libs/LICENSE new file mode 100644 index 0000000..4884916 --- /dev/null +++ b/lz4libs/LICENSE @@ -0,0 +1,24 @@ +LZ4 Library +Copyright (c) 2011-2020, Yann Collet +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* 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. + +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. diff --git a/lz4libs/LICENSE.xxhash b/lz4libs/LICENSE.xxhash new file mode 100644 index 0000000..e4c5da7 --- /dev/null +++ b/lz4libs/LICENSE.xxhash @@ -0,0 +1,26 @@ +xxHash Library +Copyright (c) 2012-2021 Yann Collet +All rights reserved. + +BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* 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. + +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. diff --git a/setup.py b/setup.py index eb9030f..2f82a92 100644 --- a/setup.py +++ b/setup.py @@ -183,6 +183,11 @@ def pkgconfig_installed_check(lib, required_version, default): author='Jonathan Underwood', author_email='jonathan.underwood@gmail.com', license='BSD-3-Clause', + license_files=[ + 'LICENSE', + 'lz4libs/LICENSE', + 'lz4libs/LICENSE.xxhash', + ], url='https://github.com/python-lz4/python-lz4', packages=packages, ext_modules=ext_modules,