Skip to content

Commit

Permalink
Add REUSE license details for all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbnz committed Jan 26, 2025
1 parent 5c58b71 commit 493ed05
Show file tree
Hide file tree
Showing 115 changed files with 423 additions and 155 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

root = true

[*]
Expand Down
5 changes: 0 additions & 5 deletions .flake8

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

Workflows
=========

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version = 1

[[annotations]]
path = "requirements-*.txt"
SPDX-FileCopyrightText = "Blair Bonnett"
SPDX-License-Identifier = "0BSD"
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: BSD-3-Clause

name: Continuous integration tests
on:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: BSD-3-Clause

name: Check code formatting
on:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/matplotlib-main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: BSD-3-Clause

name: Run tests against Matplotlib main branch

on:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

# Built figures.
*.pypgf
*.png
Expand Down
27 changes: 0 additions & 27 deletions LICENSE

This file was deleted.

5 changes: 5 additions & 0 deletions LICENSES/0BSD.txt
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 11 additions & 0 deletions LICENSES/BSD-3-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (c) <year> <owner>.

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.
43 changes: 43 additions & 0 deletions LICENSES/OFL-1.1.txt
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

pgfutils
========

Expand Down Expand Up @@ -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


Expand Down
3 changes: 3 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 5 additions & 0 deletions data/share/matplotlib-pgfutils/examples/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

matplotlib-pgfutils examples
============================

Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/double.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

from pgfutils import save, setup_figure


Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/latexmkrc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/pgfutils.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

[tex]
engine = xelatex
text_width = 710 points
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/single.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

from pgfutils import save, setup_figure


Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/threecol.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
% SPDX-FileCopyrightText: Blair Bonnett
% SPDX-License-Identifier: 0BSD

\documentclass[landscape]{article}

\title{Three column example}
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/threecol/triple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

from pgfutils import save, setup_figure


Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

default: twocol.pdf

twocol.pdf: twocol.tex single.pypgf double.pypgf
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/double.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

from pgfutils import save, setup_figure


Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/latexmkrc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/pgfutils.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

[tex]
engine = xelatex

Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/single.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

from pgfutils import save, setup_figure


Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/examples/twocol/twocol.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
% SPDX-FileCopyrightText: Blair Bonnett
% SPDX-License-Identifier: 0BSD

\documentclass[twocolumn]{article}

\title{Two column example}
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/latexmkrc
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
3 changes: 3 additions & 0 deletions data/share/matplotlib-pgfutils/pgfutils.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD

##############################################################################
# #
# Example pgfutils configuration file #
Expand Down
5 changes: 5 additions & 0 deletions doc/config.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

Configuration
=============

Expand Down
5 changes: 5 additions & 0 deletions doc/file_tracking.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

File tracking
=============

Expand Down
5 changes: 5 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

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.
Expand Down
5 changes: 5 additions & 0 deletions doc/interactive.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

Interactive mode
================

Expand Down
5 changes: 5 additions & 0 deletions doc/latexmk.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

latexmk integration
===================

Expand Down
5 changes: 5 additions & 0 deletions doc/usage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: Blair Bonnett
SPDX-License-Identifier: BSD-3-Clause
-->

Usage
=====

Expand Down
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: 0BSD
#
site_name: matplotlib-pgfutils
docs_dir: doc
site_dir: build/doc
Expand Down
28 changes: 2 additions & 26 deletions pgfutils.py
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 1 in pgfutils.py

View workflow job for this annotation

GitHub Actions / run-linters

Imports are incorrectly sorted and/or formatted.
# SPDX-License-Identifier: BSD-3-Clause

"""Utilities for generating PGF plots from matplotlib.
Expand Down
Loading

0 comments on commit 493ed05

Please sign in to comment.