Skip to content

Commit a698037

Browse files
authored
Merge pull request #11 from adafruit/REUSE
Ran pre-commit, added licenses
2 parents 39a4295 + 0fa8275 commit a698037

19 files changed

+432
-90
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
*.mpy
26
.idea
37
__pycache__
@@ -8,4 +12,4 @@ bundles
812
*.DS_Store
913
.eggs
1014
dist
11-
**/*.egg-info
15+
**/*.egg-info

.pylintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
[MASTER]
26

37
# A comma-separated list of package or module names from where C extensions may

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
15
python:
26
version: 3
37
requirements_file: requirements.txt

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
3+
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
4+
SPDX-License-Identifier: CC-BY-4.0
5+
-->
6+
17
# Adafruit Community Code of Conduct
28

39
## Our Pledge
@@ -43,7 +49,7 @@ Examples of unacceptable behavior by participants include:
4349

4450
The goal of the standards and moderation guidelines outlined here is to build
4551
and maintain a respectful community. We ask that you don’t just aim to be
46-
"technically unimpeachable", but rather try to be your best self.
52+
"technically unimpeachable", but rather try to be your best self.
4753

4854
We value many things beyond technical expertise, including collaboration and
4955
supporting others within our community. Providing a positive experience for
@@ -74,9 +80,9 @@ You may report in the following ways:
7480
In any situation, you may send an email to <[email protected]>.
7581

7682
On the Adafruit Discord, you may send an open message from any channel
77-
to all Community Moderators by tagging @community moderators. You may
78-
also send an open message from any channel, or a direct message to
79-
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
83+
to all Community Moderators by tagging @community moderators. You may
84+
also send an open message from any channel, or a direct message to
85+
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
8086
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
8187

8288
Email and direct message reports will be kept confidential.

LICENSES/CC-BY-4.0.txt

Lines changed: 324 additions & 0 deletions
Large diffs are not rendered by default.

LICENSES/MIT.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
MIT License Copyright (c) <year> <copyright holders>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice (including the next
11+
paragraph) shall be included in all copies or substantial portions of the
12+
Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
17+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19+
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSES/PSF-2.0.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
2+
3+
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.
4+
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.
5+
3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.
6+
4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
7+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
8+
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
9+
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
10+
8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.

LICENSES/Unlicense.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
4+
this software, either in source code form or as a compiled binary, for any
5+
purpose, commercial or non-commercial, and by any means.
6+
7+
In jurisdictions that recognize copyright laws, the author or authors of this
8+
software dedicate any and all copyright interest in the software to the public
9+
domain. We make this dedication for the benefit of the public at large and
10+
to the detriment of our heirs and successors. We intend this dedication to
11+
be an overt act of relinquishment in perpetuity of all present and future
12+
rights to this software under copyright law.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
17+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
19+
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information,
20+
please refer to <https://unlicense.org/>

README.rst.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
3+
SPDX-License-Identifier: MIT

adafruit_itertools/adafruit_itertools

Whitespace-only changes.

adafruit_itertools/adafruit_itertools.py

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,7 @@
1-
# 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
2-
# the Individual or Organization ("Licensee") accessing and otherwise using Python
3-
# 3.7.3 software in source or binary form and its associated documentation.
4-
5-
# 2. Subject to the terms and conditions of this License Agreement, PSF hereby
6-
# grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
7-
# analyze, test, perform and/or display publicly, prepare derivative works,
8-
# distribute, and otherwise use Python 3.7.3 alone or in any derivative
9-
# version, provided, however, that PSF's License Agreement and PSF's notice of
10-
# copyright, i.e., "Copyright © 2001-2019 Python Software Foundation; All Rights
11-
# Reserved" are retained in Python 3.7.3 alone or in any derivative version
12-
# prepared by Licensee.
13-
14-
# 3. In the event Licensee prepares a derivative work that is based on or
15-
# incorporates Python 3.7.3 or any part thereof, and wants to make the
16-
# derivative work available to others as provided herein, then Licensee hereby
17-
# agrees to include in any such work a brief summary of the changes made to Python
18-
# 3.7.3.
19-
20-
# 4. PSF is making Python 3.7.3 available to Licensee on an "AS IS" basis.
21-
# PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
22-
# EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
23-
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
24-
# USE OF PYTHON 3.7.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
25-
26-
# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.7.3
27-
# FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
28-
# MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.7.3, OR ANY DERIVATIVE
29-
# THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
30-
31-
# 6. This License Agreement will automatically terminate upon a material breach of
32-
# its terms and conditions.
33-
34-
# 7. Nothing in this License Agreement shall be deemed to create any relationship
35-
# of agency, partnership, or joint venture between PSF and Licensee. This License
36-
# Agreement does not grant permission to use PSF trademarks or trade name in a
37-
# trademark sense to endorse or promote products or services of Licensee, or any
38-
# third party.
39-
40-
# 8. By copying, installing or otherwise using Python 3.7.3, Licensee agrees
41-
# to be bound by the terms and conditions of this License Agreement.
1+
# SPDX-FileCopyrightText: 2001-2019 Python Software Foundation
2+
#
3+
# SPDX-License-Identifier: PSF-2.0
4+
425
"""
436
`adafruit_itertools`
447
================================================================================
@@ -77,8 +40,7 @@ def accumulate(iterable, func=lambda x, y: x + y):
7740
is empty, the output iterable will also be empty.
7841
7942
:param iterable: the source of values to be accumulated
80-
:param func: the function to combine the accumulated value with the next one
81-
"""
43+
:param func: the function to combine the accumulated value with the next one"""
8244
it = iter(iterable)
8345
try:
8446
acc = next(it)

adafruit_itertools/adafruit_itertools_extras.py

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,7 @@
1-
# 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
2-
# the Individual or Organization ("Licensee") accessing and otherwise using Python
3-
# 3.7.3 software in source or binary form and its associated documentation.
4-
5-
# 2. Subject to the terms and conditions of this License Agreement, PSF hereby
6-
# grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
7-
# analyze, test, perform and/or display publicly, prepare derivative works,
8-
# distribute, and otherwise use Python 3.7.3 alone or in any derivative
9-
# version, provided, however, that PSF's License Agreement and PSF's notice of
10-
# copyright, i.e., "Copyright © 2001-2019 Python Software Foundation; All Rights
11-
# Reserved" are retained in Python 3.7.3 alone or in any derivative version
12-
# prepared by Licensee.
13-
14-
# 3. In the event Licensee prepares a derivative work that is based on or
15-
# incorporates Python 3.7.3 or any part thereof, and wants to make the
16-
# derivative work available to others as provided herein, then Licensee hereby
17-
# agrees to include in any such work a brief summary of the changes made to Python
18-
# 3.7.3.
19-
20-
# 4. PSF is making Python 3.7.3 available to Licensee on an "AS IS" basis.
21-
# PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
22-
# EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
23-
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
24-
# USE OF PYTHON 3.7.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
25-
26-
# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.7.3
27-
# FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
28-
# MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.7.3, OR ANY DERIVATIVE
29-
# THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
30-
31-
# 6. This License Agreement will automatically terminate upon a material breach of
32-
# its terms and conditions.
33-
34-
# 7. Nothing in this License Agreement shall be deemed to create any relationship
35-
# of agency, partnership, or joint venture between PSF and Licensee. This License
36-
# Agreement does not grant permission to use PSF trademarks or trade name in a
37-
# trademark sense to endorse or promote products or services of Licensee, or any
38-
# third party.
39-
40-
# 8. By copying, installing or otherwise using Python 3.7.3, Licensee agrees
41-
# to be bound by the terms and conditions of this License Agreement.
1+
# SPDX-FileCopyrightText: 2001-2019 Python Software Foundation
2+
#
3+
# SPDX-License-Identifier: PSF-2.0
4+
425
"""
436
`adafruit_itertools_extras`
447
================================================================================
@@ -156,7 +119,7 @@ def grouper(iterable, n, fillvalue=None):
156119

157120

158121
def iter_except(func, exception):
159-
""" Call a function repeatedly, yielding the results, until exception is raised.
122+
"""Call a function repeatedly, yielding the results, until exception is raised.
160123
161124
Converts a call-until-exception interface to an iterator interface.
162125
Like builtins.iter(func, sentinel) but uses an exception instead

docs/_static/favicon.ico.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2018 Phillip Torrone for Adafruit Industries
2+
3+
SPDX-License-Identifier: CC-BY-4.0

docs/api.rst.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
4+
#
5+
# SPDX-License-Identifier: MIT
6+
37
import os
48
import sys
59

docs/examples.rst.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT

docs/index.rst.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT

examples/itertools_simpletest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
3+
14
# The MIT License (MIT)
25
#
36
# Copyright (c) 2019 Dave Astels for Adafruit Industries

setup.py.disabled

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
15
"""
26
This library is not deployed to PyPI. It is either a board-specific helper library, or
37
does not make sense for use on or is incompatible with single board computers and Linux.

0 commit comments

Comments
 (0)