From 493ed05eae5b3da0b4f8d643bf166e57a2fb8f9f Mon Sep 17 00:00:00 2001 From: Blair Bonnett Date: Sun, 26 Jan 2025 13:55:40 +0100 Subject: [PATCH] Add REUSE license details for all files. --- .editorconfig | 3 + .flake8 | 5 - .github/workflows/README.md | 5 + .github/workflows/REUSE.toml | 6 ++ .github/workflows/ci-tests.yml | 3 + .github/workflows/lint.yml | 3 + .github/workflows/matplotlib-main.yml | 3 + .gitignore | 3 + LICENSE | 27 ------ LICENSES/0BSD.txt | 5 + LICENSES/BSD-3-Clause.txt | 11 +++ LICENSES/OFL-1.1.txt | 43 +++++++++ README.md | 11 ++- conftest.py | 3 + .../matplotlib-pgfutils/examples/README.md | 5 + .../examples/threecol/Makefile | 3 + .../examples/threecol/double.py | 3 + .../examples/threecol/latexmkrc | 3 + .../examples/threecol/pgfutils.cfg | 3 + .../examples/threecol/single.py | 3 + .../examples/threecol/threecol.tex | 3 + .../examples/threecol/triple.py | 3 + .../examples/twocol/Makefile | 3 + .../examples/twocol/double.py | 3 + .../examples/twocol/latexmkrc | 3 + .../examples/twocol/pgfutils.cfg | 3 + .../examples/twocol/single.py | 3 + .../examples/twocol/twocol.tex | 3 + data/share/matplotlib-pgfutils/latexmkrc | 3 + data/share/matplotlib-pgfutils/pgfutils.cfg | 3 + doc/config.md | 5 + doc/file_tracking.md | 5 + doc/index.md | 5 + doc/interactive.md | 5 + doc/latexmk.md | 5 + doc/usage.md | 5 + mkdocs.yml | 3 + pgfutils.py | 28 +----- pyproject.toml | 6 +- readthedocs.yml | 3 + tests/sources/REUSE.toml | 16 ++++ tests/sources/environment/check_set/basic.py | 3 + .../sources/environment/check_set/override.py | 3 + .../environment/check_set/pgfutils.cfg | 3 + tests/sources/environment/invalid/basic.py | 3 + .../sources/environment/invalid/pgfutils.cfg | 3 + tests/sources/environment/repeated/basic.py | 3 + .../sources/environment/repeated/pgfutils.cfg | 3 + tests/sources/external/cartopy_figure.py | 3 + tests/sources/external/seaborn_figure.py | 3 + tests/sources/extra_options.cfg | 3 + tests/sources/extra_options_rcparams.cfg | 3 + tests/sources/extra_rcparams.cfg | 3 + tests/sources/fix_raster_paths/document.tex | 3 + .../sources/fix_raster_paths/figures/noise.py | 3 + tests/sources/fix_raster_paths/pgfutils.cfg | 3 + tests/sources/fix_raster_paths/speckle.py | 3 + .../fonts/Cotham/CothamSans.otf.license | 2 + tests/sources/fonts/Cotham/OFL.txt | 93 ------------------- tests/sources/fonts/custom_font.py | 3 + tests/sources/fonts/noconfig/custom_font.py | 3 + tests/sources/fonts/pgfutils.cfg | 3 + tests/sources/kwargs/default.py | 3 + tests/sources/kwargs/overridden.py | 3 + tests/sources/kwargs/pgfutils.cfg | 3 + tests/sources/legend/legend_only.py | 3 + tests/sources/legend/pgfutils.cfg | 3 + .../pythonpath/libdir/custom_library.py | 3 + tests/sources/pythonpath/pgfutils.cfg | 3 + tests/sources/pythonpath/using_custom_lib.py | 3 + tests/sources/tikzpicture/document_pgf.tex | 3 + tests/sources/tikzpicture/document_tikz.tex | 3 + tests/sources/tikzpicture/pgfutils.cfg | 3 + tests/sources/tikzpicture/square.py | 3 + .../tracking/config_enabled/config_enabled.py | 3 + .../tracking/config_enabled/pgfutils.cfg | 3 + tests/sources/tracking/dependency_loadtxt.py | 3 + tests/sources/tracking/dependency_npy.py | 3 + tests/sources/tracking/dependency_pathlib.py | 3 + tests/sources/tracking/extra_dirs/multi.py | 3 + .../sources/tracking/extra_dirs/pgfutils.cfg | 3 + .../tracking/imports/cfg_extra/figure.py | 3 + .../tracking/imports/cfg_extra/pgfutils.cfg | 3 + .../tracking/imports/cfg_pythonpath/figure.py | 3 + .../imports/cfg_pythonpath/pgfutils.cfg | 3 + .../tracking/imports/lib/custom_lib.py | 3 + tests/sources/tracking/manual_dependencies.py | 3 + tests/sources/tracking/manual_dependency.py | 3 + tests/sources/tracking/multi.py | 3 + tests/sources/tracking/netcdf4/netcdf4.py | 3 + .../netcdf4/netcdf4_multi_explicit.py | 3 + .../tracking/netcdf4/netcdf4_multi_glob.py | 3 + tests/sources/tracking/netcdf4/pgfutils.cfg | 3 + tests/sources/tracking/netcdf4_in_setup.py | 3 + tests/sources/tracking/netcdf4_write.py | 3 + tests/sources/tracking/rasterisation.py | 3 + tests/sources/tracking/simple.py | 3 + .../tracking/simple_binary_nonimage.py | 3 + tests/sources/tracking/simple_fdopen.py | 3 + tests/sources/tracking/simple_nonbinary.py | 3 + tests/sources/tracking/simple_nonfile.py | 3 + tests/sources/tracking/simple_nonproject.py | 3 + tests/test_colors.py | 3 + tests/test_columns.py | 3 + tests/test_config.py | 3 + tests/test_data.py | 3 + tests/test_environment.py | 3 + tests/test_external.py | 3 + tests/test_fonts.py | 3 + tests/test_misc.py | 3 + tests/test_postprocessing.py | 3 + tests/test_pythonpath.py | 3 + tests/test_setup_figure.py | 3 + tests/test_tracking.py | 3 + tests/utils.py | 3 + 115 files changed, 423 insertions(+), 155 deletions(-) delete mode 100644 .flake8 create mode 100644 .github/workflows/REUSE.toml delete mode 100644 LICENSE create mode 100644 LICENSES/0BSD.txt create mode 100644 LICENSES/BSD-3-Clause.txt create mode 100644 LICENSES/OFL-1.1.txt create mode 100644 tests/sources/REUSE.toml create mode 100644 tests/sources/fonts/Cotham/CothamSans.otf.license delete mode 100644 tests/sources/fonts/Cotham/OFL.txt diff --git a/.editorconfig b/.editorconfig index 45bfc4a..0beb6f9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + root = true [*] diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 372b266..0000000 --- a/.flake8 +++ /dev/null @@ -1,5 +0,0 @@ -[flake8] -max-line-length = 88 -per-file-ignores = - data/share/matplotlib-pgfutils/examples/*:E402 - tests/sources/*:E402 diff --git a/.github/workflows/README.md b/.github/workflows/README.md index bee8413..03140f8 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -1,3 +1,8 @@ + + Workflows ========= diff --git a/.github/workflows/REUSE.toml b/.github/workflows/REUSE.toml new file mode 100644 index 0000000..7d954b0 --- /dev/null +++ b/.github/workflows/REUSE.toml @@ -0,0 +1,6 @@ +version = 1 + +[[annotations]] +path = "requirements-*.txt" +SPDX-FileCopyrightText = "Blair Bonnett" +SPDX-License-Identifier = "0BSD" diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index d69ce27..82fedd3 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + name: Continuous integration tests on: push: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 68b46c3..a07aabc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + name: Check code formatting on: push: diff --git a/.github/workflows/matplotlib-main.yml b/.github/workflows/matplotlib-main.yml index cc998d5..0ecdbd2 100644 --- a/.github/workflows/matplotlib-main.yml +++ b/.github/workflows/matplotlib-main.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + name: Run tests against Matplotlib main branch on: diff --git a/.gitignore b/.gitignore index 3dd69cb..3357db0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + # Built figures. *.pypgf *.png diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 165408a..0000000 --- a/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright 2018 - 2023 Blair Bonnett - -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. diff --git a/LICENSES/0BSD.txt b/LICENSES/0BSD.txt new file mode 100644 index 0000000..0b8ae76 --- /dev/null +++ b/LICENSES/0BSD.txt @@ -0,0 +1,5 @@ +Copyright (C) YEAR by AUTHOR EMAIL + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt new file mode 100644 index 0000000..ea890af --- /dev/null +++ b/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,11 @@ +Copyright (c) . + +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. diff --git a/LICENSES/OFL-1.1.txt b/LICENSES/OFL-1.1.txt new file mode 100644 index 0000000..6fe84ee --- /dev/null +++ b/LICENSES/OFL-1.1.txt @@ -0,0 +1,43 @@ +SIL OPEN FONT LICENSE + +Version 1.1 - 26 February 2007 + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting — in part or in whole — any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION + +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/README.md b/README.md index d7b5bf5..7c11305 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + + pgfutils ======== @@ -121,13 +126,13 @@ License ------- pgfutils is released under the three-clause BSD license. The terms of this -license can be found in the LICENSE file in the source, or online at +license can be found in the LICENSES/BSD-3-Clause.txt file in the source, or online at https://opensource.org/licenses/BSD-3-Clause The Cotham Sans font used in some unit tests is copyright (c) 2015 Sebastien Sanfilippo and is licensed under the SIL Open Font License, Version 1.1. The -license can be found in the source at tests/sources/fonts/Cotham/OFL.txt or -online at https://scripts.sil.org/OFL and the font itself can be found at +license can be found in the source at LICENSES/OFL-1.1.txt or online at +https://scripts.sil.org/OFL and the font itself can be found at https://github.com/sebsan/Cotham diff --git a/conftest.py b/conftest.py index 09bad86..b97b77b 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + def pytest_itemcollected(item): """Use the test docstring (if available) as the node ID. diff --git a/data/share/matplotlib-pgfutils/examples/README.md b/data/share/matplotlib-pgfutils/examples/README.md index d1fae20..6a36fb2 100644 --- a/data/share/matplotlib-pgfutils/examples/README.md +++ b/data/share/matplotlib-pgfutils/examples/README.md @@ -1,3 +1,8 @@ + + matplotlib-pgfutils examples ============================ diff --git a/data/share/matplotlib-pgfutils/examples/threecol/Makefile b/data/share/matplotlib-pgfutils/examples/threecol/Makefile index 56c9cfe..9a8ac20 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/Makefile +++ b/data/share/matplotlib-pgfutils/examples/threecol/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + default: threecol.pdf threecol.pdf: threecol.tex single.pypgf double.pypgf triple.pypgf diff --git a/data/share/matplotlib-pgfutils/examples/threecol/double.py b/data/share/matplotlib-pgfutils/examples/threecol/double.py index 6b1b3a1..adf3522 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/double.py +++ b/data/share/matplotlib-pgfutils/examples/threecol/double.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + from pgfutils import save, setup_figure diff --git a/data/share/matplotlib-pgfutils/examples/threecol/latexmkrc b/data/share/matplotlib-pgfutils/examples/threecol/latexmkrc index 25be8e3..62cbae0 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/latexmkrc +++ b/data/share/matplotlib-pgfutils/examples/threecol/latexmkrc @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + # TeX -> PDF with no intermediate stages. $pdf_mode = 1; $dvi_mode = $postscript_mode = 0; diff --git a/data/share/matplotlib-pgfutils/examples/threecol/pgfutils.cfg b/data/share/matplotlib-pgfutils/examples/threecol/pgfutils.cfg index ebfbe65..d3b53aa 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/pgfutils.cfg +++ b/data/share/matplotlib-pgfutils/examples/threecol/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + [tex] engine = xelatex text_width = 710 points diff --git a/data/share/matplotlib-pgfutils/examples/threecol/single.py b/data/share/matplotlib-pgfutils/examples/threecol/single.py index f02b0ba..5b49e5b 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/single.py +++ b/data/share/matplotlib-pgfutils/examples/threecol/single.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + from pgfutils import save, setup_figure diff --git a/data/share/matplotlib-pgfutils/examples/threecol/threecol.tex b/data/share/matplotlib-pgfutils/examples/threecol/threecol.tex index 8c47cac..be6f1a9 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/threecol.tex +++ b/data/share/matplotlib-pgfutils/examples/threecol/threecol.tex @@ -1,3 +1,6 @@ +% SPDX-FileCopyrightText: Blair Bonnett +% SPDX-License-Identifier: 0BSD + \documentclass[landscape]{article} \title{Three column example} diff --git a/data/share/matplotlib-pgfutils/examples/threecol/triple.py b/data/share/matplotlib-pgfutils/examples/threecol/triple.py index 0eb3be5..5a5f840 100644 --- a/data/share/matplotlib-pgfutils/examples/threecol/triple.py +++ b/data/share/matplotlib-pgfutils/examples/threecol/triple.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + from pgfutils import save, setup_figure diff --git a/data/share/matplotlib-pgfutils/examples/twocol/Makefile b/data/share/matplotlib-pgfutils/examples/twocol/Makefile index 7660172..26132ef 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/Makefile +++ b/data/share/matplotlib-pgfutils/examples/twocol/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + default: twocol.pdf twocol.pdf: twocol.tex single.pypgf double.pypgf diff --git a/data/share/matplotlib-pgfutils/examples/twocol/double.py b/data/share/matplotlib-pgfutils/examples/twocol/double.py index 6b1b3a1..adf3522 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/double.py +++ b/data/share/matplotlib-pgfutils/examples/twocol/double.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + from pgfutils import save, setup_figure diff --git a/data/share/matplotlib-pgfutils/examples/twocol/latexmkrc b/data/share/matplotlib-pgfutils/examples/twocol/latexmkrc index 25be8e3..62cbae0 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/latexmkrc +++ b/data/share/matplotlib-pgfutils/examples/twocol/latexmkrc @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + # TeX -> PDF with no intermediate stages. $pdf_mode = 1; $dvi_mode = $postscript_mode = 0; diff --git a/data/share/matplotlib-pgfutils/examples/twocol/pgfutils.cfg b/data/share/matplotlib-pgfutils/examples/twocol/pgfutils.cfg index c155ed0..93cce42 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/pgfutils.cfg +++ b/data/share/matplotlib-pgfutils/examples/twocol/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + [tex] engine = xelatex diff --git a/data/share/matplotlib-pgfutils/examples/twocol/single.py b/data/share/matplotlib-pgfutils/examples/twocol/single.py index f02b0ba..5b49e5b 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/single.py +++ b/data/share/matplotlib-pgfutils/examples/twocol/single.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + from pgfutils import save, setup_figure diff --git a/data/share/matplotlib-pgfutils/examples/twocol/twocol.tex b/data/share/matplotlib-pgfutils/examples/twocol/twocol.tex index b731680..6fec6ff 100644 --- a/data/share/matplotlib-pgfutils/examples/twocol/twocol.tex +++ b/data/share/matplotlib-pgfutils/examples/twocol/twocol.tex @@ -1,3 +1,6 @@ +% SPDX-FileCopyrightText: Blair Bonnett +% SPDX-License-Identifier: 0BSD + \documentclass[twocolumn]{article} \title{Two column example} diff --git a/data/share/matplotlib-pgfutils/latexmkrc b/data/share/matplotlib-pgfutils/latexmkrc index 699bf58..2dd97fc 100644 --- a/data/share/matplotlib-pgfutils/latexmkrc +++ b/data/share/matplotlib-pgfutils/latexmkrc @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + # Build PGF images from Python scripts, and add any dependencies # and generated images to latexmk's database. add_cus_dep('py', 'pypgf', 0, 'pypgf'); diff --git a/data/share/matplotlib-pgfutils/pgfutils.cfg b/data/share/matplotlib-pgfutils/pgfutils.cfg index f6b6ec7..75a3d84 100644 --- a/data/share/matplotlib-pgfutils/pgfutils.cfg +++ b/data/share/matplotlib-pgfutils/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + ############################################################################## # # # Example pgfutils configuration file # diff --git a/doc/config.md b/doc/config.md index 74996e9..30ebbf4 100644 --- a/doc/config.md +++ b/doc/config.md @@ -1,3 +1,8 @@ + + Configuration ============= diff --git a/doc/file_tracking.md b/doc/file_tracking.md index b774d53..8a75f20 100644 --- a/doc/file_tracking.md +++ b/doc/file_tracking.md @@ -1,3 +1,8 @@ + + File tracking ============= diff --git a/doc/index.md b/doc/index.md index 69c07be..c35daa0 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,3 +1,8 @@ + + The [Portable Graphics Format (PGF)][1] is a language for producing vector graphics within TeX documents. There is also a higher-level language TikZ (TikZ ist kein Zeichenprogramm -- TikZ is not a drawing program) which uses PGF. diff --git a/doc/interactive.md b/doc/interactive.md index 9abeb85..85f9547 100644 --- a/doc/interactive.md +++ b/doc/interactive.md @@ -1,3 +1,8 @@ + + Interactive mode ================ diff --git a/doc/latexmk.md b/doc/latexmk.md index 9b8a3fd..05da9da 100644 --- a/doc/latexmk.md +++ b/doc/latexmk.md @@ -1,3 +1,8 @@ + + latexmk integration =================== diff --git a/doc/usage.md b/doc/usage.md index 7e3d342..784a3d1 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -1,3 +1,8 @@ + + Usage ===== diff --git a/mkdocs.yml b/mkdocs.yml index 53f0f5f..a3485c3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD +# site_name: matplotlib-pgfutils docs_dir: doc site_dir: build/doc diff --git a/pgfutils.py b/pgfutils.py index 345bf33..f376323 100644 --- a/pgfutils.py +++ b/pgfutils.py @@ -1,29 +1,5 @@ -# Copyright 2018, 2019, 2020, 2021, 2022, 2023 Blair Bonnett -# -# 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. +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause """Utilities for generating PGF plots from matplotlib. diff --git a/pyproject.toml b/pyproject.toml index 3e3c49a..5ad02a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,12 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + [project] name = "matplotlib-pgfutils" description = "Utilities for generating PGF figures from Matplotlib" dynamic = ["version"] readme = {file = "README.md", content-type="text/markdown"} -license = "BSD-3-Clause" +license = {text = "BSD-3-Clause"} requires-python = ">=3.11" dependencies = [ "matplotlib>=3.7.0" @@ -18,6 +21,7 @@ Issues = "https://github.com/bcbnz/matplotlib-pgfutils/issues" dev = [ "matplotlib-pgfutils[doc]", "matplotlib-pgfutils[test]", + "reuse", "ruff", ] doc = [ diff --git a/readthedocs.yml b/readthedocs.yml index 6f7c584..c2e6237 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: 0BSD + version: 2 formats: all mkdocs: diff --git a/tests/sources/REUSE.toml b/tests/sources/REUSE.toml new file mode 100644 index 0000000..c3e818d --- /dev/null +++ b/tests/sources/REUSE.toml @@ -0,0 +1,16 @@ +version = 1 + +[[annotations]] +path = "**/*.csv" +SPDX-FileCopyrightText = "Blair Bonnett" +SPDX-License-Identifier = "0BSD" + +[[annotations]] +path = "**/*.nc" +SPDX-FileCopyrightText = "Blair Bonnett" +SPDX-License-Identifier = "0BSD" + +[[annotations]] +path = "**/*.npy" +SPDX-FileCopyrightText = "Blair Bonnett" +SPDX-License-Identifier = "0BSD" diff --git a/tests/sources/environment/check_set/basic.py b/tests/sources/environment/check_set/basic.py index 9efdec4..276327e 100644 --- a/tests/sources/environment/check_set/basic.py +++ b/tests/sources/environment/check_set/basic.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/environment/check_set/override.py b/tests/sources/environment/check_set/override.py index f598a5f..116c65a 100644 --- a/tests/sources/environment/check_set/override.py +++ b/tests/sources/environment/check_set/override.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + import os diff --git a/tests/sources/environment/check_set/pgfutils.cfg b/tests/sources/environment/check_set/pgfutils.cfg index bada1aa..bd4054a 100644 --- a/tests/sources/environment/check_set/pgfutils.cfg +++ b/tests/sources/environment/check_set/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] environment= name1=value1 diff --git a/tests/sources/environment/invalid/basic.py b/tests/sources/environment/invalid/basic.py index ccb11b4..aac14fd 100644 --- a/tests/sources/environment/invalid/basic.py +++ b/tests/sources/environment/invalid/basic.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/environment/invalid/pgfutils.cfg b/tests/sources/environment/invalid/pgfutils.cfg index f6c38eb..6772a26 100644 --- a/tests/sources/environment/invalid/pgfutils.cfg +++ b/tests/sources/environment/invalid/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] environment= line1=ok diff --git a/tests/sources/environment/repeated/basic.py b/tests/sources/environment/repeated/basic.py index b9558a0..c06c948 100644 --- a/tests/sources/environment/repeated/basic.py +++ b/tests/sources/environment/repeated/basic.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/environment/repeated/pgfutils.cfg b/tests/sources/environment/repeated/pgfutils.cfg index 8d468f5..2b34fa8 100644 --- a/tests/sources/environment/repeated/pgfutils.cfg +++ b/tests/sources/environment/repeated/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] environment= name1=value1 diff --git a/tests/sources/external/cartopy_figure.py b/tests/sources/external/cartopy_figure.py index 47631d2..218fa49 100644 --- a/tests/sources/external/cartopy_figure.py +++ b/tests/sources/external/cartopy_figure.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/external/seaborn_figure.py b/tests/sources/external/seaborn_figure.py index 101149a..d06ebc3 100644 --- a/tests/sources/external/seaborn_figure.py +++ b/tests/sources/external/seaborn_figure.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/extra_options.cfg b/tests/sources/extra_options.cfg index b9b9234..c8be6ac 100644 --- a/tests/sources/extra_options.cfg +++ b/tests/sources/extra_options.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [tex] engine = xelatex text_width = 345 points diff --git a/tests/sources/extra_options_rcparams.cfg b/tests/sources/extra_options_rcparams.cfg index c7188c0..88d7859 100644 --- a/tests/sources/extra_options_rcparams.cfg +++ b/tests/sources/extra_options_rcparams.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [tex] engine = xelatex text_width = 345 points diff --git a/tests/sources/extra_rcparams.cfg b/tests/sources/extra_rcparams.cfg index 714e943..87269a4 100644 --- a/tests/sources/extra_rcparams.cfg +++ b/tests/sources/extra_rcparams.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [tex] engine = xelatex text_width = 345 points diff --git a/tests/sources/fix_raster_paths/document.tex b/tests/sources/fix_raster_paths/document.tex index 8831b4f..83cb891 100644 --- a/tests/sources/fix_raster_paths/document.tex +++ b/tests/sources/fix_raster_paths/document.tex @@ -1,3 +1,6 @@ +% SPDX-FileCopyrightText: Blair Bonnett +% SPDX-License-Identifier: BSD-3-Clause + \documentclass{article} \usepackage{pgf} diff --git a/tests/sources/fix_raster_paths/figures/noise.py b/tests/sources/fix_raster_paths/figures/noise.py index abc6d40..297dc19 100644 --- a/tests/sources/fix_raster_paths/figures/noise.py +++ b/tests/sources/fix_raster_paths/figures/noise.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/fix_raster_paths/pgfutils.cfg b/tests/sources/fix_raster_paths/pgfutils.cfg index 50fddcc..fb26a64 100644 --- a/tests/sources/fix_raster_paths/pgfutils.cfg +++ b/tests/sources/fix_raster_paths/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [postprocessing] fix_raster_paths = yes tikzpicture = no diff --git a/tests/sources/fix_raster_paths/speckle.py b/tests/sources/fix_raster_paths/speckle.py index d5f205b..8dd75e3 100644 --- a/tests/sources/fix_raster_paths/speckle.py +++ b/tests/sources/fix_raster_paths/speckle.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/fonts/Cotham/CothamSans.otf.license b/tests/sources/fonts/Cotham/CothamSans.otf.license new file mode 100644 index 0000000..72bc614 --- /dev/null +++ b/tests/sources/fonts/Cotham/CothamSans.otf.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2015 Sebastien Sanfilippo +SPDX-License-Identifier: OFL-1.1 diff --git a/tests/sources/fonts/Cotham/OFL.txt b/tests/sources/fonts/Cotham/OFL.txt deleted file mode 100644 index 47ad45a..0000000 --- a/tests/sources/fonts/Cotham/OFL.txt +++ /dev/null @@ -1,93 +0,0 @@ -Copyright (c) 2015 Sebastien Sanfilippo (www.love-letters.be) - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL - - ------------------------------------------------------------ -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ------------------------------------------------------------ - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting -- in part or in whole -- any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/tests/sources/fonts/custom_font.py b/tests/sources/fonts/custom_font.py index 9de20c0..df097b5 100644 --- a/tests/sources/fonts/custom_font.py +++ b/tests/sources/fonts/custom_font.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/fonts/noconfig/custom_font.py b/tests/sources/fonts/noconfig/custom_font.py index 224eba4..00c8596 100644 --- a/tests/sources/fonts/noconfig/custom_font.py +++ b/tests/sources/fonts/noconfig/custom_font.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/fonts/pgfutils.cfg b/tests/sources/fonts/pgfutils.cfg index 4f180ab..2c7d5e0 100644 --- a/tests/sources/fonts/pgfutils.cfg +++ b/tests/sources/fonts/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] font_family=serif font_name=CothamSans diff --git a/tests/sources/kwargs/default.py b/tests/sources/kwargs/default.py index f2ec34f..6da5fb6 100644 --- a/tests/sources/kwargs/default.py +++ b/tests/sources/kwargs/default.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/kwargs/overridden.py b/tests/sources/kwargs/overridden.py index 01d070e..52d4eab 100644 --- a/tests/sources/kwargs/overridden.py +++ b/tests/sources/kwargs/overridden.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/kwargs/pgfutils.cfg b/tests/sources/kwargs/pgfutils.cfg index facf5c9..ea0fdfe 100644 --- a/tests/sources/kwargs/pgfutils.cfg +++ b/tests/sources/kwargs/pgfutils.cfg @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] figure_background = blue diff --git a/tests/sources/legend/legend_only.py b/tests/sources/legend/legend_only.py index da1a282..1333140 100644 --- a/tests/sources/legend/legend_only.py +++ b/tests/sources/legend/legend_only.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/legend/pgfutils.cfg b/tests/sources/legend/pgfutils.cfg index bfc3ddd..899aa34 100644 --- a/tests/sources/legend/pgfutils.cfg +++ b/tests/sources/legend/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] legend_border_width = 4 legend_opacity = 0.7 diff --git a/tests/sources/pythonpath/libdir/custom_library.py b/tests/sources/pythonpath/libdir/custom_library.py index a904b1c..406141a 100644 --- a/tests/sources/pythonpath/libdir/custom_library.py +++ b/tests/sources/pythonpath/libdir/custom_library.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np diff --git a/tests/sources/pythonpath/pgfutils.cfg b/tests/sources/pythonpath/pgfutils.cfg index f941987..9121528 100644 --- a/tests/sources/pythonpath/pgfutils.cfg +++ b/tests/sources/pythonpath/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [paths] pythonpath = libdir diff --git a/tests/sources/pythonpath/using_custom_lib.py b/tests/sources/pythonpath/using_custom_lib.py index 9d56673..db44d40 100644 --- a/tests/sources/pythonpath/using_custom_lib.py +++ b/tests/sources/pythonpath/using_custom_lib.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tikzpicture/document_pgf.tex b/tests/sources/tikzpicture/document_pgf.tex index 0927ea2..588c581 100644 --- a/tests/sources/tikzpicture/document_pgf.tex +++ b/tests/sources/tikzpicture/document_pgf.tex @@ -1,3 +1,6 @@ +% SPDX-FileCopyrightText: Blair Bonnett +% SPDX-License-Identifier: BSD-3-Clause + \documentclass{article} \usepackage{pgf} diff --git a/tests/sources/tikzpicture/document_tikz.tex b/tests/sources/tikzpicture/document_tikz.tex index 52e021e..5da1053 100644 --- a/tests/sources/tikzpicture/document_tikz.tex +++ b/tests/sources/tikzpicture/document_tikz.tex @@ -1,3 +1,6 @@ +% SPDX-FileCopyrightText: Blair Bonnett +% SPDX-License-Identifier: BSD-3-Clause + \documentclass{article} \usepackage{tikz} diff --git a/tests/sources/tikzpicture/pgfutils.cfg b/tests/sources/tikzpicture/pgfutils.cfg index 5d91977..1d0240d 100644 --- a/tests/sources/tikzpicture/pgfutils.cfg +++ b/tests/sources/tikzpicture/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [postprocessing] fix_raster_paths = no tikzpicture = yes diff --git a/tests/sources/tikzpicture/square.py b/tests/sources/tikzpicture/square.py index 689410f..7a25ab5 100644 --- a/tests/sources/tikzpicture/square.py +++ b/tests/sources/tikzpicture/square.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + # Set up the figure environment. from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/config_enabled/config_enabled.py b/tests/sources/tracking/config_enabled/config_enabled.py index 1e259b9..dc78520 100644 --- a/tests/sources/tracking/config_enabled/config_enabled.py +++ b/tests/sources/tracking/config_enabled/config_enabled.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import add_dependencies, save, setup_figure diff --git a/tests/sources/tracking/config_enabled/pgfutils.cfg b/tests/sources/tracking/config_enabled/pgfutils.cfg index f4951c7..792423e 100644 --- a/tests/sources/tracking/config_enabled/pgfutils.cfg +++ b/tests/sources/tracking/config_enabled/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] environment = PGFUTILS_TRACK_FILES = 1 diff --git a/tests/sources/tracking/dependency_loadtxt.py b/tests/sources/tracking/dependency_loadtxt.py index cfa2359..fc99af0 100644 --- a/tests/sources/tracking/dependency_loadtxt.py +++ b/tests/sources/tracking/dependency_loadtxt.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/dependency_npy.py b/tests/sources/tracking/dependency_npy.py index ecdbe9f..326f0d3 100644 --- a/tests/sources/tracking/dependency_npy.py +++ b/tests/sources/tracking/dependency_npy.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/dependency_pathlib.py b/tests/sources/tracking/dependency_pathlib.py index 39e05e2..2d8251a 100644 --- a/tests/sources/tracking/dependency_pathlib.py +++ b/tests/sources/tracking/dependency_pathlib.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/extra_dirs/multi.py b/tests/sources/tracking/extra_dirs/multi.py index 92d757b..ed5e31c 100644 --- a/tests/sources/tracking/extra_dirs/multi.py +++ b/tests/sources/tracking/extra_dirs/multi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import add_dependencies, save, setup_figure diff --git a/tests/sources/tracking/extra_dirs/pgfutils.cfg b/tests/sources/tracking/extra_dirs/pgfutils.cfg index 6cf0bb3..ff7d34e 100644 --- a/tests/sources/tracking/extra_dirs/pgfutils.cfg +++ b/tests/sources/tracking/extra_dirs/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [paths] data = . diff --git a/tests/sources/tracking/imports/cfg_extra/figure.py b/tests/sources/tracking/imports/cfg_extra/figure.py index c623b8d..b55d9dc 100644 --- a/tests/sources/tracking/imports/cfg_extra/figure.py +++ b/tests/sources/tracking/imports/cfg_extra/figure.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/imports/cfg_extra/pgfutils.cfg b/tests/sources/tracking/imports/cfg_extra/pgfutils.cfg index bf32e61..3a9c9d6 100644 --- a/tests/sources/tracking/imports/cfg_extra/pgfutils.cfg +++ b/tests/sources/tracking/imports/cfg_extra/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [paths] extra_imports = ../lib diff --git a/tests/sources/tracking/imports/cfg_pythonpath/figure.py b/tests/sources/tracking/imports/cfg_pythonpath/figure.py index c623b8d..b55d9dc 100644 --- a/tests/sources/tracking/imports/cfg_pythonpath/figure.py +++ b/tests/sources/tracking/imports/cfg_pythonpath/figure.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/imports/cfg_pythonpath/pgfutils.cfg b/tests/sources/tracking/imports/cfg_pythonpath/pgfutils.cfg index 482f3dc..86b62b4 100644 --- a/tests/sources/tracking/imports/cfg_pythonpath/pgfutils.cfg +++ b/tests/sources/tracking/imports/cfg_pythonpath/pgfutils.cfg @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [paths] pythonpath = ../lib diff --git a/tests/sources/tracking/imports/lib/custom_lib.py b/tests/sources/tracking/imports/lib/custom_lib.py index 6313f2f..1e091c6 100644 --- a/tests/sources/tracking/imports/lib/custom_lib.py +++ b/tests/sources/tracking/imports/lib/custom_lib.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np diff --git a/tests/sources/tracking/manual_dependencies.py b/tests/sources/tracking/manual_dependencies.py index 85e8890..087162b 100644 --- a/tests/sources/tracking/manual_dependencies.py +++ b/tests/sources/tracking/manual_dependencies.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import add_dependencies, save, setup_figure diff --git a/tests/sources/tracking/manual_dependency.py b/tests/sources/tracking/manual_dependency.py index b5ecb6d..3c8b5a0 100644 --- a/tests/sources/tracking/manual_dependency.py +++ b/tests/sources/tracking/manual_dependency.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import add_dependencies, save, setup_figure diff --git a/tests/sources/tracking/multi.py b/tests/sources/tracking/multi.py index 1e259b9..dc78520 100644 --- a/tests/sources/tracking/multi.py +++ b/tests/sources/tracking/multi.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import add_dependencies, save, setup_figure diff --git a/tests/sources/tracking/netcdf4/netcdf4.py b/tests/sources/tracking/netcdf4/netcdf4.py index a1e5217..d190039 100644 --- a/tests/sources/tracking/netcdf4/netcdf4.py +++ b/tests/sources/tracking/netcdf4/netcdf4.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/netcdf4/netcdf4_multi_explicit.py b/tests/sources/tracking/netcdf4/netcdf4_multi_explicit.py index 234c8ce..b17b13c 100644 --- a/tests/sources/tracking/netcdf4/netcdf4_multi_explicit.py +++ b/tests/sources/tracking/netcdf4/netcdf4_multi_explicit.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/netcdf4/netcdf4_multi_glob.py b/tests/sources/tracking/netcdf4/netcdf4_multi_glob.py index 573cc3d..7ffa281 100644 --- a/tests/sources/tracking/netcdf4/netcdf4_multi_glob.py +++ b/tests/sources/tracking/netcdf4/netcdf4_multi_glob.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/netcdf4/pgfutils.cfg b/tests/sources/tracking/netcdf4/pgfutils.cfg index dfab149..a71f88b 100644 --- a/tests/sources/tracking/netcdf4/pgfutils.cfg +++ b/tests/sources/tracking/netcdf4/pgfutils.cfg @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + [pgfutils] extra_tracking = netCDF4 diff --git a/tests/sources/tracking/netcdf4_in_setup.py b/tests/sources/tracking/netcdf4_in_setup.py index 2f04d98..e07135c 100644 --- a/tests/sources/tracking/netcdf4_in_setup.py +++ b/tests/sources/tracking/netcdf4_in_setup.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/netcdf4_write.py b/tests/sources/tracking/netcdf4_write.py index 5bc37e7..f81dd90 100644 --- a/tests/sources/tracking/netcdf4_write.py +++ b/tests/sources/tracking/netcdf4_write.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/rasterisation.py b/tests/sources/tracking/rasterisation.py index bf310be..4fbef59 100644 --- a/tests/sources/tracking/rasterisation.py +++ b/tests/sources/tracking/rasterisation.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/simple.py b/tests/sources/tracking/simple.py index 4929c47..9a6b157 100644 --- a/tests/sources/tracking/simple.py +++ b/tests/sources/tracking/simple.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/simple_binary_nonimage.py b/tests/sources/tracking/simple_binary_nonimage.py index 73b91ba..92b9fe5 100644 --- a/tests/sources/tracking/simple_binary_nonimage.py +++ b/tests/sources/tracking/simple_binary_nonimage.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/simple_fdopen.py b/tests/sources/tracking/simple_fdopen.py index 9d37f10..b65cb05 100644 --- a/tests/sources/tracking/simple_fdopen.py +++ b/tests/sources/tracking/simple_fdopen.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import _file_tracker, save, setup_figure diff --git a/tests/sources/tracking/simple_nonbinary.py b/tests/sources/tracking/simple_nonbinary.py index 106d459..33fce00 100644 --- a/tests/sources/tracking/simple_nonbinary.py +++ b/tests/sources/tracking/simple_nonbinary.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/sources/tracking/simple_nonfile.py b/tests/sources/tracking/simple_nonfile.py index a270e63..2c00e62 100644 --- a/tests/sources/tracking/simple_nonfile.py +++ b/tests/sources/tracking/simple_nonfile.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import _file_tracker, save, setup_figure diff --git a/tests/sources/tracking/simple_nonproject.py b/tests/sources/tracking/simple_nonproject.py index 3268659..bad49a6 100644 --- a/tests/sources/tracking/simple_nonproject.py +++ b/tests/sources/tracking/simple_nonproject.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pgfutils import save, setup_figure diff --git a/tests/test_colors.py b/tests/test_colors.py index ba5fb52..84d49a0 100644 --- a/tests/test_colors.py +++ b/tests/test_colors.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from matplotlib.colors import get_named_colors_mapping import pytest diff --git a/tests/test_columns.py b/tests/test_columns.py index ec46f4c..11f85af 100644 --- a/tests/test_columns.py +++ b/tests/test_columns.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from matplotlib import rcParams import pytest diff --git a/tests/test_config.py b/tests/test_config.py index 8091398..6861257 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import pytest diff --git a/tests/test_data.py b/tests/test_data.py index 9ea8b78..24309f9 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path from pgfutils import PgfutilsParser, _config, _config_reset diff --git a/tests/test_environment.py b/tests/test_environment.py index f23c976..f0e53e6 100644 --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path from .utils import build_pypgf diff --git a/tests/test_external.py b/tests/test_external.py index 1ab6acd..00261cd 100644 --- a/tests/test_external.py +++ b/tests/test_external.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import pytest diff --git a/tests/test_fonts.py b/tests/test_fonts.py index dd6fc65..87d0ac8 100644 --- a/tests/test_fonts.py +++ b/tests/test_fonts.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path from .utils import build_pypgf diff --git a/tests/test_misc.py b/tests/test_misc.py index 00f0639..d2f0de7 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + import os from pathlib import Path diff --git a/tests/test_postprocessing.py b/tests/test_postprocessing.py index b460a98..69fc48a 100644 --- a/tests/test_postprocessing.py +++ b/tests/test_postprocessing.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import re diff --git a/tests/test_pythonpath.py b/tests/test_pythonpath.py index c9525da..30d3716 100644 --- a/tests/test_pythonpath.py +++ b/tests/test_pythonpath.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path from .utils import build_pypgf diff --git a/tests/test_setup_figure.py b/tests/test_setup_figure.py index f3d0e4a..a6d94af 100644 --- a/tests/test_setup_figure.py +++ b/tests/test_setup_figure.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import matplotlib diff --git a/tests/test_tracking.py b/tests/test_tracking.py index 1e77111..13eef8e 100644 --- a/tests/test_tracking.py +++ b/tests/test_tracking.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import tempfile diff --git a/tests/utils.py b/tests/utils.py index e32cb83..4029dc6 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Blair Bonnett +# SPDX-License-Identifier: BSD-3-Clause + from contextlib import contextmanager import os from pathlib import Path