Use REUSE compliant licensing

This commit is contained in:
Arjan Molenaar 2024-02-03 16:47:15 +01:00
parent e9d4973dff
commit a1eb2b1c8b
7 changed files with 30 additions and 34 deletions

View File

@ -49,6 +49,8 @@ jobs:
python-version: ${{ env.python-version }} python-version: ${{ env.python-version }}
- name: Lint with Pre-commit - name: Lint with Pre-commit
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0 uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
- name: Check REUSE compliance
run: pip install reuse && python -m reuse lint
- name: Check Poetry lock file integrity - name: Check Poetry lock file integrity
run: | run: |
python${{ env.python-version }} -m pip install --constraint=.github/constraints.txt poetry python${{ env.python-version }} -m pip install --constraint=.github/constraints.txt poetry

12
.reuse/dep5 Normal file
View File

@ -0,0 +1,12 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Generic
Upstream-Contact: Generic Library contributors
Source: https://github.com/gaphor/generic
Files: *
Copyright: 2010 Andrey Popp, 2019 Arjan Molenaar & Dan Yeaw
License: BSD-3-Clause
Files: generic/registry.py
Copyright: 2009-2010 Christopher Michael Rossi, 2019 Arjan Molenaar & Dan Yeaw
License: BSD-3-Clause

View File

@ -1,4 +0,0 @@
Copyright (c) 2010 Andrey Popp, All Rights Reserved
Registry implementation and tests for it (generic.registry).
Copyright (c) 2009-2010 Christopher Michael Rossi, All Rights Reserved

View File

@ -1,28 +0,0 @@
BSD 3-Clause License
Copyright (c) 2010, Generic Library contributors
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.

11
LICENSES/BSD-3-Clause.txt Normal file
View File

@ -0,0 +1,11 @@
Copyright (c) 2010 Andrey Popp, 2019 Arjan Molenaar & Dan Yeaw.
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.

View File

@ -23,6 +23,10 @@ excellent readthedocs.org project. Development takes place on
# Changes # Changes
## 1.1.3
- Dependency updates
## 1.1.2 ## 1.1.2
- Replace print statements with logging - Replace print statements with logging

View File

@ -12,7 +12,6 @@
import importlib.metadata import importlib.metadata
import sys import sys
from datetime import date
from pathlib import Path from pathlib import Path
project_dir = Path(__file__).resolve().parent.parent project_dir = Path(__file__).resolve().parent.parent
@ -45,7 +44,7 @@ master_doc = "index"
# General information about the project. # General information about the project.
project = "generic" project = "generic"
copyright = f"2011, Andrey Popp, 2019-{date.today().year}, Arjan Molenaar and Dan Yeaw" copyright = "2011, Andrey Popp, 2019, Arjan Molenaar and Dan Yeaw"
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the