Skip to content

Commit 2345686

Browse files
committed
Add '+' sign as a valid character
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent c42a95f commit 2345686

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

SPECIFICATION.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ABOUT File Specification v3.1
1+
ABOUT File Specification v3.1.1
22

33

44
Purpose
@@ -72,7 +72,7 @@ A file name can contain only these US-ASCII characters:
7272

7373
- digits from 0 to 9
7474
- uppercase and lowercase letters from A to Z
75-
- the "_" underscore, "-" dash and "." period signs.
75+
- the "_" underscore, "-" dash, "." period and "+" period signs.
7676

7777
- The case of a file name is not significant. On case-sensitive file systems
7878
(such as on Linux), a tool must report an error if two ABOUT files stored in

docs/CHANGELOG.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
2018-01-03
1+
2019-01-07
2+
3+
Release 3.3.2
4+
5+
* Add `+` sign as a valid character
6+
7+
8+
2019-01-03
29

310
Release 3.3.1
411

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def read(*names, **kwargs):
2424

2525
setup(
2626
name='aboutcode-toolkit',
27-
version='3.3.1',
27+
version='3.3.2',
2828
license='Apache-2.0',
2929
description=(
3030
'AboutCode-toolkit is a tool to document the provenance (origin and license) of '

src/attributecode/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf8 -*-
33

44
# ============================================================================
5-
# Copyright (c) 2013-2017 nexB Inc. http://www.nexb.com/ - All rights reserved.
5+
# Copyright (c) 2013-2019 nexB Inc. http://www.nexb.com/ - All rights reserved.
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
@@ -27,13 +27,13 @@
2727
basestring = str # Python 3 #NOQA
2828

2929

30-
__version__ = '3.3.1'
30+
__version__ = '3.3.2'
3131

3232

33-
__about_spec_version__ = '3.1'
33+
__about_spec_version__ = '3.1.1'
3434

3535
__copyright__ = """
36-
Copyright (c) 2013-2018 nexB Inc. All rights reserved. http://dejacode.org
36+
Copyright (c) 2013-2019 nexB Inc. All rights reserved. http://dejacode.org
3737
Licensed under the Apache License, Version 2.0 (the "License");
3838
you may not use this file except in compliance with the License.
3939
You may obtain a copy of the License at

src/attributecode/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf8 -*-
33
# ============================================================================
4-
# Copyright (c) 2013-2018 nexB Inc. http://www.nexb.com/ - All rights reserved.
4+
# Copyright (c) 2013-2019 nexB Inc. http://www.nexb.com/ - All rights reserved.
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
@@ -83,7 +83,7 @@ def to_posix(path):
8383
UNC_PREFIX_POSIX = to_posix(UNC_PREFIX)
8484
UNC_PREFIXES = (UNC_PREFIX_POSIX, UNC_PREFIX,)
8585

86-
valid_file_chars = string.digits + string.ascii_letters + '_-.'
86+
valid_file_chars = string.digits + string.ascii_letters + '_-.+'
8787

8888

8989
def invalid_chars(path):

tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf8 -*-
33

44
# ============================================================================
5-
# Copyright (c) 2014-2017 nexB Inc. http://www.nexb.com/ - All rights reserved.
5+
# Copyright (c) 2014-2019 nexB Inc. http://www.nexb.com/ - All rights reserved.
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
@@ -166,7 +166,7 @@ def test_get_about_locations_with_ABOUT_files(self):
166166
assert res.endswith(expect)
167167

168168
def test_invalid_chars_with_valid_chars(self):
169-
name = string.digits + string.ascii_letters + '_-.'
169+
name = string.digits + string.ascii_letters + '_-.+'
170170
result = util.invalid_chars(name)
171171
expected = []
172172
assert expected == result

0 commit comments

Comments
 (0)