Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authorized_packages doesn't work in pyproject.toml #84

Closed
lexicalunit opened this issue May 11, 2022 · 1 comment
Closed

authorized_packages doesn't work in pyproject.toml #84

lexicalunit opened this issue May 11, 2022 · 1 comment

Comments

@lexicalunit
Copy link

Seems like authorized_packages is just ignored.

requirements.txt

aiofiles==0.7.0
[...]
$ pipenv run liccheck
Loading .env environment variables...
gathering licenses...
131 packages and dependencies.
check authorized packages...
118 packages.
check unauthorized packages...
11 packages.
    aiofiles (0.7.0): ['Other/Proprietary']
      dependency:
          aiofiles
[...]
[tool.liccheck]
authorized_licenses = [
  'BSD',
  'MIT',
  'Python Software Foundation',
]

unauthorized_licenses = [
  'Other/Proprietary',
]

[[tool.liccheck.authorized_packages]]
aiofiles = '0.7.0'

Here we see that liccheck is complaining about aiofiles version 0.7.0, but that is clearly incorrect because it's included in the authorized_packages section of pyproject.toml.

@lexicalunit
Copy link
Author

It needed to be [tool.liccheck.authorized_packages] for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant