Skip to content

Commit c1ed4c9

Browse files
committed
Add ABOUT and LICENSE file for seq.pyx
Signed-off-by: Jono Yang <[email protected]>
1 parent 8009a20 commit c1ed4c9

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

src/licensedcode/seq.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Based off of https://github.com/rapidfuzz/CyDifflib/blob/ef0d1cb49abbdd551e9a27065032fc5317c731fd/src/cydifflib/_initialize.pyx
2-
31
from collections import namedtuple as _namedtuple
42

53
cimport cython
@@ -15,10 +13,10 @@ sequence alignment between two sequences of integers/token ids.
1513
Based on and heavily modified from Python's difflib.py from the 3.X tip:
1614
https://hg.python.org/cpython/raw-file/0a69b1e8b7fe/Lib/difflib.py
1715
18-
and CyDifflib:
16+
and CyDifflib from the 1.2.X tip:
1917
https://github.com/rapidfuzz/CyDifflib/blob/ef0d1cb49abbdd551e9a27065032fc5317c731fd/src/cydifflib/_initialize.pyx
2018
21-
license: PSF. See seq.ABOUT file for details.
19+
license: PSF and MIT. See seq.py.ABOUT file for details.
2220
"""
2321

2422

src/licensedcode/seq.pyx.ABOUT

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
about_resource: seq.pyx
2+
3+
download_url: https://github.com/rapidfuzz/CyDifflib/blob/ef0d1cb49abbdd551e9a27065032fc5317c731fd/src/cydifflib/_initialize.pyx
4+
5+
name: CyDifflib
6+
7+
description: Cython implementation of Python difflib modified for use in scancode-toolkit.
8+
9+
notes: |
10+
Based on Python's difflib.py from the 3.X tip and CyDifflib from the 1.2.X tip.
11+
12+
homepage_url: https://github.com/rapidfuzz/CyDifflib/
13+
14+
owner: nexB
15+
16+
license_expression: mit
17+
licenses:
18+
- file: seq.pyx.LICENSE
19+
key: mit
20+
name: MIT License
21+
22+
copyright: Copyright (c) Max Bachmann

src/licensedcode/seq.pyx.LICENSE

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

0 commit comments

Comments
 (0)