Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

v0.11.0
-----------

- Add ignore error mode.
- Fix missing index_urls parsing.


v0.10.0
-----------

Expand Down
2 changes: 1 addition & 1 deletion src/python_inspector/resolve_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

TRACE = False

__version__ = "0.10.0"
__version__ = "0.11.0"

DEFAULT_PYTHON_VERSION = "38"
PYPI_SIMPLE_URL = "https://pypi.org/simple"
Expand Down
154 changes: 77 additions & 77 deletions tests/data/azure-devops.req-310-expected.json

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions tests/data/azure-devops.req-38-expected.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/default-url-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--json <file>",
"--operating-system linux",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--json-pdt <file>",
"--operating-system linux",
Expand Down
78 changes: 38 additions & 40 deletions tests/data/example-requirements-ignore-errors-expected.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions tests/data/frozen-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--json-pdt <file>",
"--operating-system linux",
Expand Down Expand Up @@ -5991,18 +5991,18 @@
"type": "pypi",
"namespace": null,
"name": "pip",
"version": "23.3.2",
"version": "24.0",
"qualifiers": {},
"subpath": null,
"primary_language": "Python",
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
"release_date": "2023-12-17T13:05:02",
"release_date": "2024-02-03T09:53:09",
"parties": [
{
"type": "person",
"role": "author",
"name": "The pip developers",
"email": "[email protected]",
"name": null,
"email": "The pip developers <[email protected]>",
"url": null
}
],
Expand All @@ -6022,12 +6022,12 @@
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Build Tools"
],
"homepage_url": "https://pip.pypa.io/",
"download_url": "https://files.pythonhosted.org/packages/15/aa/3f4c7bcee2057a76562a5b33ecbd199be08cdb4443a02e26bd2c3cf6fc39/pip-23.3.2-py3-none-any.whl",
"size": 2109393,
"homepage_url": "",
"download_url": "https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl",
"size": 2110226,
"sha1": null,
"md5": "c98c21d96fb96b82756dd827438a32c7",
"sha256": "5052d7889c1f9d05224cd41741acb7c5d6fa735ab34e339624a614eaaa7e7d76",
"md5": "74e3c5e4082113b1239ca0e9abfd1e82",
"sha256": "ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc",
"sha512": null,
"bug_tracking_url": null,
"code_view_url": "https://github.com/pypa/pip",
Expand All @@ -6047,26 +6047,26 @@
"dependencies": [],
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": "https://pypi.org/pypi/pip/23.3.2/json",
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
"datasource_id": null,
"purl": "pkg:pypi/pip@23.3.2"
"purl": "pkg:pypi/pip@24.0"
},
{
"type": "pypi",
"namespace": null,
"name": "pip",
"version": "23.3.2",
"version": "24.0",
"qualifiers": {},
"subpath": null,
"primary_language": "Python",
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
"release_date": "2023-12-17T13:05:07",
"release_date": "2024-02-03T09:53:18",
"parties": [
{
"type": "person",
"role": "author",
"name": "The pip developers",
"email": "[email protected]",
"name": null,
"email": "The pip developers <[email protected]>",
"url": null
}
],
Expand All @@ -6086,12 +6086,12 @@
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Build Tools"
],
"homepage_url": "https://pip.pypa.io/",
"download_url": "https://files.pythonhosted.org/packages/b7/06/6b1ad0ae8f97d7a0d6f6ad640db10780578999e647a9593512ceb6f06469/pip-23.3.2.tar.gz",
"size": 2132244,
"homepage_url": "",
"download_url": "https://files.pythonhosted.org/packages/94/59/6638090c25e9bc4ce0c42817b5a234e183872a1129735a9330c472cc2056/pip-24.0.tar.gz",
"size": 2132709,
"sha1": null,
"md5": "38dd5f7ab301167df063405c7fc16c84",
"sha256": "7fd9972f96db22c8077a1ee2691b172c8089b17a5652a44494a9ecb0d78f9149",
"md5": "1331aabb4d1a2677f493effeebda3605",
"sha256": "ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2",
"sha512": null,
"bug_tracking_url": null,
"code_view_url": "https://github.com/pypa/pip",
Expand All @@ -6111,9 +6111,9 @@
"dependencies": [],
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": "https://pypi.org/pypi/pip/23.3.2/json",
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
"datasource_id": null,
"purl": "pkg:pypi/pip@23.3.2"
"purl": "pkg:pypi/pip@24.0"
},
{
"type": "pypi",
Expand Down Expand Up @@ -10802,7 +10802,7 @@
{
"key": "pip",
"package_name": "pip",
"installed_version": "23.3.2",
"installed_version": "24.0",
"dependencies": []
}
]
Expand Down
40 changes: 20 additions & 20 deletions tests/data/insecure-setup-2/setup.py-expected.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/insecure-setup/setup.py-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--analyze-setup-py-insecurely",
"--json <file>",
Expand Down
2 changes: 1 addition & 1 deletion tests/data/pdt-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--json-pdt <file>",
"--operating-system linux",
Expand Down
36 changes: 18 additions & 18 deletions tests/data/pinned-pdt-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"headers": {
"tool_name": "python-inspector",
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.10.0",
"tool_version": "0.11.0",
"options": [
"--json-pdt <file>",
"--operating-system linux",
Expand Down Expand Up @@ -2688,12 +2688,12 @@
"type": "pypi",
"namespace": null,
"name": "markupsafe",
"version": "2.1.4",
"version": "2.1.5",
"qualifiers": {},
"subpath": null,
"primary_language": "Python",
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Chat: https://discord.gg/pallets",
"release_date": "2024-01-19T22:49:13",
"release_date": "2024-02-02T16:31:01",
"parties": [
{
"type": "person",
Expand All @@ -2713,11 +2713,11 @@
"Topic :: Text Processing :: Markup :: HTML"
],
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
"download_url": "https://files.pythonhosted.org/packages/35/21/45495e6d8fd4fedad477b9fb97905279433f58c141e1b4fa7c752f1bc5ca/MarkupSafe-2.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"size": 26107,
"download_url": "https://files.pythonhosted.org/packages/c7/bd/50319665ce81bb10e90d1cf76f9e1aa269ea6f7fa30ab4521f14d122a3df/MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"size": 26106,
"sha1": null,
"md5": "4206b35075defbed0242fe292e9dfe15",
"sha256": "23984d1bdae01bee794267424af55eef4dfc038dc5d1272860669b2aa025c9e3",
"md5": "4f97754a1154496e5bc9d3f21fb0315a",
"sha256": "fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab",
"sha512": null,
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
"code_view_url": "https://github.com/pallets/markupsafe/",
Expand All @@ -2737,20 +2737,20 @@
"dependencies": [],
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.4/json",
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.5/json",
"datasource_id": null,
"purl": "pkg:pypi/[email protected].4"
"purl": "pkg:pypi/[email protected].5"
},
{
"type": "pypi",
"namespace": null,
"name": "markupsafe",
"version": "2.1.4",
"version": "2.1.5",
"qualifiers": {},
"subpath": null,
"primary_language": "Python",
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Chat: https://discord.gg/pallets",
"release_date": "2024-01-19T22:49:34",
"release_date": "2024-02-02T16:31:22",
"parties": [
{
"type": "person",
Expand All @@ -2770,11 +2770,11 @@
"Topic :: Text Processing :: Markup :: HTML"
],
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
"download_url": "https://files.pythonhosted.org/packages/fb/5a/fb1326fe32913e663c8e2d6bdf7cde6f472e51f9c21f0768d9b9080fe7c5/MarkupSafe-2.1.4.tar.gz",
"size": 19288,
"download_url": "https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz",
"size": 19384,
"sha1": null,
"md5": "8138329a11cf4bd0f9db780b2af26c66",
"sha256": "3aae9af4cac263007fd6309c64c6ab4506dd2b79382d9d19a1994f9240b8db4f",
"md5": "8fe7227653f2fb9b1ffe7f9f2058998a",
"sha256": "d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b",
"sha512": null,
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
"code_view_url": "https://github.com/pallets/markupsafe/",
Expand All @@ -2794,9 +2794,9 @@
"dependencies": [],
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.4/json",
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.5/json",
"datasource_id": null,
"purl": "pkg:pypi/[email protected].4"
"purl": "pkg:pypi/[email protected].5"
},
{
"type": "pypi",
Expand Down Expand Up @@ -4975,7 +4975,7 @@
{
"key": "markupsafe",
"package_name": "markupsafe",
"installed_version": "2.1.4",
"installed_version": "2.1.5",
"dependencies": []
}
]
Expand Down
Loading