Skip to content

Commit 265415a

Browse files
committed
Fixed #100 - Update link references of ownership from nexB to aboutcode-org and version
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 3b8b992 commit 265415a

File tree

9 files changed

+277
-148
lines changed

9 files changed

+277
-148
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
v30.3.1 - 2024-08-13
5+
--------------------
6+
7+
This is a minor release without API changes:
8+
9+
- Update link references of ownership from nexB to aboutcode-org
10+
411
v30.3.0 - 2024-03-18
512
--------------------
613

NOTICE

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
11
#
2+
23
# Copyright (c) nexB Inc. and others.
4+
35
# SPDX-License-Identifier: Apache-2.0
6+
47
#
5-
# Visit https://aboutcode.org and https://github.com/nexB/license-expression
8+
9+
# Visit https://aboutcode.org and https://github.com/aboutcode-org/license-expression
10+
611
# for support and download.
12+
713
#
14+
815
# Licensed under the Apache License, Version 2.0 (the "License");
16+
917
# you may not use this file except in compliance with the License.
18+
1019
# You may obtain a copy of the License at
20+
1121
#
12-
# http://www.apache.org/licenses/LICENSE-2.0
22+
23+
# http://www.apache.org/licenses/LICENSE-2.0
24+
1325
#
26+
1427
# Unless required by applicable law or agreed to in writing, software
28+
1529
# distributed under the License is distributed on an "AS IS" BASIS,
30+
1631
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32+
1733
# See the License for the specific language governing permissions and
34+
1835
# limitations under the License.
36+
1937
#

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using boolean logic.
88

99
- License: Apache-2.0
1010
- Python: 3.8+
11-
- Homepage: https://github.com/nexB/license-expression/
11+
- Homepage: https://github.com/aboutcode-org/license-expression/
1212
- Install: `pip install license-expression` also available in most Linux distro.
1313

1414
Software project licenses are often a combination of several free and open
@@ -32,20 +32,20 @@ See https://scancode-licensedb.aboutcode.org/ to get started quickly.
3232
``license-expression`` is both powerful and simple to use and is a used as the
3333
license expression engine in several projects and products such as:
3434

35-
- AboutCode-toolkit https://github.com/nexB/aboutcode-toolkit
35+
- AboutCode-toolkit https://github.com/aboutcode-org/aboutcode-toolkit
3636
- AlekSIS (School Information System) https://edugit.org/AlekSIS/official/AlekSIS-Core
3737
- Barista https://github.com/Optum/barista
3838
- Conda forge tools https://github.com/conda-forge/conda-smithy
3939
- DejaCode https://dejacode.com
4040
- DeltaCode https://github.com/nexB/deltacode
4141
- FenixscanX https://github.com/SmartsYoung/FenixscanX
42-
- FetchCode https://github.com/nexB/fetchcode
42+
- FetchCode https://github.com/aboutcode-org/fetchcode
4343
- Flict https://github.com/vinland-technology/flict and https://github.com/vinland-technology
4444
- license.sh https://github.com/webscopeio/license.sh
4545
- liferay_inbound_checker https://github.com/carmenbianca/liferay_inbound_checker
4646
- REUSE https://reuse.software/ and https://github.com/fsfe/reuse-tool
47-
- ScanCode-io https://github.com/nexB/scancode.io
48-
- ScanCode-toolkit https://github.com/nexB/scancode-toolkit
47+
- ScanCode-io https://github.com/aboutcode-org/scancode.io
48+
- ScanCode-toolkit https://github.com/aboutcode-org/scancode-toolkit
4949

5050
See also for details:
5151
- https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
@@ -78,7 +78,7 @@ Build and tests status
7878
Source code and download
7979
========================
8080

81-
- GitHub https://github.com/nexB/license-expression.git
81+
- GitHub https://github.com/aboutcode-org/license-expression.git
8282
- PyPI https://pypi.python.org/pypi/license-expression
8383

8484
Also available in several Linux distros:
@@ -95,7 +95,7 @@ Also available in several Linux distros:
9595
Support
9696
=======
9797

98-
- Submit bugs and questions at: https://github.com/nexB/license-expression/issues
98+
- Submit bugs and questions at: https://github.com/aboutcode-org/license-expression/issues
9999
- Join the chat at: https://gitter.im/aboutcode-org/discuss
100100

101101
Description
@@ -233,7 +233,7 @@ Two expressions can be compared for equivalence and containment:
233233
Development
234234
===========
235235

236-
- Checkout a clone from https://github.com/nexB/license-expression.git
236+
- Checkout a clone from https://github.com/aboutcode-org/license-expression.git
237237

238238
- Then run ``./configure --dev`` and then ``source tmp/bin/activate`` on Linux and POSIX.
239239
This will install all dependencies in a local virtualenv, including

license-expression.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ copyright: Copyright (c) nexB Inc. and others.
66
license_expression: apache-2.0
77
license_file: apache-2.0.LICENSE
88

9-
homepage_url: https://github.com/nexB/license-expression
9+
homepage_url: https://github.com/aboutcode-org/license-expression

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[metadata]
22
name = license-expression
3-
version = 30.3.0
3+
version = 30.3.1
44
license = Apache-2.0
55

66
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
77
description = license-expression is a comprehensive utility library to parse, compare, simplify and normalize license expressions (such as SPDX license expressions) using boolean logic.
88
long_description = file:README.rst
99
long_description_content_type = text/x-rst
10-
url = https://github.com/nexB/license-expression
10+
url = https://github.com/aboutcode-org/license-expression
1111

1212
author = nexB. Inc. and others
1313
author_email = [email protected]
@@ -20,7 +20,7 @@ classifiers =
2020
Topic :: Software Development
2121
Topic :: Utilities
2222

23-
keywords =
23+
keywords =
2424
open source
2525
license expression
2626
license

src/license_expression/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5-
# See https://github.com/nexB/license-expression for support or download.
5+
# See https://github.com/aboutcode-org/license-expression for support or download.
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88
"""

src/license_expression/_pyahocorasick.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# SPDX-License-Identifier: LicenseRef-scancode-public-domain
4-
# See https://github.com/nexB/license-expression for support or download.
4+
# See https://github.com/aboutcode-org/license-expression for support or download.
55
# See https://aboutcode.org for more information about nexB OSS projects.
66
#
77
"""
@@ -343,10 +343,12 @@ def iter(self, tokens_string, include_unmatched=False, include_space=False):
343343
if match.output is not nil:
344344
matched_string, output_value = match.output
345345
if TRACE:
346-
logger_debug(' type output', repr(output_value), type(matched_string))
346+
logger_debug(' type output', repr(
347+
output_value), type(matched_string))
347348
n = len(matched_string)
348349
start_pos = end_pos - n + 1
349-
if TRACE: logger_debug(' start_pos', start_pos)
350+
if TRACE:
351+
logger_debug(' start_pos', start_pos)
350352
yield Token(start_pos, end_pos, tokens_string[start_pos: end_pos + 1], output_value)
351353
yielded = True
352354
match = match.fail
@@ -355,7 +357,8 @@ def iter(self, tokens_string, include_unmatched=False, include_space=False):
355357
logger_debug(' unmatched but known token')
356358
n = len(token_string)
357359
start_pos = end_pos - n + 1
358-
tok = Token(start_pos, end_pos, tokens_string[start_pos: end_pos + 1], None)
360+
tok = Token(start_pos, end_pos,
361+
tokens_string[start_pos: end_pos + 1], None)
359362
if TRACE:
360363
logger_debug(' unmatched tok 2:', tok)
361364
yield tok
@@ -406,7 +409,7 @@ def tokenize(self, string, include_unmatched=True, include_space=False):
406409
True
407410
"""
408411
tokens = self.iter(string,
409-
include_unmatched=include_unmatched, include_space=include_space)
412+
include_unmatched=include_unmatched, include_space=include_space)
410413
tokens = list(tokens)
411414
if TRACE:
412415
logger_debug('tokenize.tokens:', tokens)
@@ -544,7 +547,7 @@ def sort(cls, tokens):
544547
>>> expected == Token.sort(tokens)
545548
True
546549
"""
547-
key = lambda s: (s.start, -len(s),)
550+
def key(s): return (s.start, -len(s),)
548551
return sorted(tokens, key=key)
549552

550553
def is_after(self, other):
@@ -613,8 +616,8 @@ def overlap(self, other):
613616
|
614617
(?P<parens>[\(\)])
615618
''',
616-
re.VERBOSE | re.MULTILINE | re.UNICODE
617-
)
619+
re.VERBOSE | re.MULTILINE | re.UNICODE
620+
)
618621

619622

620623
def get_tokens(tokens_string):

tests/test__pyahocorasick.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# SPDX-License-Identifier: LicenseRef-scancode-public-domain
4-
# See https://github.com/nexB/license-expression for support or download.
4+
# See https://github.com/aboutcode-org/license-expression for support or download.
55
# See https://aboutcode.org for more information about nexB OSS projects.
66

77
"""
@@ -158,7 +158,8 @@ def get_test_automaton():
158158
# 0123456789012345678901234567890123456
159159

160160
t = get_test_automaton()
161-
result = list(t.iter(test_string, include_unmatched=True, include_space=True))
161+
result = list(
162+
t.iter(test_string, include_unmatched=True, include_space=True))
162163
expected = [
163164
Token(0, 1, u' ', None),
164165
Token(2, 3, u'he', u'he'),
@@ -190,7 +191,8 @@ def get_test_automaton():
190191
test_string = '((l-a + AND l-b) OR (l -c+))'
191192

192193
t = get_test_automaton()
193-
result = list(t.iter(test_string, include_unmatched=True, include_space=True))
194+
result = list(
195+
t.iter(test_string, include_unmatched=True, include_space=True))
194196
expected = [
195197
Token(0, 0, u'(', u'('),
196198
Token(1, 1, u'(', u'('),
@@ -215,7 +217,8 @@ def get_test_automaton():
215217

216218
assert expected == result
217219

218-
result = list(t.tokenize(test_string, include_unmatched=True, include_space=True))
220+
result = list(t.tokenize(
221+
test_string, include_unmatched=True, include_space=True))
219222
assert expected == result
220223

221224
def test_tokenize_with_unmatched_and_space(self):
@@ -232,7 +235,8 @@ def get_test_automaton():
232235
# 111111111122222222223
233236
# 0123456789012345678901234567890
234237
t = get_test_automaton()
235-
result = list(t.tokenize(test_string, include_unmatched=True, include_space=True))
238+
result = list(t.tokenize(
239+
test_string, include_unmatched=True, include_space=True))
236240
expected = [
237241
Token(0, 0, u'(', u'('),
238242
Token(1, 1, u'(', u'('),

0 commit comments

Comments
 (0)