Skip to content

Commit b6e8b3f

Browse files
committed
Fixed #519 - Remove the ASCII Limitation
* Note that I still tend to keep ASCII-only for field name * This commit also reove the test pipeline for python3.6 Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 591655e commit b6e8b3f

17 files changed

+48
-64
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dist: xenial
1010

1111
language: python
1212
python:
13-
- "3.6"
1413
- "3.7"
1514
- "3.8"
1615
- "3.9"

CHANGELOG.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
==============================
22
Changelog
33
2023-xx-xx
4-
Release 7.3.0
4+
Release 8.0.0
55

66
* Fixed the transform code for xlsx and json
77
* Remove irrelevant error for attrib
88
* Add support to identify worksheet name for XLSX input
9+
* The severity error level for "contains illegal name characters (or empty spaces) and is ignored" is changed from ERROR to WARNING
10+
* Remove the limitation to ASCII only
11+
* Drop support for python3.6
12+
* Update valid chatacters for file/path name
913

1014

1115
2022-10-24

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

9-
FROM python:3.6-slim-buster
9+
FROM python:3.7-slim-buster
1010

1111
RUN apt-get update \
1212
&& apt-get install -y bash bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 libpopt0\
@@ -27,7 +27,7 @@ RUN bash -c "source ./configure"
2727
# Add aboutcode to path
2828
#ENV PATH=$HOME/aboutcode-toolkit:$PATH
2929

30-
# Set entrypoint to be the aboutcode command, allows to run the generated docker image directly with the aboutcode arguments:
30+
# Set entrypoint to be the aboutcode command, allows to run the generated docker image directly with the aboutcode arguments:
3131
# `docker run (...) <containername> <about arguments>`
3232
# Example: docker run --rm --name "aboutcode" -v ${PWD}:/project -v /tmp/result:/result aboutcode-toolkit attrib /project /result/c.html
3333
ENTRYPOINT ["./bin/about"]

README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In addition, this tool is able to generate attribution notices and
2121
identify redistributable source code used in your project to help you comply
2222
with open source licenses conditions.
2323

24-
This version of the AboutCode Toolkit follows the ABOUT specification version 3.2.3 at:
24+
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.0 at:
2525
https://aboutcode-toolkit.readthedocs.io/en/latest/specification.html
2626

2727

@@ -39,7 +39,7 @@ Build and tests status
3939

4040
REQUIREMENTS
4141
------------
42-
The AboutCode Toolkit is tested with Python 3.6.2 or above only on Linux, Mac and Windows.
42+
The AboutCode Toolkit is tested with Python 3.7 or above only on Linux, Mac and Windows.
4343
You will need to install a Python interpreter if you do not have one already
4444
installed.
4545

@@ -69,11 +69,6 @@ To install all the needed dependencies in a virtualenv, run (on posix):
6969
or on windows:
7070
configure
7171

72-
Note
73-
~~~~
74-
For MacOS users, it's a known issue the Python36 may case SSL Certificates error if the Certificates is not up to date.
75-
A solution is to run: `sudo /Applications/Python\\ 3.6/Install\\ Certificates.command` to upgrade the outdated certificates.
76-
7772
ACTIVATE the VIRTUALENV
7873
-----------------------
7974
To activate the virtualenv, run (on posix):

about.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
about_resource: .
22
name: AboutCode-toolkit
3-
version: 7.3.0
3+
version: 8.0.0
44
author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez
55
copyright: Copyright (c) nexB Inc.
66
description: |

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
parameters:
1212
job_name: ubuntu18_cpython
1313
image_name: ubuntu-18.04
14-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
14+
python_versions: ['3.7', '3.8', '3.9', '3.10']
1515
test_suites:
1616
all: venv/bin/pytest -n 2 -vvs
1717

1818
- template: etc/ci/azure-posix.yml
1919
parameters:
2020
job_name: ubuntu20_cpython
2121
image_name: ubuntu-20.04
22-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
22+
python_versions: ['3.7', '3.8', '3.9', '3.10']
2323
test_suites:
2424
all: venv/bin/pytest -n 2 -vvs
2525

@@ -53,7 +53,7 @@ jobs:
5353
parameters:
5454
job_name: win2019_cpython
5555
image_name: windows-2019
56-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
56+
python_versions: ['3.7', '3.8', '3.9', '3.10']
5757
test_suites:
5858
all: venv\Scripts\pytest -n 2 -vvs
5959

docs/source/home.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In addition, this tool is able to generate attribution notices and
2020
identify redistributable source code used in your project to help you comply
2121
with open source licenses conditions.
2222

23-
This version of the AboutCode Toolkit follows the ABOUT specification version 3.2.3 at:
23+
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.0 at:
2424
https://aboutcode-toolkit.readthedocs.io/en/latest/specification.html
2525

2626

@@ -38,7 +38,7 @@ Build and tests status
3838

3939
REQUIREMENTS
4040
------------
41-
The AboutCode Toolkit is tested with Python 3.6.2 or above only on Linux, Mac and Windows.
41+
The AboutCode Toolkit is tested with Python 3.7 or above only on Linux, Mac and Windows.
4242
You will need to install a Python interpreter if you do not have one already
4343
installed.
4444

@@ -69,13 +69,6 @@ To install all the needed dependencies in a virtualenv, run (on posix):
6969
or on windows:
7070
configure
7171

72-
.. note::
73-
For MacOS users, it's a known issue the Python36 may case SSL Certificates error
74-
if the Certificates is not up to date.
75-
76-
A solution is to run: `sudo /Applications/Python\\ 3.6/Install\\ Certificates.command`
77-
to upgrade the outdated certificates.
78-
7972
ACTIVATE the VIRTUALENV
8073
-----------------------
8174
To activate the virtualenv, run (on posix):

docs/source/specification.rst

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _specification:
22

33
===============================
4-
ABOUT File Specification v3.2.3
4+
ABOUT File Specification v3.3.0
55
===============================
66

77
Purpose
@@ -57,8 +57,7 @@ The meaning of this ABOUT file is:
5757
Specification
5858
=============
5959

60-
An ABOUT file is an ASCII YAML formatted text file. Note that while Unicode characters
61-
are not supported in an ABOUT file proper, external files can contain UTF-8 Unicode.
60+
An ABOUT file is an YAML formatted text file.
6261
The key for the licenses field and the license_expression are dejacode license key.
6362

6463
ABOUT file name
@@ -67,11 +66,9 @@ ABOUT file name
6766
An ABOUT file name can use a limited set of characters and is suffixed with a
6867
".ABOUT" extension using any combination of uppercase and lowercase characters.
6968

70-
A file name can contain only these US-ASCII characters:
69+
A file name can contain any characters and digits with the following exception and condition:
7170

72-
- digits from 0 to 9
73-
- uppercase and lowercase letters from A to Z
74-
- the following symbols: ``"_", "-", "+", ".", "(", ")", "~", "[", "]", "{", "}", "@", "%"``
71+
- the following symbols are not supported: ``", #, &, ', *, \, :, ;, <, >, =, ?, /, ^, `, |``
7572
- The case of a file name is not significant. On case-sensitive file systems
7673
(such as on Linux), a tool must report an error if two ABOUT files stored in the same
7774
directory have the same lowercase file name. This is to ensure that ABOUT files can be
@@ -81,7 +78,7 @@ A file name can contain only these US-ASCII characters:
8178
Lines of text
8279
-------------
8380

84-
An ABOUT file contains lines of US-ASCII text. Lines contain field names/values pairs.
81+
An ABOUT file contains lines of text. Lines contain field names/values pairs.
8582
The standard line ending is the LF character. The line ending characters can be any LF,
8683
CR or CR/LF and tools must normalize line endings to LF when processing an ABOUT file.
8784
Empty lines and lines containing only white spaces that are not part of a field value
@@ -109,7 +106,7 @@ The field value is separated from the field name by a ":" colon. The ":" colon
109106
can be followed by one or more spaces that must be ignored. This also applies
110107
to trailing white spaces: they must be ignored.
111108

112-
The field value is composed of one or more lines of plain US-ASCII printable text.
109+
The field value is composed of one or more lines of plain printable text.
113110

114111
When a field value is a long string, additional continuation lines must start with
115112
at least one space. In this case, the first space of an additional continuation
@@ -169,9 +166,7 @@ for long texts or to reference a common text in multiple ABOUT files such as a
169166
common license text. In this case the field name is suffixed with "_file" and the
170167
field value must be a path pointing to the file that contains the actual value of the
171168
field. This path must be a POSIX path relative to the path of the ABOUT file. The file
172-
content must be UTF-8-encoded text. This is in contrast with field values contained
173-
directly in an ABOUT file that must be US-ASCII- encoded text and allows to support
174-
non-ASCII text content.
169+
content must be UTF-8-encoded text.
175170

176171
For example, the full license text for a component is often stored in a separate file named COPYING:
177172

etc/scripts/gen_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def gen_requirements():
3434
type=pathlib.Path,
3535
required=True,
3636
metavar="DIR",
37-
help="Path to the 'site-packages' directory where wheels are installed such as lib/python3.6/site-packages",
37+
help="Path to the 'site-packages' directory where wheels are installed such as lib/python3.7/site-packages",
3838
)
3939
parser.add_argument(
4040
"-r",

etc/scripts/gen_requirements_dev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def gen_dev_requirements():
3636
type=pathlib.Path,
3737
required=True,
3838
metavar="DIR",
39-
help='Path to the "site-packages" directory where wheels are installed such as lib/python3.6/site-packages',
39+
help='Path to the "site-packages" directory where wheels are installed such as lib/python3.7/site-packages',
4040
)
4141
parser.add_argument(
4242
"-d",

0 commit comments

Comments
 (0)