GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing reuse.software — Tutorial: How to become REUSE-compliant | REUSE Tutorial: How to become REUSE-compliantUnofficial translations are available in: This tutorial explains the basics of making a software project REUSE-compliant. The goal is to easily, comprehensively, and unambiguously declare your copyright and licensing in a way that is machine-readable. By the end of this tutorial, you will understand the three fundamental steps of REUSE:
For the purpose of this tutorial, we will assume that the directory of your project looks like this: If you would like to reproduce the steps in this tutorial on your own computer,
you can clone the example
repository. The branch
For each of these steps, you will first learn how to achieve them manually. However, the REUSE tool supports you with most tasks, and the necessary commands will be listed as well in the collapsible boxes. We recommend to first understand the basic principle before just executing the tool’s commands. 1. Choose and provide licensesThe first thing you need to do is to choose a license. For this tutorial, we assume that you chose the GNU General Public License (GPL) v3.0 or any later version. More than simply choosing a license, you need to put the license in your project directory. Find your license in the SPDX License List. SPDX
is an open standard for communicating license and copyright information. Each
license is uniquely identified by a shortform SPDX License Identifier. The SPDX
License Identifier for your chosen license is Create a
The
reuse download
command enables
you to download a specific license. reuse download GPL-3.0-or-later would
fulfil the task described in the manual instructions above. Running reuse download --all automatically downloads all licenses which the REUSE tool
detects as being used in your project.
2. Add copyright and licensing information to each fileNow that you have a license, you need to indicate in the relevant files that
these files fall under that license. Edit the comment header of
The The Each file must always contain these two tags in the header. You are allowed to
use the In the example project, you also edit The 3. Confirm REUSE complianceHaving added a license to your repository and having added copyright and licensing information to each file, your project tree will now look like this: To ensure that you did not miss anything, you should confirm REUSE compliance with the REUSE tool. Follow the installation instructions available for multiple platforms, then go to the project directory and run the linter. As you can see in the last line, the tool confirms that your project is compliant with REUSE now! To learn what the different criteria mean, please have a look at the documentation of the lint command. More informationThis tutorial was a lightning-quick introduction to REUSE. Not all use-cases are covered here, especially how to annotate uncommentable files, how to bulk-annotate files, and how to use a license not on the SPDX list. In order to learn about these and more practical use-cases, see the ‘How do I …’ section in the Frequently Asked Questions. Other sources for more information:
If none of the links above were able to answer your question, please contact us by:
Thank you for your valuable contribution towards making software reusable! |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |