forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(python): add license fields (aquasecurity#4722)
* bump go-dep-parser * update tests * fix testdata
- Loading branch information
1 parent
1da9646
commit 60f20f8
Showing
7 changed files
with
207 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
pkg/fanal/analyzer/language/python/packaging/testdata/classifier-license.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Metadata-Version: 2.1 | ||
Name: setuptools | ||
Version: 51.3.3 | ||
Summary: Easily download, build, install, upgrade, and uninstall Python packages | ||
Home-page: https://github.com/pypa/setuptools | ||
Author: Python Packaging Authority | ||
Author-email: distutils-sig@python.org | ||
Project-URL: Documentation, https://setuptools.readthedocs.io/ | ||
Keywords: CPAN PyPI distutils eggs package management | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Topic :: Software Development :: Libraries :: Python Modules | ||
Classifier: Topic :: System :: Archiving :: Packaging | ||
Classifier: Topic :: System :: Systems Administration | ||
Classifier: Topic :: Utilities | ||
Requires-Python: >=3.6 | ||
Provides-Extra: testing | ||
Provides-Extra: docs | ||
Provides-Extra: ssl | ||
Provides-Extra: certs | ||
|
||
.. image:: https://img.shields.io/pypi/v/setuptools.svg | ||
:target: https://pypi.org/project/setuptools | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/setuptools.svg | ||
|
||
.. image:: https://github.com/pypa/setuptools/workflows/tests/badge.svg | ||
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22 | ||
:alt: tests | ||
|
||
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
:target: https://github.com/psf/black | ||
:alt: Code style: Black | ||
|
||
.. image:: https://img.shields.io/readthedocs/setuptools/latest.svg | ||
:target: https://setuptools.pypa.io | ||
|
||
.. image:: https://img.shields.io/badge/skeleton-2023-informational | ||
:target: https://blog.jaraco.com/skeleton | ||
|
||
.. image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white | ||
:target: https://codecov.io/gh/pypa/setuptools | ||
|
||
.. image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat | ||
:target: https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=readme | ||
|
||
.. image:: https://img.shields.io/discord/803025117553754132 | ||
:target: https://discord.com/channels/803025117553754132/815945031150993468 | ||
:alt: Discord | ||
|
||
See the `Installation Instructions | ||
<https://packaging.python.org/installing/>`_ in the Python Packaging | ||
User's Guide for instructions on installing, upgrading, and uninstalling | ||
Setuptools. | ||
|
||
Questions and comments should be directed to `GitHub Discussions | ||
<https://github.com/pypa/setuptools/discussions>`_. | ||
Bug reports and especially tested patches may be | ||
submitted directly to the `bug tracker | ||
<https://github.com/pypa/setuptools/issues>`_. | ||
|
||
|
||
Code of Conduct | ||
=============== | ||
|
||
Everyone interacting in the setuptools project's codebases, issue trackers, | ||
chat rooms, and fora is expected to follow the | ||
`PSF Code of Conduct <https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md>`_. | ||
|
||
|
||
For Enterprise | ||
============== | ||
|
||
Available as part of the Tidelift Subscription. | ||
|
||
Setuptools and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use. | ||
|
||
`Learn more <https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=referral&utm_campaign=github>`_. | ||
|
||
|
||
Security Contact | ||
================ | ||
|
||
To report a security vulnerability, please use the | ||
`Tidelift security contact <https://tidelift.com/security>`_. | ||
Tidelift will coordinate the fix and disclosure. |
89 changes: 89 additions & 0 deletions
89
pkg/fanal/analyzer/language/python/packaging/testdata/classifier-license.egg-info/PKG-INFO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
Metadata-Version: 2.1 | ||
Name: setuptools | ||
Version: 51.3.3 | ||
Summary: Easily download, build, install, upgrade, and uninstall Python packages | ||
Home-page: https://github.com/pypa/setuptools | ||
Author: Python Packaging Authority | ||
Author-email: distutils-sig@python.org | ||
Project-URL: Documentation, https://setuptools.readthedocs.io/ | ||
Keywords: CPAN PyPI distutils eggs package management | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Topic :: Software Development :: Libraries :: Python Modules | ||
Classifier: Topic :: System :: Archiving :: Packaging | ||
Classifier: Topic :: System :: Systems Administration | ||
Classifier: Topic :: Utilities | ||
Requires-Python: >=3.6 | ||
Provides-Extra: testing | ||
Provides-Extra: docs | ||
Provides-Extra: ssl | ||
Provides-Extra: certs | ||
.. image:: https://img.shields.io/pypi/v/setuptools.svg | ||
:target: https://pypi.org/project/setuptools | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/setuptools.svg | ||
|
||
.. image:: https://github.com/pypa/setuptools/workflows/tests/badge.svg | ||
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22 | ||
:alt: tests | ||
|
||
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
:target: https://github.com/psf/black | ||
:alt: Code style: Black | ||
|
||
.. image:: https://img.shields.io/readthedocs/setuptools/latest.svg | ||
:target: https://setuptools.pypa.io | ||
|
||
.. image:: https://img.shields.io/badge/skeleton-2023-informational | ||
:target: https://blog.jaraco.com/skeleton | ||
|
||
.. image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white | ||
:target: https://codecov.io/gh/pypa/setuptools | ||
|
||
.. image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat | ||
:target: https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=readme | ||
|
||
.. image:: https://img.shields.io/discord/803025117553754132 | ||
:target: https://discord.com/channels/803025117553754132/815945031150993468 | ||
:alt: Discord | ||
|
||
See the `Installation Instructions | ||
<https://packaging.python.org/installing/>`_ in the Python Packaging | ||
User's Guide for instructions on installing, upgrading, and uninstalling | ||
Setuptools. | ||
|
||
Questions and comments should be directed to `GitHub Discussions | ||
<https://github.com/pypa/setuptools/discussions>`_. | ||
Bug reports and especially tested patches may be | ||
submitted directly to the `bug tracker | ||
<https://github.com/pypa/setuptools/issues>`_. | ||
|
||
|
||
Code of Conduct | ||
=============== | ||
|
||
Everyone interacting in the setuptools project's codebases, issue trackers, | ||
chat rooms, and fora is expected to follow the | ||
`PSF Code of Conduct <https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md>`_. | ||
|
||
|
||
For Enterprise | ||
============== | ||
|
||
Available as part of the Tidelift Subscription. | ||
|
||
Setuptools and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use. | ||
|
||
`Learn more <https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=referral&utm_campaign=github>`_. | ||
|
||
|
||
Security Contact | ||
================ | ||
|
||
To report a security vulnerability, please use the | ||
`Tidelift security contact <https://tidelift.com/security>`_. | ||
Tidelift will coordinate the fix and disclosure. |
86 changes: 0 additions & 86 deletions
86
pkg/fanal/analyzer/language/python/packaging/testdata/no_license.dist-info/METADATA
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.