diff --git a/tests/_data/infiles/_helpers/local_pckages/e_vcs/.gitignore b/tests/_data/infiles/_helpers/local_pckages/e_vcs/.gitignore new file mode 100644 index 000000000..e17357ef3 --- /dev/null +++ b/tests/_data/infiles/_helpers/local_pckages/e_vcs/.gitignore @@ -0,0 +1,9 @@ +# the local git repository is created on demand -- see README +/.git/ + +# python caches and build artifacts +__pycache__/ +*.py[cod] +*.egg-info/ +/build/ +/dist/ diff --git a/tests/_data/infiles/_helpers/local_pckages/e_vcs/README.md b/tests/_data/infiles/_helpers/local_pckages/e_vcs/README.md new file mode 100644 index 000000000..9ceda5fbc --- /dev/null +++ b/tests/_data/infiles/_helpers/local_pckages/e_vcs/README.md @@ -0,0 +1,22 @@ +# package E -- from a local VCS repository + +This package is used to showcase/test dependencies that are installed or locked +from a **local VCS repository**, e.g. `git+file:///path/to/e_vcs`. + +The VCS repository itself is not part of this project's source control. +It is created on demand, by running + +```shell +python init_repo.py +``` + +The script does the following: +- if a `.git` folder exists already, it does nothing. +- otherwise, it runs `git init` in this folder, sets a fixed author and branch name, + and commits all files with a fixed date. + This way, the commit hash is reproducible on every machine. + +Testbeds that depend on this package call `init_repo.py` before installing/locking. + +URLs to this repository must be absolute (`git+file:///...`); +relative URLs are not supported for VCS installs by pip. diff --git a/tests/_data/infiles/_helpers/local_pckages/e_vcs/init_repo.py b/tests/_data/infiles/_helpers/local_pckages/e_vcs/init_repo.py new file mode 100644 index 000000000..ee422c28e --- /dev/null +++ b/tests/_data/infiles/_helpers/local_pckages/e_vcs/init_repo.py @@ -0,0 +1,63 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + +""" +Turn this folder into a local git repository with a reproducible commit -- see README.md. +""" + +from os import environ +from os.path import dirname, isdir, join +from subprocess import check_call # nosec:B404 +from sys import stderr + +__all__ = ['main', 'repo_dir'] + +repo_dir = dirname(__file__) + +# fixed author/committer and dates, so the commit hash is reproducible +_GIT_ENV = { + 'GIT_AUTHOR_DATE': '2026-01-01T00:00:00Z', + 'GIT_COMMITTER_DATE': '2026-01-01T00:00:00Z', +} +_GIT_CONFIG = ( + ('user.name', 'CycloneDX Python testbed'), + ('user.email', 'testbed@cyclonedx.example'), + ('commit.gpgsign', 'false'), + # normalize line endings on commit, so checkouts with CRLF result in the same commit hash + ('core.autocrlf', 'input'), +) + + +def git(*args: str) -> None: + call = ('git', *args) + print('+ ', *call, file=stderr) + check_call(call, cwd=repo_dir, env={**environ, **_GIT_ENV}, shell=False) # nosec:B603 B607 + + +def main() -> None: + if isdir(join(repo_dir, '.git')): + print('git repository exists already - skip', file=stderr) + return + git('init', '--quiet', '--initial-branch=main') + for key, value in _GIT_CONFIG: + git('config', '--local', key, value) + git('add', '--all') + git('commit', '--quiet', '--message=initial') + + +if __name__ == '__main__': + main() diff --git a/tests/_data/infiles/_helpers/local_pckages/e_vcs/module_e.py b/tests/_data/infiles/_helpers/local_pckages/e_vcs/module_e.py new file mode 100644 index 000000000..d078a793a --- /dev/null +++ b/tests/_data/infiles/_helpers/local_pckages/e_vcs/module_e.py @@ -0,0 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + +""" +module E +""" diff --git a/tests/_data/infiles/_helpers/local_pckages/e_vcs/pyproject.toml b/tests/_data/infiles/_helpers/local_pckages/e_vcs/pyproject.toml new file mode 100644 index 000000000..1177c961a --- /dev/null +++ b/tests/_data/infiles/_helpers/local_pckages/e_vcs/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "package-e" +version = "23.42" +description = "some package E, installed from a local VCS repository" +license = { text = "Apache-2.0" } +authors = [] +requires-python = ">=3.8" + +[tool.setuptools] +py-modules = ["module_e"] + +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" diff --git a/tests/_data/infiles/environment/local/init.py b/tests/_data/infiles/environment/local/init.py index 062b9e663..34c7f3959 100644 --- a/tests/_data/infiles/environment/local/init.py +++ b/tests/_data/infiles/environment/local/init.py @@ -21,6 +21,7 @@ from os import name as os_name from os.path import abspath, dirname, join +from pathlib import Path from subprocess import check_call # nosec:B404 from sys import executable, stderr from venv import EnvBuilder @@ -50,10 +51,14 @@ def main() -> None: with_pip=False, ).create(env_dir) + # local VCS repository -- see its README + vcs_repo_dir = join(localpackages_dir, 'e_vcs') + check_call((executable, join(vcs_repo_dir, 'init_repo.py')), shell=False) # nosec:B603 pip_install( join(localpackages_dir, 'a', 'dist', 'package_a-23.42-py3-none-any.whl'), join(localpackages_dir, 'b', 'dist', 'package-b-23.42.tar.gz'), join(localpackages_dir, 'c'), + f'package-e @ git+{Path(vcs_repo_dir).absolute().as_uri()}', ) diff --git a/tests/_data/infiles/requirements/local.txt b/tests/_data/infiles/requirements/local.txt index 4c55d2e33..64970e848 100644 --- a/tests/_data/infiles/requirements/local.txt +++ b/tests/_data/infiles/requirements/local.txt @@ -15,3 +15,6 @@ foo @ file://../foo # unnamed source distribution ./downloads/numpy-1.26.1.tar.gz + +# local VCS -- https://pip.pypa.io/en/stable/topics/vcs-support/ +git+file:///path/to/local_pckages/e_vcs@main#egg=package-e diff --git a/tests/_data/infiles/requirements/with-urls.txt b/tests/_data/infiles/requirements/with-urls.txt index a1ae73ec3..aa655e3ba 100644 --- a/tests/_data/infiles/requirements/with-urls.txt +++ b/tests/_data/infiles/requirements/with-urls.txt @@ -23,3 +23,6 @@ https://files.pythonhosted.org/packages/78/23/f78fd8311e0f710fe1d065d50b92ce0057 ## named fetchable file urllib3 @ https://github.com/urllib3/urllib3/archive/refs/tags/2.2.0.zip + +## VCS via ssh +git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six diff --git a/tests/_data/snapshots/environment/plain_local_1.0.xml.bin b/tests/_data/snapshots/environment/plain_local_1.0.xml.bin index 13deb4872..fcb93d08e 100644 --- a/tests/_data/snapshots/environment/plain_local_1.0.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.0.xml.bin @@ -19,5 +19,11 @@ some package C false + + package-e + 23.42 + some package E, installed from a local VCS repository + false + diff --git a/tests/_data/snapshots/environment/plain_local_1.1.xml.bin b/tests/_data/snapshots/environment/plain_local_1.1.xml.bin index 55b0215ef..278de7ed9 100644 --- a/tests/_data/snapshots/environment/plain_local_1.1.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.1.xml.bin @@ -45,5 +45,21 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.2.json.bin b/tests/_data/snapshots/environment/plain_local_1.2.json.bin index 0ef10e770..33bf40ca7 100644 --- a/tests/_data/snapshots/environment/plain_local_1.2.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.2.json.bin @@ -58,6 +58,27 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -70,6 +91,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.2.xml.bin b/tests/_data/snapshots/environment/plain_local_1.2.xml.bin index 47171825b..00eb34e70 100644 --- a/tests/_data/snapshots/environment/plain_local_1.2.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.2.xml.bin @@ -64,11 +64,28 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.3.json.bin b/tests/_data/snapshots/environment/plain_local_1.3.json.bin index 951a65e63..1aecc454c 100644 --- a/tests/_data/snapshots/environment/plain_local_1.3.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.3.json.bin @@ -84,6 +84,33 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "properties": [ + { + "name": "cdx:python:package:source:vcs:commit_id", + "value": "260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -96,6 +123,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.3.xml.bin b/tests/_data/snapshots/environment/plain_local_1.3.xml.bin index 87ae56065..a28f3b4cd 100644 --- a/tests/_data/snapshots/environment/plain_local_1.3.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.3.xml.bin @@ -83,11 +83,31 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + 260d2e0a1d195d9fa2985ded868d4c44aa034e5a + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.4.json.bin b/tests/_data/snapshots/environment/plain_local_1.4.json.bin index e638d09d9..2868e8313 100644 --- a/tests/_data/snapshots/environment/plain_local_1.4.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.4.json.bin @@ -84,6 +84,33 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "properties": [ + { + "name": "cdx:python:package:source:vcs:commit_id", + "value": "260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -96,6 +123,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.4.xml.bin b/tests/_data/snapshots/environment/plain_local_1.4.xml.bin index 3f13ac541..384df7e5b 100644 --- a/tests/_data/snapshots/environment/plain_local_1.4.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.4.xml.bin @@ -110,11 +110,31 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + 260d2e0a1d195d9fa2985ded868d4c44aa034e5a + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.5.json.bin b/tests/_data/snapshots/environment/plain_local_1.5.json.bin index 3b03c8dab..6c9d13fe1 100644 --- a/tests/_data/snapshots/environment/plain_local_1.5.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.5.json.bin @@ -84,6 +84,33 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "properties": [ + { + "name": "cdx:python:package:source:vcs:commit_id", + "value": "260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -96,6 +123,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.5.xml.bin b/tests/_data/snapshots/environment/plain_local_1.5.xml.bin index 32415bae1..9fb9c5245 100644 --- a/tests/_data/snapshots/environment/plain_local_1.5.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.5.xml.bin @@ -120,11 +120,31 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + 260d2e0a1d195d9fa2985ded868d4c44aa034e5a + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.6.json.bin b/tests/_data/snapshots/environment/plain_local_1.6.json.bin index 961cc548e..f7518266e 100644 --- a/tests/_data/snapshots/environment/plain_local_1.6.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.6.json.bin @@ -89,6 +89,34 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "acknowledgement": "declared", + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "properties": [ + { + "name": "cdx:python:package:source:vcs:commit_id", + "value": "260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -101,6 +129,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.6.xml.bin b/tests/_data/snapshots/environment/plain_local_1.6.xml.bin index 6cd6b336e..f80512d61 100644 --- a/tests/_data/snapshots/environment/plain_local_1.6.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.6.xml.bin @@ -120,11 +120,31 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + 260d2e0a1d195d9fa2985ded868d4c44aa034e5a + + + diff --git a/tests/_data/snapshots/environment/plain_local_1.7.json.bin b/tests/_data/snapshots/environment/plain_local_1.7.json.bin index 66eb24102..adb9fc118 100644 --- a/tests/_data/snapshots/environment/plain_local_1.7.json.bin +++ b/tests/_data/snapshots/environment/plain_local_1.7.json.bin @@ -89,6 +89,34 @@ "name": "package-c", "type": "library", "version": "23.42" + }, + { + "bom-ref": "package-e==23.42", + "description": "some package E, installed from a local VCS repository", + "externalReferences": [ + { + "comment": "PackageSource: VCS 'git'", + "type": "vcs", + "url": "file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "licenses": [ + { + "license": { + "acknowledgement": "declared", + "id": "Apache-2.0" + } + } + ], + "name": "package-e", + "properties": [ + { + "name": "cdx:python:package:source:vcs:commit_id", + "value": "260d2e0a1d195d9fa2985ded868d4c44aa034e5a" + } + ], + "type": "library", + "version": "23.42" } ], "dependencies": [ @@ -101,6 +129,9 @@ { "ref": "package-c==23.42" }, + { + "ref": "package-e==23.42" + }, { "ref": "root-component" } diff --git a/tests/_data/snapshots/environment/plain_local_1.7.xml.bin b/tests/_data/snapshots/environment/plain_local_1.7.xml.bin index 08313df55..fab1a7132 100644 --- a/tests/_data/snapshots/environment/plain_local_1.7.xml.bin +++ b/tests/_data/snapshots/environment/plain_local_1.7.xml.bin @@ -120,11 +120,31 @@ + + package-e + 23.42 + some package E, installed from a local VCS repository + + + Apache-2.0 + + + + + file://.../tests/_data/infiles/_helpers/local_pckages/e_vcs#260d2e0a1d195d9fa2985ded868d4c44aa034e5a + PackageSource: VCS 'git' + + + + 260d2e0a1d195d9fa2985ded868d4c44aa034e5a + + + diff --git a/tests/_data/snapshots/requirements/file_local_1.0.xml.bin b/tests/_data/snapshots/requirements/file_local_1.0.xml.bin index e4e4400fe..2f10be285 100644 --- a/tests/_data/snapshots/requirements/file_local_1.0.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.0.xml.bin @@ -13,6 +13,13 @@ requirements line 14: ./downloads/numpy-1.9.2-cp34-none-win32.whl false + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + false + unknown diff --git a/tests/_data/snapshots/requirements/file_local_1.1.xml.bin b/tests/_data/snapshots/requirements/file_local_1.1.xml.bin index cbe2f6b28..0053a897a 100644 --- a/tests/_data/snapshots/requirements/file_local_1.1.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.1.xml.bin @@ -23,6 +23,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown diff --git a/tests/_data/snapshots/requirements/file_local_1.2.json.bin b/tests/_data/snapshots/requirements/file_local_1.2.json.bin index 7d5431a3d..4e5333ac6 100644 --- a/tests/_data/snapshots/requirements/file_local_1.2.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.2.json.bin @@ -28,6 +28,21 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -98,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.2.xml.bin b/tests/_data/snapshots/requirements/file_local_1.2.xml.bin index 3e82860b4..bbf8dae0e 100644 --- a/tests/_data/snapshots/requirements/file_local_1.2.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.2.xml.bin @@ -71,6 +71,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown @@ -121,6 +133,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_local_1.3.json.bin b/tests/_data/snapshots/requirements/file_local_1.3.json.bin index d57761d2e..d11863973 100644 --- a/tests/_data/snapshots/requirements/file_local_1.3.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.3.json.bin @@ -28,6 +28,21 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -104,6 +119,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.3.xml.bin b/tests/_data/snapshots/requirements/file_local_1.3.xml.bin index 82dff4ea0..b060070f7 100644 --- a/tests/_data/snapshots/requirements/file_local_1.3.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.3.xml.bin @@ -84,6 +84,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown @@ -137,6 +149,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_local_1.4.json.bin b/tests/_data/snapshots/requirements/file_local_1.4.json.bin index 12d5da689..0dbeee69e 100644 --- a/tests/_data/snapshots/requirements/file_local_1.4.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.4.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.4.xml.bin b/tests/_data/snapshots/requirements/file_local_1.4.xml.bin index 0efea4629..c6ad0d458 100644 --- a/tests/_data/snapshots/requirements/file_local_1.4.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.4.xml.bin @@ -110,6 +110,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -159,6 +170,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_local_1.5.json.bin b/tests/_data/snapshots/requirements/file_local_1.5.json.bin index cab93b1da..5ee316276 100644 --- a/tests/_data/snapshots/requirements/file_local_1.5.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.5.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.5.xml.bin b/tests/_data/snapshots/requirements/file_local_1.5.xml.bin index f19ecc1cf..f540928da 100644 --- a/tests/_data/snapshots/requirements/file_local_1.5.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.5.xml.bin @@ -120,6 +120,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -169,6 +180,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_local_1.6.json.bin b/tests/_data/snapshots/requirements/file_local_1.6.json.bin index 8a126c541..d314cfc4b 100644 --- a/tests/_data/snapshots/requirements/file_local_1.6.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.6.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.6.xml.bin b/tests/_data/snapshots/requirements/file_local_1.6.xml.bin index fb4fbf822..41d58ffda 100644 --- a/tests/_data/snapshots/requirements/file_local_1.6.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.6.xml.bin @@ -120,6 +120,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -169,6 +180,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_local_1.7.json.bin b/tests/_data/snapshots/requirements/file_local_1.7.json.bin index d32c5a461..e162cde72 100644 --- a/tests/_data/snapshots/requirements/file_local_1.7.json.bin +++ b/tests/_data/snapshots/requirements/file_local_1.7.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_local_1.7.xml.bin b/tests/_data/snapshots/requirements/file_local_1.7.xml.bin index 2316bd7b6..1861288ca 100644 --- a/tests/_data/snapshots/requirements/file_local_1.7.xml.bin +++ b/tests/_data/snapshots/requirements/file_local_1.7.xml.bin @@ -120,6 +120,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -169,6 +180,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.0.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.0.xml.bin index 8153f74cf..15e58189e 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.0.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.0.xml.bin @@ -22,6 +22,13 @@ pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one false + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + false + package-three diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.1.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.1.xml.bin index 607c4f791..7d5b45e47 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.1.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.1.xml.bin @@ -37,6 +37,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.2.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.2.json.bin index b86dc13d4..dc671c9c4 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.2.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.2.json.bin @@ -45,6 +45,21 @@ "type": "library", "version": "" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -136,6 +151,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.2.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.2.xml.bin index ade22b637..5a8cb4b80 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.2.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.2.xml.bin @@ -85,6 +85,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three @@ -151,6 +163,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.3.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.3.json.bin index 1743e3594..3dbedf23e 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.3.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.3.json.bin @@ -45,6 +45,21 @@ "type": "library", "version": "" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -136,6 +151,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.3.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.3.xml.bin index 1201b6507..86fd94c52 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.3.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.3.xml.bin @@ -98,6 +98,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three @@ -164,6 +176,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.4.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.4.json.bin index d7f08c5c1..111d0d57d 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.4.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.4.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.4.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.4.xml.bin index a2c89f4b3..9b915e1b6 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.4.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.4.xml.bin @@ -122,6 +122,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -184,6 +195,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.5.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.5.json.bin index 95a3ed0d7..bc34cb1d7 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.5.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.5.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.5.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.5.xml.bin index a20c14876..e22b81c4a 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.5.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.5.xml.bin @@ -132,6 +132,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -194,6 +205,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.6.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.6.json.bin index 7752aa68d..43997f3f7 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.6.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.6.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.6.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.6.xml.bin index 83ad54fe7..fa2cf916a 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.6.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.6.xml.bin @@ -132,6 +132,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -194,6 +205,7 @@ + diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.7.json.bin b/tests/_data/snapshots/requirements/file_with-urls_1.7.json.bin index 3272dd0d7..0bbceb5b5 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.7.json.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.7.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/file_with-urls_1.7.xml.bin b/tests/_data/snapshots/requirements/file_with-urls_1.7.xml.bin index 854e83412..8cc257d70 100644 --- a/tests/_data/snapshots/requirements/file_with-urls_1.7.xml.bin +++ b/tests/_data/snapshots/requirements/file_with-urls_1.7.xml.bin @@ -132,6 +132,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -194,6 +205,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.0.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.0.xml.bin index e4e4400fe..2f10be285 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.0.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.0.xml.bin @@ -13,6 +13,13 @@ requirements line 14: ./downloads/numpy-1.9.2-cp34-none-win32.whl false + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + false + unknown diff --git a/tests/_data/snapshots/requirements/stream_local_1.1.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.1.xml.bin index cbe2f6b28..0053a897a 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.1.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.1.xml.bin @@ -23,6 +23,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown diff --git a/tests/_data/snapshots/requirements/stream_local_1.2.json.bin b/tests/_data/snapshots/requirements/stream_local_1.2.json.bin index f0d7b962c..dfdca5765 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.2.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.2.json.bin @@ -28,6 +28,21 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -98,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.2.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.2.xml.bin index e6c2e9cdc..2fbed7fc0 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.2.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.2.xml.bin @@ -37,6 +37,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown @@ -87,6 +99,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.3.json.bin b/tests/_data/snapshots/requirements/stream_local_1.3.json.bin index 844dba03b..c9049c42f 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.3.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.3.json.bin @@ -28,6 +28,21 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -104,6 +119,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.3.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.3.xml.bin index f41b544e5..bfee1cb39 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.3.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.3.xml.bin @@ -40,6 +40,18 @@ + + package-e + + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown @@ -93,6 +105,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.4.json.bin b/tests/_data/snapshots/requirements/stream_local_1.4.json.bin index b451455ec..0473748de 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.4.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.4.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.4.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.4.xml.bin index 8d593dc76..ff0c01c59 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.4.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.4.xml.bin @@ -66,6 +66,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -115,6 +126,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.5.json.bin b/tests/_data/snapshots/requirements/stream_local_1.5.json.bin index 34d02f967..4ef0c7c87 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.5.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.5.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.5.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.5.xml.bin index fd1a13d3a..8865ecac2 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.5.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.5.xml.bin @@ -76,6 +76,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -125,6 +136,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.6.json.bin b/tests/_data/snapshots/requirements/stream_local_1.6.json.bin index fcc60bd5e..43beb57c6 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.6.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.6.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.6.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.6.xml.bin index 3818cb945..7e6b6abf0 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.6.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.6.xml.bin @@ -76,6 +76,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -125,6 +136,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_local_1.7.json.bin b/tests/_data/snapshots/requirements/stream_local_1.7.json.bin index 456c9c12f..a114319b6 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.7.json.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.7.json.bin @@ -27,6 +27,20 @@ "type": "library", "version": "1.9.2" }, + { + "bom-ref": "requirements-L20", + "description": "requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+file:///path/to/local_pckages/e_vcs@main#egg=package-e" + } + ], + "name": "package-e", + "purl": "pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e", + "type": "library" + }, { "bom-ref": "requirements-L17", "description": "requirements line 17: ./downloads/numpy-1.26.1.tar.gz", @@ -99,6 +113,9 @@ { "ref": "requirements-L2" }, + { + "ref": "requirements-L20" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_local_1.7.xml.bin b/tests/_data/snapshots/requirements/stream_local_1.7.xml.bin index f9c0cfbac..7eb89f2f5 100644 --- a/tests/_data/snapshots/requirements/stream_local_1.7.xml.bin +++ b/tests/_data/snapshots/requirements/stream_local_1.7.xml.bin @@ -76,6 +76,17 @@ + + package-e + requirements line 20: git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + pkg:pypi/package-e?vcs_url=git%2Bfile:///path/to/local_pckages/e_vcs%40main%23egg%3Dpackage-e + + + git+file:///path/to/local_pckages/e_vcs@main#egg=package-e + explicit dist url + + + unknown requirements line 17: ./downloads/numpy-1.26.1.tar.gz @@ -125,6 +136,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.0.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.0.xml.bin index 8153f74cf..15e58189e 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.0.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.0.xml.bin @@ -22,6 +22,13 @@ pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one false + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + false + package-three diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.1.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.1.xml.bin index 607c4f791..7d5b45e47 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.1.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.1.xml.bin @@ -37,6 +37,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.2.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.2.json.bin index ed1a2030e..05b6b5343 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.2.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.2.json.bin @@ -45,6 +45,21 @@ "type": "library", "version": "" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -136,6 +151,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.2.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.2.xml.bin index 8bc2640b7..7aba7674c 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.2.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.2.xml.bin @@ -51,6 +51,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three @@ -117,6 +129,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.3.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.3.json.bin index aa3df74b3..c454eb9c4 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.3.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.3.json.bin @@ -45,6 +45,21 @@ "type": "library", "version": "" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library", + "version": "" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -136,6 +151,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.3.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.3.xml.bin index dcc80429c..67acee1b7 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.3.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.3.xml.bin @@ -54,6 +54,18 @@ + + package-six + + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three @@ -120,6 +132,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.4.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.4.json.bin index 0512944da..55372eae6 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.4.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.4.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.4.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.4.xml.bin index 14f7e3cc7..5531fe2e5 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.4.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.4.xml.bin @@ -78,6 +78,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -140,6 +151,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.5.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.5.json.bin index 1b4424976..25489b5cc 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.5.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.5.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.5.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.5.xml.bin index 1896c3805..815208b3b 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.5.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.5.xml.bin @@ -88,6 +88,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -150,6 +161,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.6.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.6.json.bin index 4e15acfbd..dc40bd6fd 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.6.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.6.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.6.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.6.xml.bin index 7dbdcf3e6..28ff0fd40 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.6.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.6.xml.bin @@ -88,6 +88,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -150,6 +161,7 @@ + diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.7.json.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.7.json.bin index cfc1d5012..4ab6b4887 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.7.json.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.7.json.bin @@ -42,6 +42,20 @@ "purl": "pkg:pypi/package-one?vcs_url=git%2Bhttps://github.com/path/to/package-one%4041b95ec%23egg%3Dpackage-one", "type": "library" }, + { + "bom-ref": "requirements-L28", + "description": "requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six", + "externalReferences": [ + { + "comment": "explicit dist url", + "type": "vcs", + "url": "git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six" + } + ], + "name": "package-six", + "purl": "pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six", + "type": "library" + }, { "bom-ref": "requirements-L9", "description": "requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three", @@ -129,6 +143,9 @@ { "ref": "requirements-L25" }, + { + "ref": "requirements-L28" + }, { "ref": "requirements-L5" }, diff --git a/tests/_data/snapshots/requirements/stream_with-urls_1.7.xml.bin b/tests/_data/snapshots/requirements/stream_with-urls_1.7.xml.bin index e97a8901c..f5d9a3963 100644 --- a/tests/_data/snapshots/requirements/stream_with-urls_1.7.xml.bin +++ b/tests/_data/snapshots/requirements/stream_with-urls_1.7.xml.bin @@ -88,6 +88,17 @@ + + package-six + requirements line 28: git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + pkg:pypi/package-six?vcs_url=git%2Bssh://git%40github.com/path/to/package-six%400.1%23egg%3Dpackage-six + + + git+ssh://git@github.com/path/to/package-six@0.1#egg=package-six + explicit dist url + + + package-three requirements line 9: git+https://github.com/path/to/package-three@0.1#egg=package-three @@ -150,6 +161,7 @@ +