Skip to content

License checker is not doing the right thing #1066

@da1910

Description

@da1910

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

License checker should be checking the packages installed on a customer's machine, not pinned development only dependencies, unless the license terms of those packages specifically prohibit commercial use etc.

In the case of PyMaterials Manager the action is complaining about several dependencies being LGPL and friends, for example astroid which is a transitive dependency of sphinx-automodapi. This is used only to generate the documentation, and is not installed on a customer's environment.

Simply checking the lock file, or the environment when poetry install has been used is not the way to determine license compliance, realistically for locked environments we ought to install only the project, excluding any extras or other groups before running the reporting tool.

📝 Steps to reproduce

https://github.com/ansys/pymaterials-manager/actions/runs/19696138640/job/56421521678

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.12

📦 Installed packages

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefects or glitches reported by users or developers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions