Giter Club home page Giter Club logo

license-spdx's Introduction

License::SPDX

Abstraction over the SPDX License List

Build Status

Synopsis

use License::SPDX;

my $l = License::SPDX.new;

if $l.get-license('Artistic-2.0') -> $license {
	pass "licence is good";
	if $license.is-deprecated-license {
		warn "deprecated licence";
    }
}
else {
	flunk "not a good licence";
}

Description

This provides an abstraction over the SPDX License List as provided in JSON format. Its primary raison d'être is to help the licence checking of Test::META and to allow for the warning about deprecated licences therein.

The intention is to update this with a new license list (and up the version,) every time the SPDX list is updated.

Installation

Assuming that you have a working Rakudo compiler you should be able to install this using zef :

zef install License::SPDX

# Or from a local clone

zef install .

Support

This is a very simple module, but if you have any suggestions or patches etc please send them to https://github.com/jonathanstowe/License-SPDX/issues

Licence & Copyright

This is free software, please the LICENCE in the distribution.

© Jonathan Stowe 2019-2021

The SPDX Data licensing is described here, the JSON data is included verbatim from source.

license-spdx's People

Contributors

jonathanstowe avatar

Watchers

 avatar  avatar

Forkers

jj lizmat melezhik

license-spdx's Issues

Error with Raku 2019.11

===> Testing: License::SPDX:ver<3.7.0>:auth<github:jonathanstowe>:api<1.0>
# Failed test 'License::SPDX module can be use-d ok'
# at t/010-use.t line 7
# ===SORRY!=== Error while compiling /home/jmerelo/.zef/store/License-SPDX-3.7.0.tar.gz/License-SPDX-3.7.0/lib/License/SPDX.pm (License::SPDX)
# Can't use unknown trait 'is json-skip' in an attribute declaration.
# at /home/jmerelo/.zef/store/License-SPDX-3.7.0.tar.gz/License-SPDX-3.7.0/lib/License/SPDX.pm (License::SPDX):121
#     expecting any of:
#         rw
#         readonly
#         box_target
#         leading_docs
#         trailing_docs
# 
# Looks like you failed 1 test of 1
===SORRY!=== Error while compiling /home/jmerelo/.zef/store/License-SPDX-3.7.0.tar.gz/License-SPDX-3.7.0/lib/License/SPDX.pm (License::SPDX)
Can't use unknown trait 'is json-skip' in an attribute declaration.
at /home/jmerelo/.zef/store/License-SPDX-3.7.0.tar.gz/License-SPDX-3.7.0/lib/License/SPDX.pm (License::SPDX):121
    expecting any of:
        rw
        readonly
        box_target
        leading_docs
        trailing_docs
===> Testing [FAIL]: License::SPDX:ver<3.7.0>:auth<github:jonathanstowe>:api<1.0>
Aborting due to test failure: License::SPDX:ver<3.7.0>:auth<github:jonathanstowe>:api<1.0> (use --force-test to override)

Debian packager request: Please tag your releases

Hello

In Debian, we have a toolset (i.e. uscan) to track upstream release that work on GitHub tags.

Without release tags, the tracking tools are not working and we are not aware when a new release is mage. Which means Debian packages will lag behind your releases.

So please tag at least the last release and any future release.

All the best

Dod (for Debian)

Circular dependecy between Test::META and License::SPDX

In this module there's a test, t/001-meta.t in which I see these lines:

BEGIN {
    require Test::META <&meta-ok>;

but Test::META is not listed as a dependency in the META6.json file.
OTOH Test::META lists this module in the depends section of its META6.json file, so the only way to install those modules is to zef install --/test one of them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.