-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2887 from nexB/fix-2886-packages
Do not raise exception on package data mismatch #2886
- Loading branch information
Showing
12 changed files
with
1,092 additions
and
10 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
19 changes: 19 additions & 0 deletions
19
tests/packagedcode/data/instance/pypi-with-test-manifests/LICENSE
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,19 @@ | ||
Copyright Jason R. Coombs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. |
17 changes: 17 additions & 0 deletions
17
tests/packagedcode/data/instance/pypi-with-test-manifests/MANIFEST.in
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,17 @@ | ||
recursive-include setuptools *.py *.exe *.xml *.tmpl | ||
recursive-include tests *.py | ||
recursive-include setuptools/tests *.html | ||
recursive-include docs *.py *.txt *.rst *.conf *.css *.css_t Makefile indexsidebar.html | ||
recursive-include setuptools/_vendor *.py *.txt | ||
recursive-include pkg_resources *.py *.txt | ||
recursive-include pkg_resources/tests/data * | ||
recursive-include tools * | ||
recursive-include changelog.d * | ||
include *.py | ||
include *.rst | ||
include MANIFEST.in | ||
include LICENSE | ||
include launcher.c | ||
include msvc-build-launcher.cmd | ||
include pytest.ini | ||
include tox.ini |
93 changes: 93 additions & 0 deletions
93
tests/packagedcode/data/instance/pypi-with-test-manifests/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,93 @@ | ||
Metadata-Version: 2.1 | ||
Name: setuptools | ||
Version: 58.2.0 | ||
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 | ||
License: UNKNOWN | ||
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 | ||
License-File: LICENSE | ||
|
||
.. image:: https://img.shields.io/pypi/v/setuptools.svg | ||
:target: `PyPI link`_ | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/setuptools.svg | ||
:target: `PyPI link`_ | ||
|
||
.. _PyPI link: https://pypi.org/project/setuptools | ||
|
||
.. 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.readthedocs.io | ||
|
||
.. image:: https://img.shields.io/badge/skeleton-2021-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 | ||
|
||
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 the `distutils-sig | ||
mailing list <http://mail.python.org/pipermail/distutils-sig/>`_. | ||
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 mailing lists 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. | ||
|
||
|
64 changes: 64 additions & 0 deletions
64
tests/packagedcode/data/instance/pypi-with-test-manifests/README.rst
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,64 @@ | ||
.. image:: https://img.shields.io/pypi/v/setuptools.svg | ||
:target: `PyPI link`_ | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/setuptools.svg | ||
:target: `PyPI link`_ | ||
|
||
.. _PyPI link: https://pypi.org/project/setuptools | ||
|
||
.. 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.readthedocs.io | ||
|
||
.. image:: https://img.shields.io/badge/skeleton-2021-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 | ||
|
||
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 the `distutils-sig | ||
mailing list <http://mail.python.org/pipermail/distutils-sig/>`_. | ||
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 mailing lists 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. |
Binary file added
BIN
+1.77 KB
...pypi-with-test-manifests/pkg_resources/tests/data/my-test-package-zip/my-test-package.zip
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
tests/packagedcode/data/instance/pypi-with-test-manifests/pyproject.toml
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,61 @@ | ||
[build-system] | ||
requires = [ | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
backend-path = ["."] | ||
|
||
[tool.black] | ||
skip-string-normalization = true | ||
|
||
[tool.setuptools_scm] | ||
|
||
[pytest.enabler.black] | ||
#addopts = "--black" | ||
|
||
[pytest.enabler.mypy] | ||
#addopts = "--mypy" | ||
|
||
[pytest.enabler.flake8] | ||
addopts = "--flake8" | ||
|
||
[pytest.enabler.cov] | ||
addopts = "--cov" | ||
|
||
[pytest.enabler.xdist] | ||
addopts = "-n auto" | ||
|
||
[tool.towncrier] | ||
package = "setuptools" | ||
package_dir = "setuptools" | ||
filename = "CHANGES.rst" | ||
directory = "changelog.d" | ||
title_format = "v{version}" | ||
issue_format = "#{issue}" | ||
template = "towncrier_template.rst" | ||
underlines = ["-", "^"] | ||
|
||
[[tool.towncrier.type]] | ||
directory = "deprecation" | ||
name = "Deprecations" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "breaking" | ||
name = "Breaking Changes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "change" | ||
name = "Changes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "doc" | ||
name = "Documentation changes" | ||
showcontent = true | ||
|
||
[[tool.towncrier.type]] | ||
directory = "misc" | ||
name = "Misc" | ||
showcontent = true |
Oops, something went wrong.