Skip to content

GitHub does not detect the BSD-2-Clause licence (shows "Other" / NOASSERTION) #2064

Closed

Description

@Arsalan900

Hi, thanks for maintaining icalendar.

GitHub finds LICENSE.rst but doesn't recognise the licence in it: the repository shows the licence as "Other", and the API returns spdx_id NOASSERTION. The file is the BSD 2-clause text, but tools and services that rely on GitHub's licence metadata can't tell that the project is BSD-licensed.

Would you accept a small pull request that adds a plain LICENSE file containing the standard BSD-2-Clause text with the existing copyright line, keeping LICENSE.rst as it is? GitHub should then detect the licence as BSD-2-Clause.

I'm happy to open the PR if that works for you.

Activity

  1. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Thanks for the issue, @Arsalan900! A maintainer will review it shortly.

  2. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Insufficient data

    Not enough activity yet to make a reliable assessment.

    View full analysis →

    This is an automated analysis by AgentScan

  3. stevepiercy commented on Nov 5, 2026

    @stevepiercy
    Member

    I think this can be handled with a file rename to either LICENSE or LICENSE.md, and updating the places throughout the repository that refer to its current name of LICENSE.rst. Editing the license text should be avoided, as it could void agreements going back decades.

    See:

    Running licensee locally would confirm.

    @Arsalan900 would you please proceed? Thank you!

  4. stevepiercy commented on Nov 5, 2026

    @stevepiercy
    Member

    I ran a quick test. Removal of the reStructuredText heading "License" and its over- and underscores will do the job. No file renaming necessary.

    With reStructuredText heading

    $ licensee detect .
    License:        NOASSERTION
    Matched files:  LICENSE.rst, pyproject.toml
    LICENSE.rst:
      Content hash:  2f89f10150d7ace6c8213fccfecbc7f1abfdb749
      License:       NOASSERTION
      Closest non-matching licenses:
        BSD-2-Clause similarity:  94.06%
        BSD-3-Clause similarity:  84.08%
        BSD-4-Clause similarity:  68.92%
    pyproject.toml:
      Confidence:  90.00%
      Matcher:     Licensee::Matchers::PyProject
      License:     BSD-2-Clause

    Without reStructuredText heading

    $ licensee detect .
    License:        BSD-2-Clause
    Matched files:  LICENSE.rst, pyproject.toml
    LICENSE.rst:
      Content hash:  a307ca750c21f262c95d2bce55e69c05e6c3dee9
      Attribution:   Copyright (c) 2012-2013, Plone Foundation
      Confidence:    100.00%
      Matcher:       Licensee::Matchers::Exact
      License:       BSD-2-Clause
    pyproject.toml:
      Confidence:  90.00%
      Matcher:     Licensee::Matchers::PyProject
      License:     BSD-2-Clause

    I also checked that LICENSE.rst is not included in the documentation or anywhere else that depends on a heading. It's safe to remove the heading.

  5. SashankBhamidi commented on Nov 20, 2026

    @SashankBhamidi
    Member

    This is included in v8.0.0a1 (alpha).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions