Skip to content

Commit b9c8532

Browse files
committed
Update version and docs
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 582f498 commit b9c8532

File tree

6 files changed

+12
-25
lines changed

6 files changed

+12
-25
lines changed

SPECIFICATION.rst

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

33

44
Purpose
@@ -25,7 +25,6 @@ Getting Started
2525
A simple and valid ABOUT file named httpd.ABOUT may look like this::
2626

2727
about_resource: httpd-2.4.3.tar.gz
28-
about_resource_path: httpd-2.4.3.tar.gz
2928
name: Apache HTTP Server
3029
version: 2.4.3
3130
homepage_url: http://httpd.apache.org
@@ -223,11 +222,7 @@ Referencing the file or directory documented by an ABOUT file
223222

224223
An ABOUT file documents one file or directory. The mandatory "about_resource"
225224
field reference the documented file or directory. The value of the
226-
"about_resource" field is the name of the referenced file or directory.
227-
228-
On the other hand, there is another field "about_resource_path" can be a name stored
229-
in the same directory as the ABOUT file or a POSIX path relative to the path of
230-
the ABOUT file. POSIX paths use a "/" forward slash sign as path separators.
225+
"about_resource" field is the name or path of the referenced file or directory.
231226

232227
A tool processing an ABOUT file must report an error if this field is missing.
233228

@@ -238,18 +233,15 @@ For example, a file named django.ABOUT contains the following field to document
238233
the django-1.2.3.tar.gz archive stored in the same directory::
239234

240235
about_resource: django-1.2.3.tar.gz
241-
about_resource_path: django-1.2.3.tar.gz
242236

243237
In this example, the ABOUT file documents a whole sub-directory::
244238

245239
about_resource: linux-kernel-2.6.23
246-
about_resource_path: downloads/linux-kernel-2.6.23/
247240

248241
In this example, the ABOUT file documents the current directory, using a "."
249242
period to reference it::
250243

251244
about_resource: .
252-
about_resource_path: .
253245

254246

255247
Other Mandatory fields
@@ -271,8 +263,6 @@ Optional Information fields
271263
be the date the component was provisioned, in an ISO date format such as
272264
'YYYY-MM-DD'.
273265

274-
- about_resource_path: Path the the reference component
275-
276266
- spec_version: The version of the ABOUT file format specification used for this
277267
file. This is provided as a hint to readers and tools in order to support
278268
future versions of this specification.
@@ -330,7 +320,7 @@ Optional Licensing fields
330320
- license_key: The license key(s) for the component.
331321

332322

333-
Optional Licensing flag fields
323+
Optional Boolean flag fields
334324
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335325

336326
- redistribute: Set this flag to yes if the component license requires source
@@ -345,6 +335,8 @@ Optional Licensing flag fields
345335
- modified: Set this flag to yes if the component has been modified. Defaults to
346336
no when absent.
347337

338+
- internal_use_only: Set this flag to yes if the component is used internal only.
339+
Defaults to no when absent.
348340

349341
Optional Extension fields
350342
~~~~~~~~~~~~~~~~~~~~~~~~~

docs/CHANGELOG.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
2018-xx-xx
1+
2018-11-15
22

3-
Release x.x.x
3+
Release 3.3.0
44

55
* Update the list of common license keys
66
* New UrlListField introduced for list of urls
@@ -9,7 +9,7 @@
99
* Format the ordering of the genreated ABOUT file (See https://github.com/nexB/aboutcode-toolkit/issues/349#issuecomment-438871444)
1010
* '+' and '(' and ')' is now supported in license_expression
1111
* The key 'about_resource_path' is removed
12-
* The 2 required fields are 'about_resource' and 'name'
12+
* Revert back the requirement of the 'name' field
1313
* Add a new supported 'internal_use_only' key
1414

1515
2018-10-23

docs/UsingAboutCodetoDocumentYourSoftwareAssets.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,13 @@ You should start with a software inventory of your codebase in spreadsheet forma
6363
<tr>
6464
<td>name</td>
6565
<td>Component name</td>
66-
<td>Optional</td>
66+
<td>Mandatory</td>
6767
</tr>
6868
<tr>
6969
<td>about_resource</td>
7070
<td>Name of the component resource</td>
7171
<td>Optional</td>
7272
</tr>
73-
<tr>
74-
<td>about_resource_path</td>
75-
<td>Path to the component resource</td>
76-
<td>Optional. Relative path to the component resource from where the .ABOUT file located.</td>
77-
</tr>
7873
<tr>
7974
<td>version</td>
8075
<td>Component version</td>
-48 Bytes
Binary file not shown.

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.2.2',
27+
version='3.3.0',
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
basestring = str # Python 3 #NOQA
2828

2929

30-
__version__ = '3.2.2'
30+
__version__ = '3.3.0'
3131

3232

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

3535
__copyright__ = """
3636
Copyright (c) 2013-2018 nexB Inc. All rights reserved. http://dejacode.org

0 commit comments

Comments
 (0)