Skip to content

Commit 609a81a

Browse files
authored
Prepare for release v0.11.0 (#172)
* Add Changelog for v0.11.0 Signed-off-by: Tushar Goel <[email protected]> * Regenrate tests Signed-off-by: Tushar Goel <[email protected]> --------- Signed-off-by: Tushar Goel <[email protected]>
1 parent f868a31 commit 609a81a

27 files changed

+418
-413
lines changed

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
v0.11.0
5+
-----------
6+
7+
- Add ignore error mode.
8+
- Fix missing index_urls parsing.
9+
10+
411
v0.10.0
512
-----------
613

src/python_inspector/resolve_cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
TRACE = False
2121

22-
__version__ = "0.10.0"
22+
__version__ = "0.11.0"
2323

2424
DEFAULT_PYTHON_VERSION = "38"
2525
PYPI_SIMPLE_URL = "https://pypi.org/simple"

tests/data/azure-devops.req-310-expected.json

+77-77
Large diffs are not rendered by default.

tests/data/azure-devops.req-38-expected.json

+77-77
Large diffs are not rendered by default.

tests/data/default-url-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--json <file>",
88
"--operating-system linux",

tests/data/environment-marker-test-requirements.txt-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",

tests/data/example-requirements-ignore-errors-expected.json

+38-40
Large diffs are not rendered by default.

tests/data/frozen-requirements.txt-expected.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",
@@ -5991,18 +5991,18 @@
59915991
"type": "pypi",
59925992
"namespace": null,
59935993
"name": "pip",
5994-
"version": "23.3.2",
5994+
"version": "24.0",
59955995
"qualifiers": {},
59965996
"subpath": null,
59975997
"primary_language": "Python",
59985998
"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",
5999-
"release_date": "2023-12-17T13:05:02",
5999+
"release_date": "2024-02-03T09:53:09",
60006000
"parties": [
60016001
{
60026002
"type": "person",
60036003
"role": "author",
6004-
"name": "The pip developers",
6005-
"email": "[email protected]",
6004+
"name": null,
6005+
"email": "The pip developers <[email protected]>",
60066006
"url": null
60076007
}
60086008
],
@@ -6022,12 +6022,12 @@
60226022
"Programming Language :: Python :: Implementation :: PyPy",
60236023
"Topic :: Software Development :: Build Tools"
60246024
],
6025-
"homepage_url": "https://pip.pypa.io/",
6026-
"download_url": "https://files.pythonhosted.org/packages/15/aa/3f4c7bcee2057a76562a5b33ecbd199be08cdb4443a02e26bd2c3cf6fc39/pip-23.3.2-py3-none-any.whl",
6027-
"size": 2109393,
6025+
"homepage_url": "",
6026+
"download_url": "https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl",
6027+
"size": 2110226,
60286028
"sha1": null,
6029-
"md5": "c98c21d96fb96b82756dd827438a32c7",
6030-
"sha256": "5052d7889c1f9d05224cd41741acb7c5d6fa735ab34e339624a614eaaa7e7d76",
6029+
"md5": "74e3c5e4082113b1239ca0e9abfd1e82",
6030+
"sha256": "ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc",
60316031
"sha512": null,
60326032
"bug_tracking_url": null,
60336033
"code_view_url": "https://github.com/pypa/pip",
@@ -6047,26 +6047,26 @@
60476047
"dependencies": [],
60486048
"repository_homepage_url": null,
60496049
"repository_download_url": null,
6050-
"api_data_url": "https://pypi.org/pypi/pip/23.3.2/json",
6050+
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
60516051
"datasource_id": null,
6052-
"purl": "pkg:pypi/pip@23.3.2"
6052+
"purl": "pkg:pypi/pip@24.0"
60536053
},
60546054
{
60556055
"type": "pypi",
60566056
"namespace": null,
60576057
"name": "pip",
6058-
"version": "23.3.2",
6058+
"version": "24.0",
60596059
"qualifiers": {},
60606060
"subpath": null,
60616061
"primary_language": "Python",
60626062
"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",
6063-
"release_date": "2023-12-17T13:05:07",
6063+
"release_date": "2024-02-03T09:53:18",
60646064
"parties": [
60656065
{
60666066
"type": "person",
60676067
"role": "author",
6068-
"name": "The pip developers",
6069-
"email": "[email protected]",
6068+
"name": null,
6069+
"email": "The pip developers <[email protected]>",
60706070
"url": null
60716071
}
60726072
],
@@ -6086,12 +6086,12 @@
60866086
"Programming Language :: Python :: Implementation :: PyPy",
60876087
"Topic :: Software Development :: Build Tools"
60886088
],
6089-
"homepage_url": "https://pip.pypa.io/",
6090-
"download_url": "https://files.pythonhosted.org/packages/b7/06/6b1ad0ae8f97d7a0d6f6ad640db10780578999e647a9593512ceb6f06469/pip-23.3.2.tar.gz",
6091-
"size": 2132244,
6089+
"homepage_url": "",
6090+
"download_url": "https://files.pythonhosted.org/packages/94/59/6638090c25e9bc4ce0c42817b5a234e183872a1129735a9330c472cc2056/pip-24.0.tar.gz",
6091+
"size": 2132709,
60926092
"sha1": null,
6093-
"md5": "38dd5f7ab301167df063405c7fc16c84",
6094-
"sha256": "7fd9972f96db22c8077a1ee2691b172c8089b17a5652a44494a9ecb0d78f9149",
6093+
"md5": "1331aabb4d1a2677f493effeebda3605",
6094+
"sha256": "ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2",
60956095
"sha512": null,
60966096
"bug_tracking_url": null,
60976097
"code_view_url": "https://github.com/pypa/pip",
@@ -6111,9 +6111,9 @@
61116111
"dependencies": [],
61126112
"repository_homepage_url": null,
61136113
"repository_download_url": null,
6114-
"api_data_url": "https://pypi.org/pypi/pip/23.3.2/json",
6114+
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
61156115
"datasource_id": null,
6116-
"purl": "pkg:pypi/pip@23.3.2"
6116+
"purl": "pkg:pypi/pip@24.0"
61176117
},
61186118
{
61196119
"type": "pypi",
@@ -10802,7 +10802,7 @@
1080210802
{
1080310803
"key": "pip",
1080410804
"package_name": "pip",
10805-
"installed_version": "23.3.2",
10805+
"installed_version": "24.0",
1080610806
"dependencies": []
1080710807
}
1080810808
]

tests/data/insecure-setup-2/setup.py-expected.json

+20-20
Large diffs are not rendered by default.

tests/data/insecure-setup/setup.py-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--analyze-setup-py-insecurely",
88
"--json <file>",

tests/data/pdt-requirements.txt-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",

tests/data/pinned-pdt-requirements.txt-expected.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"headers": {
33
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
5-
"tool_version": "0.10.0",
5+
"tool_version": "0.11.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",
@@ -2688,12 +2688,12 @@
26882688
"type": "pypi",
26892689
"namespace": null,
26902690
"name": "markupsafe",
2691-
"version": "2.1.4",
2691+
"version": "2.1.5",
26922692
"qualifiers": {},
26932693
"subpath": null,
26942694
"primary_language": "Python",
26952695
"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",
2696-
"release_date": "2024-01-19T22:49:13",
2696+
"release_date": "2024-02-02T16:31:01",
26972697
"parties": [
26982698
{
26992699
"type": "person",
@@ -2713,11 +2713,11 @@
27132713
"Topic :: Text Processing :: Markup :: HTML"
27142714
],
27152715
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
2716-
"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",
2717-
"size": 26107,
2716+
"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",
2717+
"size": 26106,
27182718
"sha1": null,
2719-
"md5": "4206b35075defbed0242fe292e9dfe15",
2720-
"sha256": "23984d1bdae01bee794267424af55eef4dfc038dc5d1272860669b2aa025c9e3",
2719+
"md5": "4f97754a1154496e5bc9d3f21fb0315a",
2720+
"sha256": "fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab",
27212721
"sha512": null,
27222722
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
27232723
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -2737,20 +2737,20 @@
27372737
"dependencies": [],
27382738
"repository_homepage_url": null,
27392739
"repository_download_url": null,
2740-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.4/json",
2740+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.5/json",
27412741
"datasource_id": null,
2742-
"purl": "pkg:pypi/[email protected].4"
2742+
"purl": "pkg:pypi/[email protected].5"
27432743
},
27442744
{
27452745
"type": "pypi",
27462746
"namespace": null,
27472747
"name": "markupsafe",
2748-
"version": "2.1.4",
2748+
"version": "2.1.5",
27492749
"qualifiers": {},
27502750
"subpath": null,
27512751
"primary_language": "Python",
27522752
"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",
2753-
"release_date": "2024-01-19T22:49:34",
2753+
"release_date": "2024-02-02T16:31:22",
27542754
"parties": [
27552755
{
27562756
"type": "person",
@@ -2770,11 +2770,11 @@
27702770
"Topic :: Text Processing :: Markup :: HTML"
27712771
],
27722772
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
2773-
"download_url": "https://files.pythonhosted.org/packages/fb/5a/fb1326fe32913e663c8e2d6bdf7cde6f472e51f9c21f0768d9b9080fe7c5/MarkupSafe-2.1.4.tar.gz",
2774-
"size": 19288,
2773+
"download_url": "https://files.pythonhosted.org/packages/87/5b/aae44c6655f3801e81aa3eef09dbbf012431987ba564d7231722f68df02d/MarkupSafe-2.1.5.tar.gz",
2774+
"size": 19384,
27752775
"sha1": null,
2776-
"md5": "8138329a11cf4bd0f9db780b2af26c66",
2777-
"sha256": "3aae9af4cac263007fd6309c64c6ab4506dd2b79382d9d19a1994f9240b8db4f",
2776+
"md5": "8fe7227653f2fb9b1ffe7f9f2058998a",
2777+
"sha256": "d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b",
27782778
"sha512": null,
27792779
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
27802780
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -2794,9 +2794,9 @@
27942794
"dependencies": [],
27952795
"repository_homepage_url": null,
27962796
"repository_download_url": null,
2797-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.4/json",
2797+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.5/json",
27982798
"datasource_id": null,
2799-
"purl": "pkg:pypi/[email protected].4"
2799+
"purl": "pkg:pypi/[email protected].5"
28002800
},
28012801
{
28022802
"type": "pypi",
@@ -4975,7 +4975,7 @@
49754975
{
49764976
"key": "markupsafe",
49774977
"package_name": "markupsafe",
4978-
"installed_version": "2.1.4",
4978+
"installed_version": "2.1.5",
49794979
"dependencies": []
49804980
}
49814981
]

0 commit comments

Comments
 (0)