Skip to content

Commit 1b10a53

Browse files
committed
Merge branch 'release-v1.0.0'
2 parents 8f546c8 + 3a3d414 commit 1b10a53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+6831
-1358
lines changed

.gitignore

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
*.py[cod]
22

3-
# C extensions
4-
*.so
5-
6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
develop-eggs
17-
.installed.cfg
18-
lib
3+
/build
4+
/bin
5+
/var
6+
/lib
197
lib64
8+
/Include
9+
/Lib
10+
/Scripts
11+
/include
2012

2113
# Installer logs
2214
pip-log.txt
@@ -36,4 +28,5 @@ nosetests.xml
3628
/.settings
3729

3830
# PyCharm project
39-
.idea/
31+
.idea/
32+
/about_code_tool.egg_info

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
language: python
2+
23
python:
34
- "2.6"
45
- "2.7"
56
install:
6-
- "pip install -r requirements.txt --use-mirrors"
7-
- "pip install coverage"
8-
- "pip install coveralls"
7+
- source configure etc/conf
8+
# extra reqs for testings on Travis
9+
- pip install coverage coveralls
910
script:
10-
- "coverage run --source=about_code_tool setup.py test"
11+
- coverage run --source=about_code_tool setup.py test
1112
after_success:
12-
coveralls
13+
- coveralls

NOTICE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved.
2+
Licensed under the Apache License, Version 2.0 (the "License");
3+
you may not use this file except in compliance with the License.
4+
You may obtain a copy of the License at
5+
http://www.apache.org/licenses/LICENSE-2.0
6+
Unless required by applicable law or agreed to in writing, software
7+
distributed under the License is distributed on an "AS IS" BASIS,
8+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
See the License for the specific language governing permissions and
10+
limitations under the License.

README.rst

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,27 @@ version may be pre-installed, open a terminal and type::
4343
python2.6 --version
4444
python2.7 --version
4545

46-
On Windows or Mac, you can download Python 2.6 here:
47-
http://www.python.org/download/releases/2.6.6/
48-
49-
or Python 2.7 here:
50-
http://www.python.org/download/releases/2.7.5/
46+
On Windows or Mac, you can download the latest Python 2.7.x here:
47+
https://www.python.org/downloads/
5148

5249
Download the .msi installer for Windows or the .dmg archive for Mac.
5350
Open and run the installer using all the default options.
5451

5552

5653
INSTALLATION
5754
------------
58-
Download and save the about.py file from:
59-
https://raw.github.com/dejacode/about-code-tool/master/about.py
55+
Checkout or download and extract the AboutCode tool from:
56+
https://github.com/dejacode/about-code-tool/
57+
58+
To install all the needed dependencies in a virtualenv, run (on posix)::
59+
source configure
60+
or on windows::
61+
configure
6062

6163

6264
TESTS
6365
-----
64-
Optionally, to verify that everything works fine you can run the test suite,
65-
download the whole repository at:
66-
https://github.com/dejacode/about-code-tool/archive/master.zip
67-
68-
Then open a terminal or command prompt, extract the download if needed and run::
69-
66+
To verify that everything works fine you can run the test suite with::
7067
python setup.py test
7168

7269

@@ -150,13 +147,15 @@ information will be saved to the CSV file named "thirdparty_about.csv".
150147
Example syntax:
151148
genabout.py --extract_license --api_url='api_url' --api_username='api_username' --api_key='api_key'
152149

150+
153151
Example::
154152

155153
$ python genabout.py thirdparty_code.csv /tmp/thirdparty_about/
156154

157155
In this example, the tool will look at the "thirdparty_code.csv" and generate
158156
the .ABOUT files in the directory /tmp/thirdparty_about/.
159157

158+
160159
**genattrib.py**
161160

162161
::
@@ -207,17 +206,17 @@ For issues, you can use:
207206

208207
SOURCE CODE
209208
-----------
210-
The ABOUT tool is available through GitHub. For the latest version visit:
211-
209+
AboutCode is available through GitHub. For the latest version visit:
212210
https://github.com/dejacode/about-code-tool
213211

214212

215213
HACKING
216214
-------
217215
We accept pull requests provided under the same license as this tool.
216+
You agree to the http://developercertificate.org/
218217

219218

220219
LICENSE
221220
-------
222-
The ABOUT tool is released under the Apache 2.0 license.
221+
AboutCode is released under the Apache 2.0 license.
223222
See (of course) the about.ABOUT file for details.

SPEC

Lines changed: 220 additions & 0 deletions
Large diffs are not rendered by default.

USAGE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ Purpose
237237
Options
238238
-------
239239

240-
--template_loaction
240+
--template_location
241241

242-
This option allows user to use its own template for Attribution Generation.
243-
For instance, if the custom template the user want to use is located at:
242+
This option allows you to use your own template for Attribution Generation.
243+
For instance, if the custom template you want to use is located at:
244244
/home/custom_template/template.html
245245

246246
$ python genattrib.py --template_location=/home/custom_template/template.html input_path output_path component_list

about.ABOUT

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,25 @@
1-
about_resource: about-code-tool/about.py
1+
about_resource: .
22

3-
name: ABOUT tool
4-
version: 0.8.1
3+
name: AboutCode
4+
version: 0.9.0
55

66
owner: nexB Inc.
77
author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez
88

9-
109
home_url: http://dejacode.org
11-
readme_file: README.rst
12-
changelog_file: CHANGELOG.txt
1310

1411
vcs_tool: git
1512
vcs_repository: https://github.com/dejacode/about-code-tool.git
1613

17-
description: This is a tool to process ABOUT files. An ABOUT file provides a
18-
simple way to document the provenance (origin and license) 'about' a software
19-
component. An ABOUT file is a small text file stored in the codebase
20-
side-by-side with the software component that it documents.
14+
description: AboutCode is a tool to process ABOUT files. An ABOUT file
15+
provides a simple way to document the provenance (origin and license)
16+
'about' a software component. This is a small text file stored in the
17+
codebase side-by-side with the documented software component.
2118

2219

23-
license_text_file: apache2.LICENSE.txt
20+
dje_license: apache-2.0
21+
license_text_file: apache-2.0.LICENSE
2422
license_spdx: Apache-2.0
25-
copyright: Copyright (c) 2013 nexB, Inc.
26-
27-
notice:
28-
Copyright (c) 2013 nexB, Inc. http://www.nexb.com/ - All rights reserved.
29-
Licensed under the Apache License, Version 2.0 (the "License");
30-
you may not use this file except in compliance with the License.
31-
You may obtain a copy of the License at
32-
http://www.apache.org/licenses/LICENSE-2.0
33-
Unless required by applicable law or agreed to in writing, software
34-
distributed under the License is distributed on an "AS IS" BASIS,
35-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36-
See the License for the specific language governing permissions and
37-
limitations under the License.
23+
copyright: Copyright (c) 2013-2014 nexB Inc.
24+
25+
notice_file: NOTICE

about_code_tool/MAPPING.CONFIG

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,40 @@
66
# i.e.
77
# python genabout.py --mapping [Input File] [Generated Location]
88
#
9-
#
10-
# The current convention is to append the '.ABOUT' after the filename, OR
11-
# replace the last '/' with the '.ABOUT' for directories.
12-
#
13-
#
149
# Below are the fields that are needed in the genabout.py
15-
# - Essential Fields: Fields that are essential for the genabout.py to execute.
10+
# - Essential Fields: Fields that are essential for the ABOUT Code.
1611
# - Mandatory Fields: These are the mandatory fields for the ABOUT specification.
17-
# Although the genabout.py will still be able to generate ABOUT files if these fields are blank,
12+
# Although ABOUT Code will still be able to generate ABOUT files if these fields are blank,
1813
# it's highly recommend to have these fields filled in.
1914
#
2015
# How to example:
2116
# Assuming your input have columns "Resource", "Component", "file_name", "file_version"
2217
# One should do:
2318
#
24-
# about_resource: file_name
2519
# about_file: Resource
2620
# name: Component
2721
# version: file_version
2822
#
23+
# In addition, if there are fields that you want to put in the ABOUT
24+
# files, please use the 'Custom Fields' to include these fields.
25+
#
26+
# Note: All the Custom Field's keys will be converted to lower case and
27+
# all the spaces will be replaced by '_'
28+
#
29+
#
2930
# See http://www.dejacode.org/about_spec_v0.8.1.html for more information
31+
#
3032

3133
# Essential Fields
32-
about_resource: file_name
3334
about_file: Directory/Filename
3435

35-
3636
# Mandatory Fields
3737
name: Component
3838
version: Confirmed Version
3939

4040
# Optional Fields
41-
copyright: Confirmed Copyright
41+
copyright: Confirmed Copyright
42+
43+
44+
# Custom Fields
45+
confirmed_license: Confirmed License

about_code_tool/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
# =============================================================================
2-
# Copyright (c) 2013 by nexB, Inc. http://www.nexb.com/ - All rights reserved.
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
# http://www.apache.org/licenses/LICENSE-2.0
7-
# Unless required by applicable law or agreed to in writing, software
8-
# distributed under the License is distributed on an "AS IS" BASIS,
9-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10-
# See the License for the specific language governing permissions and
11-
# limitations under the License.
12-
# =============================================================================

0 commit comments

Comments
 (0)