From faa5d8bea5b922c84be6e615d01c9adbaf7ec75b Mon Sep 17 00:00:00 2001 From: Tushar Goel Date: Mon, 7 Aug 2023 20:14:56 +0530 Subject: [PATCH] Prepare for release v0.9.8 Signed-off-by: Tushar Goel --- CHANGELOG.rst | 5 +++ src/python_inspector/resolve_cli.py | 2 +- tests/data/azure-devops.req-310-expected.json | 42 +++++++++---------- tests/data/azure-devops.req-38-expected.json | 42 +++++++++---------- tests/data/default-url-expected.json | 2 +- ...marker-test-requirements.txt-expected.json | 6 +-- .../frozen-requirements.txt-expected.json | 6 +-- .../insecure-setup-2/setup.py-expected.json | 4 +- .../insecure-setup/setup.py-expected.json | 4 +- tests/data/pdt-requirements.txt-expected.json | 6 +-- .../pinned-pdt-requirements.txt-expected.json | 6 +-- .../pinned-requirements.txt-expected.json | 6 +-- tests/data/prefer-source-expected.json | 2 +- ...direct-dependencies-setup.py-expected.json | 4 +- .../data/setup/simple-setup.py-expected.json | 4 +- tests/data/setup/spdx-setup.py-expected.json | 4 +- .../single-url-except-simple-expected.json | 2 +- tests/data/single-url-expected.json | 2 +- .../data/test-api-with-partial-setup-py.json | 2 +- ...t-api-with-recursive-requirement-file.json | 2 +- .../data/test-api-with-requirement-file.json | 2 +- tests/data/tilde_req-expected.json | 2 +- tests/test_cli.py | 2 +- tests/test_resolution.py | 2 +- 24 files changed, 83 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b2248ccc..3df24bfd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Changelog ========= +v0.9.8 +------------- + +- Add the ability to handle relative links. + v0.9.7 ------------- diff --git a/src/python_inspector/resolve_cli.py b/src/python_inspector/resolve_cli.py index 12416961..235244f1 100644 --- a/src/python_inspector/resolve_cli.py +++ b/src/python_inspector/resolve_cli.py @@ -20,7 +20,7 @@ TRACE = False -__version__ = "0.9.7" +__version__ = "0.9.8" DEFAULT_PYTHON_VERSION = "38" PYPI_SIMPLE_URL = "https://pypi.org/simple" diff --git a/tests/data/azure-devops.req-310-expected.json b/tests/data/azure-devops.req-310-expected.json index 0f4367ba..b2ce457f 100644 --- a/tests/data/azure-devops.req-310-expected.json +++ b/tests/data/azure-devops.req-310-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /Users/mathioud/repos/python-inspector/tests/data/azure-devops.req.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/azure-devops.req.txt", "--index-url https://pypi.org/simple", "--python-version 310", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/Users/mathioud/repos/python-inspector/tests/data/azure-devops.req.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/azure-devops.req.txt", "package_data": [ { "type": "pypi", @@ -997,12 +997,12 @@ "type": "pypi", "namespace": null, "name": "cryptography", - "version": "41.0.2", + "version": "41.0.3", "qualifiers": {}, "subpath": null, "primary_language": "Python", "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.\npyca/cryptography\n=================\n\n.. image:: https://img.shields.io/pypi/v/cryptography.svg\n :target: https://pypi.org/project/cryptography/\n :alt: Latest Version\n\n.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest\n :target: https://cryptography.io\n :alt: Latest Docs\n\n.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main\n :target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amain\n\n\n``cryptography`` is a package which provides cryptographic recipes and\nprimitives to Python developers. Our goal is for it to be your \"cryptographic\nstandard library\". It supports Python 3.7+ and PyPy3 7.3.10+.\n\n``cryptography`` includes both high level recipes and low level interfaces to\ncommon cryptographic algorithms such as symmetric ciphers, message digests, and\nkey derivation functions. For example, to encrypt something with\n``cryptography``'s high level symmetric encryption recipe:\n\n.. code-block:: pycon\n\n >>> from cryptography.fernet import Fernet\n >>> # Put this somewhere safe!\n >>> key = Fernet.generate_key()\n >>> f = Fernet(key)\n >>> token = f.encrypt(b\"A really secret message. Not for prying eyes.\")\n >>> token\n b'...'\n >>> f.decrypt(token)\n b'A really secret message. Not for prying eyes.'\n\nYou can find more information in the `documentation`_.\n\nYou can install ``cryptography`` with:\n\n.. code-block:: console\n\n $ pip install cryptography\n\nFor full details see `the installation documentation`_.\n\nDiscussion\n~~~~~~~~~~\n\nIf you run into bugs, you can file them in our `issue tracker`_.\n\nWe maintain a `cryptography-dev`_ mailing list for development discussion.\n\nYou can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get\ninvolved.\n\nSecurity\n~~~~~~~~\n\nNeed to report a security issue? Please consult our `security reporting`_\ndocumentation.\n\n\n.. _`documentation`: https://cryptography.io/\n.. _`the installation documentation`: https://cryptography.io/en/latest/installation/\n.. _`issue tracker`: https://github.com/pyca/cryptography/issues\n.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev\n.. _`security reporting`: https://cryptography.io/en/latest/security/", - "release_date": "2023-07-11T03:25:42", + "release_date": "2023-08-01T20:35:42", "parties": [ { "type": "person", @@ -1034,11 +1034,11 @@ "Topic :: Security :: Cryptography" ], "homepage_url": "", - "download_url": "https://files.pythonhosted.org/packages/fe/ee/aa40ae0f8cfb5988736b3a93adba13421dbfe318211d48a2da138a3a346e/cryptography-41.0.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", - "size": 4291427, + "download_url": "https://files.pythonhosted.org/packages/21/74/a7ebb5bcf733b1626e4778941e505792d7f655e799ff3bdbd9a176516ee2/cryptography-41.0.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "size": 4308894, "sha1": null, - "md5": "384e52a9ea431783150b79764a700971", - "sha256": "f14ad275364c8b4e525d018f6716537ae7b6d369c094805cae45300847e0894f", + "md5": "c7fce3b285651310e92cfe5a6e299898", + "sha256": "84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd", "sha512": null, "bug_tracking_url": null, "code_view_url": null, @@ -1059,20 +1059,20 @@ "dependencies": [], "repository_homepage_url": null, "repository_download_url": null, - "api_data_url": "https://pypi.org/pypi/cryptography/41.0.2/json", + "api_data_url": "https://pypi.org/pypi/cryptography/41.0.3/json", "datasource_id": null, - "purl": "pkg:pypi/cryptography@41.0.2" + "purl": "pkg:pypi/cryptography@41.0.3" }, { "type": "pypi", "namespace": null, "name": "cryptography", - "version": "41.0.2", + "version": "41.0.3", "qualifiers": {}, "subpath": null, "primary_language": "Python", "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.\npyca/cryptography\n=================\n\n.. image:: https://img.shields.io/pypi/v/cryptography.svg\n :target: https://pypi.org/project/cryptography/\n :alt: Latest Version\n\n.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest\n :target: https://cryptography.io\n :alt: Latest Docs\n\n.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main\n :target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amain\n\n\n``cryptography`` is a package which provides cryptographic recipes and\nprimitives to Python developers. Our goal is for it to be your \"cryptographic\nstandard library\". It supports Python 3.7+ and PyPy3 7.3.10+.\n\n``cryptography`` includes both high level recipes and low level interfaces to\ncommon cryptographic algorithms such as symmetric ciphers, message digests, and\nkey derivation functions. For example, to encrypt something with\n``cryptography``'s high level symmetric encryption recipe:\n\n.. code-block:: pycon\n\n >>> from cryptography.fernet import Fernet\n >>> # Put this somewhere safe!\n >>> key = Fernet.generate_key()\n >>> f = Fernet(key)\n >>> token = f.encrypt(b\"A really secret message. Not for prying eyes.\")\n >>> token\n b'...'\n >>> f.decrypt(token)\n b'A really secret message. Not for prying eyes.'\n\nYou can find more information in the `documentation`_.\n\nYou can install ``cryptography`` with:\n\n.. code-block:: console\n\n $ pip install cryptography\n\nFor full details see `the installation documentation`_.\n\nDiscussion\n~~~~~~~~~~\n\nIf you run into bugs, you can file them in our `issue tracker`_.\n\nWe maintain a `cryptography-dev`_ mailing list for development discussion.\n\nYou can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get\ninvolved.\n\nSecurity\n~~~~~~~~\n\nNeed to report a security issue? Please consult our `security reporting`_\ndocumentation.\n\n\n.. _`documentation`: https://cryptography.io/\n.. _`the installation documentation`: https://cryptography.io/en/latest/installation/\n.. _`issue tracker`: https://github.com/pyca/cryptography/issues\n.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev\n.. _`security reporting`: https://cryptography.io/en/latest/security/", - "release_date": "2023-07-11T03:26:24", + "release_date": "2023-08-01T20:36:22", "parties": [ { "type": "person", @@ -1104,11 +1104,11 @@ "Topic :: Security :: Cryptography" ], "homepage_url": "", - "download_url": "https://files.pythonhosted.org/packages/93/b7/b6b3420a2f027c1067f712eb3aea8653f8ca7490f183f9917879c447139b/cryptography-41.0.2.tar.gz", - "size": 630080, + "download_url": "https://files.pythonhosted.org/packages/8e/5d/2bf54672898375d081cb24b30baeb7793568ae5d958ef781349e9635d1c8/cryptography-41.0.3.tar.gz", + "size": 630139, "sha1": null, - "md5": "218dde9757c27459271235acd993b49c", - "sha256": "7d230bf856164de164ecb615ccc14c7fc6de6906ddd5b491f3af90d3514c925c", + "md5": "fbf930acd8de95780604c40c4e817a74", + "sha256": "6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34", "sha512": null, "bug_tracking_url": null, "code_view_url": null, @@ -1129,9 +1129,9 @@ "dependencies": [], "repository_homepage_url": null, "repository_download_url": null, - "api_data_url": "https://pypi.org/pypi/cryptography/41.0.2/json", + "api_data_url": "https://pypi.org/pypi/cryptography/41.0.3/json", "datasource_id": null, - "purl": "pkg:pypi/cryptography@41.0.2" + "purl": "pkg:pypi/cryptography@41.0.3" }, { "type": "pypi", @@ -2497,7 +2497,7 @@ "package": "pkg:pypi/azure-storage-blob@12.17.0", "dependencies": [ "pkg:pypi/azure-core@1.28.0", - "pkg:pypi/cryptography@41.0.2", + "pkg:pypi/cryptography@41.0.3", "pkg:pypi/isodate@0.6.1", "pkg:pypi/typing-extensions@4.7.1" ] @@ -2521,7 +2521,7 @@ "dependencies": [] }, { - "package": "pkg:pypi/cryptography@41.0.2", + "package": "pkg:pypi/cryptography@41.0.3", "dependencies": [ "pkg:pypi/cffi@1.15.1" ] diff --git a/tests/data/azure-devops.req-38-expected.json b/tests/data/azure-devops.req-38-expected.json index e0bbaecd..8fd90ba1 100644 --- a/tests/data/azure-devops.req-38-expected.json +++ b/tests/data/azure-devops.req-38-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /Users/mathioud/repos/python-inspector/tests/data/azure-devops.req.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/azure-devops.req.txt", "--index-url https://pypi.org/simple", "--python-version 38", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/Users/mathioud/repos/python-inspector/tests/data/azure-devops.req.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/azure-devops.req.txt", "package_data": [ { "type": "pypi", @@ -997,12 +997,12 @@ "type": "pypi", "namespace": null, "name": "cryptography", - "version": "41.0.2", + "version": "41.0.3", "qualifiers": {}, "subpath": null, "primary_language": "Python", "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.\npyca/cryptography\n=================\n\n.. image:: https://img.shields.io/pypi/v/cryptography.svg\n :target: https://pypi.org/project/cryptography/\n :alt: Latest Version\n\n.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest\n :target: https://cryptography.io\n :alt: Latest Docs\n\n.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main\n :target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amain\n\n\n``cryptography`` is a package which provides cryptographic recipes and\nprimitives to Python developers. Our goal is for it to be your \"cryptographic\nstandard library\". It supports Python 3.7+ and PyPy3 7.3.10+.\n\n``cryptography`` includes both high level recipes and low level interfaces to\ncommon cryptographic algorithms such as symmetric ciphers, message digests, and\nkey derivation functions. For example, to encrypt something with\n``cryptography``'s high level symmetric encryption recipe:\n\n.. code-block:: pycon\n\n >>> from cryptography.fernet import Fernet\n >>> # Put this somewhere safe!\n >>> key = Fernet.generate_key()\n >>> f = Fernet(key)\n >>> token = f.encrypt(b\"A really secret message. Not for prying eyes.\")\n >>> token\n b'...'\n >>> f.decrypt(token)\n b'A really secret message. Not for prying eyes.'\n\nYou can find more information in the `documentation`_.\n\nYou can install ``cryptography`` with:\n\n.. code-block:: console\n\n $ pip install cryptography\n\nFor full details see `the installation documentation`_.\n\nDiscussion\n~~~~~~~~~~\n\nIf you run into bugs, you can file them in our `issue tracker`_.\n\nWe maintain a `cryptography-dev`_ mailing list for development discussion.\n\nYou can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get\ninvolved.\n\nSecurity\n~~~~~~~~\n\nNeed to report a security issue? Please consult our `security reporting`_\ndocumentation.\n\n\n.. _`documentation`: https://cryptography.io/\n.. _`the installation documentation`: https://cryptography.io/en/latest/installation/\n.. _`issue tracker`: https://github.com/pyca/cryptography/issues\n.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev\n.. _`security reporting`: https://cryptography.io/en/latest/security/", - "release_date": "2023-07-11T03:25:42", + "release_date": "2023-08-01T20:35:42", "parties": [ { "type": "person", @@ -1034,11 +1034,11 @@ "Topic :: Security :: Cryptography" ], "homepage_url": "", - "download_url": "https://files.pythonhosted.org/packages/fe/ee/aa40ae0f8cfb5988736b3a93adba13421dbfe318211d48a2da138a3a346e/cryptography-41.0.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", - "size": 4291427, + "download_url": "https://files.pythonhosted.org/packages/21/74/a7ebb5bcf733b1626e4778941e505792d7f655e799ff3bdbd9a176516ee2/cryptography-41.0.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "size": 4308894, "sha1": null, - "md5": "384e52a9ea431783150b79764a700971", - "sha256": "f14ad275364c8b4e525d018f6716537ae7b6d369c094805cae45300847e0894f", + "md5": "c7fce3b285651310e92cfe5a6e299898", + "sha256": "84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd", "sha512": null, "bug_tracking_url": null, "code_view_url": null, @@ -1059,20 +1059,20 @@ "dependencies": [], "repository_homepage_url": null, "repository_download_url": null, - "api_data_url": "https://pypi.org/pypi/cryptography/41.0.2/json", + "api_data_url": "https://pypi.org/pypi/cryptography/41.0.3/json", "datasource_id": null, - "purl": "pkg:pypi/cryptography@41.0.2" + "purl": "pkg:pypi/cryptography@41.0.3" }, { "type": "pypi", "namespace": null, "name": "cryptography", - "version": "41.0.2", + "version": "41.0.3", "qualifiers": {}, "subpath": null, "primary_language": "Python", "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.\npyca/cryptography\n=================\n\n.. image:: https://img.shields.io/pypi/v/cryptography.svg\n :target: https://pypi.org/project/cryptography/\n :alt: Latest Version\n\n.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest\n :target: https://cryptography.io\n :alt: Latest Docs\n\n.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main\n :target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amain\n\n\n``cryptography`` is a package which provides cryptographic recipes and\nprimitives to Python developers. Our goal is for it to be your \"cryptographic\nstandard library\". It supports Python 3.7+ and PyPy3 7.3.10+.\n\n``cryptography`` includes both high level recipes and low level interfaces to\ncommon cryptographic algorithms such as symmetric ciphers, message digests, and\nkey derivation functions. For example, to encrypt something with\n``cryptography``'s high level symmetric encryption recipe:\n\n.. code-block:: pycon\n\n >>> from cryptography.fernet import Fernet\n >>> # Put this somewhere safe!\n >>> key = Fernet.generate_key()\n >>> f = Fernet(key)\n >>> token = f.encrypt(b\"A really secret message. Not for prying eyes.\")\n >>> token\n b'...'\n >>> f.decrypt(token)\n b'A really secret message. Not for prying eyes.'\n\nYou can find more information in the `documentation`_.\n\nYou can install ``cryptography`` with:\n\n.. code-block:: console\n\n $ pip install cryptography\n\nFor full details see `the installation documentation`_.\n\nDiscussion\n~~~~~~~~~~\n\nIf you run into bugs, you can file them in our `issue tracker`_.\n\nWe maintain a `cryptography-dev`_ mailing list for development discussion.\n\nYou can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get\ninvolved.\n\nSecurity\n~~~~~~~~\n\nNeed to report a security issue? Please consult our `security reporting`_\ndocumentation.\n\n\n.. _`documentation`: https://cryptography.io/\n.. _`the installation documentation`: https://cryptography.io/en/latest/installation/\n.. _`issue tracker`: https://github.com/pyca/cryptography/issues\n.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev\n.. _`security reporting`: https://cryptography.io/en/latest/security/", - "release_date": "2023-07-11T03:26:24", + "release_date": "2023-08-01T20:36:22", "parties": [ { "type": "person", @@ -1104,11 +1104,11 @@ "Topic :: Security :: Cryptography" ], "homepage_url": "", - "download_url": "https://files.pythonhosted.org/packages/93/b7/b6b3420a2f027c1067f712eb3aea8653f8ca7490f183f9917879c447139b/cryptography-41.0.2.tar.gz", - "size": 630080, + "download_url": "https://files.pythonhosted.org/packages/8e/5d/2bf54672898375d081cb24b30baeb7793568ae5d958ef781349e9635d1c8/cryptography-41.0.3.tar.gz", + "size": 630139, "sha1": null, - "md5": "218dde9757c27459271235acd993b49c", - "sha256": "7d230bf856164de164ecb615ccc14c7fc6de6906ddd5b491f3af90d3514c925c", + "md5": "fbf930acd8de95780604c40c4e817a74", + "sha256": "6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34", "sha512": null, "bug_tracking_url": null, "code_view_url": null, @@ -1129,9 +1129,9 @@ "dependencies": [], "repository_homepage_url": null, "repository_download_url": null, - "api_data_url": "https://pypi.org/pypi/cryptography/41.0.2/json", + "api_data_url": "https://pypi.org/pypi/cryptography/41.0.3/json", "datasource_id": null, - "purl": "pkg:pypi/cryptography@41.0.2" + "purl": "pkg:pypi/cryptography@41.0.3" }, { "type": "pypi", @@ -2497,7 +2497,7 @@ "package": "pkg:pypi/azure-storage-blob@12.17.0", "dependencies": [ "pkg:pypi/azure-core@1.28.0", - "pkg:pypi/cryptography@41.0.2", + "pkg:pypi/cryptography@41.0.3", "pkg:pypi/isodate@0.6.1", "pkg:pypi/typing-extensions@4.7.1" ] @@ -2521,7 +2521,7 @@ "dependencies": [] }, { - "package": "pkg:pypi/cryptography@41.0.2", + "package": "pkg:pypi/cryptography@41.0.3", "dependencies": [ "pkg:pypi/cffi@1.15.1" ] diff --git a/tests/data/default-url-expected.json b/tests/data/default-url-expected.json index 28f3dbcd..6716e060 100644 --- a/tests/data/default-url-expected.json +++ b/tests/data/default-url-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--specifier zipp==3.8.0", "--index-url https://pypi.org/simple", diff --git a/tests/data/environment-marker-test-requirements.txt-expected.json b/tests/data/environment-marker-test-requirements.txt-expected.json index 746d60d6..9ea777a2 100644 --- a/tests/data/environment-marker-test-requirements.txt-expected.json +++ b/tests/data/environment-marker-test-requirements.txt-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/environment-marker-test-requirements.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/environment-marker-test-requirements.txt", "--index-url https://pypi.org/simple", "--python-version 37", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/environment-marker-test-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/environment-marker-test-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/frozen-requirements.txt-expected.json b/tests/data/frozen-requirements.txt-expected.json index 1efcbf8b..0dded3b6 100644 --- a/tests/data/frozen-requirements.txt-expected.json +++ b/tests/data/frozen-requirements.txt-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/frozen-requirements.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/frozen-requirements.txt", "--index-url https://pypi.org/simple", "--python-version 38", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/frozen-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/frozen-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/insecure-setup-2/setup.py-expected.json b/tests/data/insecure-setup-2/setup.py-expected.json index d1ba6675..ce599331 100644 --- a/tests/data/insecure-setup-2/setup.py-expected.json +++ b/tests/data/insecure-setup-2/setup.py-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--index-url https://pypi.org/simple", "--python-version 27", @@ -16,7 +16,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/insecure-setup-2/setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/insecure-setup-2/setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/insecure-setup/setup.py-expected.json b/tests/data/insecure-setup/setup.py-expected.json index 2a4ea87a..91ce7d1a 100644 --- a/tests/data/insecure-setup/setup.py-expected.json +++ b/tests/data/insecure-setup/setup.py-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--index-url https://pypi.org/simple", "--python-version 27", @@ -16,7 +16,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/insecure-setup/setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/insecure-setup/setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/pdt-requirements.txt-expected.json b/tests/data/pdt-requirements.txt-expected.json index 11253a80..759729f7 100644 --- a/tests/data/pdt-requirements.txt-expected.json +++ b/tests/data/pdt-requirements.txt-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/pdt-requirements.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pdt-requirements.txt", "--index-url https://pypi.org/simple", "--python-version 38", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/pdt-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pdt-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/pinned-pdt-requirements.txt-expected.json b/tests/data/pinned-pdt-requirements.txt-expected.json index 77c97dcf..bf65322c 100644 --- a/tests/data/pinned-pdt-requirements.txt-expected.json +++ b/tests/data/pinned-pdt-requirements.txt-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/pinned-pdt-requirements.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-pdt-requirements.txt", "--index-url https://pypi.org/simple", "--python-version 38", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/pinned-pdt-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-pdt-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/pinned-requirements.txt-expected.json b/tests/data/pinned-requirements.txt-expected.json index c542c28e..94e3456f 100644 --- a/tests/data/pinned-requirements.txt-expected.json +++ b/tests/data/pinned-requirements.txt-expected.json @@ -2,9 +2,9 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ - "--requirement /home/tg1999/Desktop/python-inspector-1/tests/data/pinned-requirements.txt", + "--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-requirements.txt", "--index-url https://pypi.org/simple", "--python-version 38", "--operating-system linux", @@ -17,7 +17,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/pinned-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/prefer-source-expected.json b/tests/data/prefer-source-expected.json index 2460aa47..c4f7fe8a 100644 --- a/tests/data/prefer-source-expected.json +++ b/tests/data/prefer-source-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--specifier zipp==3.8.0", "--index-url https://pypi.org/simple", diff --git a/tests/data/setup/no-direct-dependencies-setup.py-expected.json b/tests/data/setup/no-direct-dependencies-setup.py-expected.json index 7dac3144..23268a97 100644 --- a/tests/data/setup/no-direct-dependencies-setup.py-expected.json +++ b/tests/data/setup/no-direct-dependencies-setup.py-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--index-url https://pypi.org/simple", "--python-version 27", @@ -16,7 +16,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/setup/no-direct-dependencies-setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/no-direct-dependencies-setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/setup/simple-setup.py-expected.json b/tests/data/setup/simple-setup.py-expected.json index ea34e23e..9d6ef619 100644 --- a/tests/data/setup/simple-setup.py-expected.json +++ b/tests/data/setup/simple-setup.py-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--index-url https://pypi.org/simple", "--python-version 27", @@ -16,7 +16,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/setup/simple-setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/simple-setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/setup/spdx-setup.py-expected.json b/tests/data/setup/spdx-setup.py-expected.json index 88f95591..0dd39ee7 100644 --- a/tests/data/setup/spdx-setup.py-expected.json +++ b/tests/data/setup/spdx-setup.py-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--index-url https://pypi.org/simple", "--python-version 27", @@ -16,7 +16,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/setup/spdx-setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/spdx-setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/single-url-except-simple-expected.json b/tests/data/single-url-except-simple-expected.json index f9476d57..bb3fa21f 100644 --- a/tests/data/single-url-except-simple-expected.json +++ b/tests/data/single-url-except-simple-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--specifier flask", "--index-url https://thirdparty.aboutcode.org/pypi/simple/", diff --git a/tests/data/single-url-expected.json b/tests/data/single-url-expected.json index c6b6ccb8..ad2dd3e1 100644 --- a/tests/data/single-url-expected.json +++ b/tests/data/single-url-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--specifier zipp==3.8.0", "--index-url https://pypi.org/simple", diff --git a/tests/data/test-api-with-partial-setup-py.json b/tests/data/test-api-with-partial-setup-py.json index ab8aa283..20f9403c 100644 --- a/tests/data/test-api-with-partial-setup-py.json +++ b/tests/data/test-api-with-partial-setup-py.json @@ -2,7 +2,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/partial-setup.py", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/partial-setup.py", "package_data": [ { "type": "pypi", diff --git a/tests/data/test-api-with-recursive-requirement-file.json b/tests/data/test-api-with-recursive-requirement-file.json index dff2d6e9..8dd599d0 100644 --- a/tests/data/test-api-with-recursive-requirement-file.json +++ b/tests/data/test-api-with-recursive-requirement-file.json @@ -2,7 +2,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/recursive_requirements/r.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/recursive_requirements/r.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/test-api-with-requirement-file.json b/tests/data/test-api-with-requirement-file.json index 57807842..f9df7724 100644 --- a/tests/data/test-api-with-requirement-file.json +++ b/tests/data/test-api-with-requirement-file.json @@ -2,7 +2,7 @@ "files": [ { "type": "file", - "path": "/home/tg1999/Desktop/python-inspector-1/tests/data/frozen-requirements.txt", + "path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/frozen-requirements.txt", "package_data": [ { "type": "pypi", diff --git a/tests/data/tilde_req-expected.json b/tests/data/tilde_req-expected.json index 702807a8..9b159ed4 100644 --- a/tests/data/tilde_req-expected.json +++ b/tests/data/tilde_req-expected.json @@ -2,7 +2,7 @@ "headers": { "tool_name": "python-inspector", "tool_homepageurl": "https://github.com/nexB/python-inspector", - "tool_version": "0.9.7", + "tool_version": "0.9.8", "options": [ "--specifier zipp~=3.8.0", "--index-url https://pypi.org/simple", diff --git a/tests/test_cli.py b/tests/test_cli.py index a15a255b..a5e4e438 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -373,7 +373,7 @@ def test_passing_of_json_pdt_and_json_flags(): def test_version_option(): options = ["--version"] result = run_cli(options=options) - assert "0.9.7" in result.output + assert "0.9.8" in result.output def test_passing_of_netrc_file_that_does_not_exist(): diff --git a/tests/test_resolution.py b/tests/test_resolution.py index 52bf647a..b288c60c 100644 --- a/tests/test_resolution.py +++ b/tests/test_resolution.py @@ -147,7 +147,7 @@ def test_without_supported_wheels(): assert plist == [ "pkg:pypi/autobahn@22.3.2", "pkg:pypi/cffi@1.15.1", - "pkg:pypi/cryptography@41.0.2", + "pkg:pypi/cryptography@41.0.3", "pkg:pypi/hyperlink@21.0.0", "pkg:pypi/idna@3.4", "pkg:pypi/pycparser@2.21",