Change log¶
This change log follows the Keep a Changelog spec. Every release contains the following sections:
Addedfor new features.Changedfor changes in existing functionality.Deprecatedfor soon-to-be removed features.Removedfor now removed features.Fixedfor any bug fixes.Securityin case of vulnerabilities.
The versions follow semantic versioning.
0.7.0 - 2019-11-28¶
Changed¶
- The program’s package name on PyPI has been changed from
fsfe-reusetoreuse.fsfe-reuse==1.0.0has been created as an alias that depends onreuse.fsfe-reusewill not receive any more updates, but will still host the old versions. - For users of
fsfe-reuse, this means:- If you depend on
fsfe-reuseorfsfe-reuse>=0.X.Yin your requirements.txt, you will get the latest version ofreusewhen you installfsfe-reuse. You may like to change the name toreuseexplicitly, but this is not strictly necessary. - If you depend on
fsfe-reuse==0.X.Y, then you will keep getting that version. When you bump the version you depend on, you will need to change the name toreuse. - If you depend on
fsfe-reuse>=0.X.Y<1.0.0, then 0.6.0 will be the latest version you receive. In order to get a later version, you will need to change the name toreuse.
- If you depend on
0.6.0 - 2019-11-19¶
Added¶
--include-submodulesis added to also include submodules when linting et cetera.addheadernow also recognises the following extensions:- .kt
- .xml
- .yaml
- .yml
Changed¶
- Made the workaround for
MachineReadableFormatErrorintroduced in 0.5.2 more generic. - Improved shebang detection in
addheader. - For
addheader, the SPDX comment block now need not be the first thing in the file. It will find the SPDX comment block and deal with it in-place. - Git submodules are now ignored by default.
addheader --explicit-licensenow no longer breaks on unsupported filetypes.
0.5.2 - 2019-10-27¶
Added¶
python3 -m reusenow works.
Changed¶
- Updated license list to 3.6-2-g2a14810.
Fixed¶
- Performance of
reuse lintimproved by at least a factor of 2. It no longer does any checksums on files behind the scenes. - Also handle
MachineReadableFormatErrorwhen parsing DEP5 files. Tries to import that error. If the import is unsuccessful, it is handled.
0.5.1 - 2019-10-24 [YANKED]¶
This release was replaced by 0.5.2 due to importing
MachineReadableFormatError, which is not a backwards-compatible change.
0.5.0 - 2019-08-29¶
Added¶
- TeX and ML comment styles added.
- Added
--yearand--exclude-yeartoreuse addheader. - Added
--templatetoreuse addheader. - Added
--explicit-licensetoreuse addheader. binaryornotadded as new dependency.- Greatly improved the usage documentation.
Changed¶
reuse addheadernow automatically adds the current year to the copyright notice.reuse addheaderpreserves the original header below the new header if it did not contain any SPDX information.reuse addheadernow correctly handles.licensefiles.- Bad licenses are no longer resolved to LicenseRef-Unknown
. They are instead resolved to the stem of the path. This reduces the magic in the code base. .gitkeepfiles are now ignored by the tool.- Changed Lisp’s comment character from ‘;;’ to ‘;’.
0.4.1 - 2019-08-07¶
Added¶
--allargument help toreuse download, which downloads all detected missing licenses.
Fixed¶
- When using
reuse addheaderon a file that contains a shebang, the shebang is preserved. - Copyright lines in
reuse spdxare now sorted. - Some publicly visible TODOs were patched away.
0.4.0 - 2019-08-07¶
This release is a major overhaul and refactoring of the tool. Its primary focus is improved usability and speed, as well as adhering to version 3.0 of the REUSE Specification.
Added¶
reuse addheaderhas been added as a way to automatically add copyright statements and license identifiers to the headers of files. It is currently not complete.reuse inithas been added as a way to initialise a REUSE project. Its functionality is currently scarce, but should improve in the future.
Changed¶
reuse lintnow provides a helpful summary instead of merely spitting out non-compliant files.reuse compileis nowreuse spdx.- In addition to
Copyrightand©, copyright lines can be marked with the tagSPDX-FileCopyrightText:. This is the new recommended default. - Project no longer depends on pygit2.
- The list of SPDX licenses has been updated.
Valid-License-Identifieris no longer used, and licenses and exceptions can now only live inside of the LICENSES/ directory.
Removed¶
- Removed
--ignore-debian. - Removed
--spdx-mandatory,--copyright-mandatory,--ignore-missingarguments fromreuse lint. - Remove
reuse license. - GPL-3.0 and GPL-3.0+ (and all other similar GPL licenses) are no longer detected as SPDX identifiers. Use GPL-3.0-only and GPL-3.0-or-later instead.
Fixed¶
- Scanning a Git directory is a lot faster now.
- Scanning binary files is a lot faster now.
0.3.4 - 2019-04-15¶
This release should be a short-lived one. A new (slightly backwards-incompatible) version is in the works.
Added¶
- Copyrights can now start with
©in addition toCopyright. The former is now recommended, but they are functionally similar.
Changed¶
- The source code of reuse is now formatted with black.
- The repository has been moved from https://git.fsfe.org/reuse/reuse to https://gitlab.com/reuse/reuse.
0.3.1 - 2018-07-14¶
Fixed¶
- When using reuse from a child directory using pygit2, correctly find the root.
0.3.0 - 2018-05-16¶
Changed¶
- The output of
reuse compileis now deterministic. The files, copyright lines and SPDX expressions are sorted alphabetically.
Fixed¶
- When a GPL license could not be found, the correct
-onlyor-or-laterextension is now used in the warning message, rather than a bareGPL-3.0. - If you have a license listed as
SPDX-Valid-License: GPL-3.0-or-later, this now correctly matches corresponding SPDX identifiers. Still it is recommended to useSPDX-Valid-License: GPL-3.0instead.
0.2.0 - 2018-04-17¶
Added¶
- Internationalisation support added. Initial support for:
- English.
- Dutch.
- Esperanto.
- Spanish.
Fixed¶
- The license list of SPDX 3.0 has deprecated
GPL-3.0andGPL-3.0+et al in favour ofGPL-3.0-onlyandGPL-3.0-or-later. The program has been amended to accommodate sufficiently for those licenses.
Changed¶
Project.reuse_info_ofnow extracts, combines and returns information both from the file itself and from debian/copyright.ReuseInfonow holds sets instead of lists.- As a result of this,
ReuseInfowill not hold duplicates of copyright lines or SPDX expressions.
- As a result of this,
- click removed as dependency. Good old argparse from the library is used instead.
0.1.1 - 2017-12-14¶
Changed¶
- The
reuse --helptext has been tidied up a little bit.
Fixed¶
- Release date in change log fixed.
- The PyPI homepage now gets reStructuredText instead of Markdown.
0.1.0 - 2017-12-14¶
Added¶
- Successfully parse old-style C and HTML comments now.
- Added
reuse compile, which creates an SPDX bill of materials. - Added
--ignore-missingtoreuse lint. - Allow to specify multiple paths to
reuse lint. chardetadded as dependency.pygit2added as soft dependency. reuse remains usable without it, but the performance withpygit2is significantly better. Becausepygit2has a non-Python dependency (libgit2), it must be installed independently by the user. In the future, when reuse is packaged natively, this will not be an issue.
Changed¶
- Updated to version 2.0 of the REUSE recommendations. The
most important change is that
License-Filenameis no longer used. Instead, the filename is deducted fromSPDX-License-Identifier. This change is NOT backwards compatible. - The conditions for linting have changed. A file is now non-compliant
when:
- The license associated with the file could not be found.
- There is no SPDX expression associated with the file.
- There is no copyright notice associated with the file.
- Only read the first 4 KiB (by default) from code files rather than the entire file when searching for SPDX tags. This speeds up the tool a bit.
Project.reuse_info_ofno longer raises an exception. Instead, it returns an emptyReuseInfoobject when no reuse information is found.- Logging is a lot prettier now. Only output entries from the
reusemodule.
Fixed¶
reuse --ignore-debian compilenow works as expected.- The tool no longer breaks when reading a file that has a non-UTF-8
encoding. Instead,
chardetis used to detect the encoding before reading the file. If a file still has errors during decoding, those errors are silently ignored and replaced.
0.0.4 - 2017-11-06¶
Fixed¶
- Removed dependency on
os.PathLikeso that Python 3.5 is actually supported
0.0.2 - 2017-11-03¶
This is a very early development release aimed at distributing the program as soon as possible. Because this is the first release, the changelog is a little empty beyond “created the program”.
The program can do roughly the following:
- Detect the license of a given file through one of three methods (in
order of precedence):
- Information embedded in the .license file.
- Information embedded in its header.
- Information from the global debian/copyright file.
- Find and report all files in a project tree of which the license could not be found.
- Ignore files ignored by Git.
- Do some logging into STDERR.