Skip to content

stephanlachnit/dep5convert

Repository files navigation

dep5convert

CI REUSE status

dep5convert is a Python module for converting DEP5-style copyright files

Background

The goal of this project is provide interoperability between Debian's Machine-readable debian/copyright file (abbreviated DEP5 in the following) and the REUSE and the SPDX specifications. This includes three tasks:

  1. Convert from SPDX to DEP5
  2. Convert from DEP5 to SPDX
  3. Convert from DEP5 to the new REUSE.yaml format

The first one is to allow the usage of the information REUSE provides to automatically create the DEP5 copyright file for Debian's packages (see here). The second one is for the same purpose, but aimed at a transition from DEP5 to SPDX as end-user format. Note that the reuse-tool in its current form already does this.

However, the plan is to move from DEP5 to a new YAML-based format, where this library could become handy. Eventually, there will be two code paths in this library: SPDX->DEP5 and DEP5->REUSE.yaml. For DEP5->SPDX, DEP5->REUSE.yaml and the reuse module will be used.

Development

Note: this project is currently in planning and is not usable yet. Branches can be subject to force-pushes.

Before you can run the code from source, you first need to run make, else you will get a DistributionNotFound error. Note that the Makefile is only intended for development use and not for building or installing the module.

To access the CLI:

make egg_info
cd src
python3 -m dep5convert --help

License

The library code is licensed under the EUPL-1.2. The documentation is licensed under CC-BY-SA-4.0. Configuration files are licensed under CC0-1.0.

This repository follows the REUSE specification. For a comprehensive copyright and license report, you can install the reuse-tool and run reuse spdx.

About

Module for converting DEP5 style copyright files

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published