From a0ca5dcbba72eebab5d92c0e604217ed09c29c4b Mon Sep 17 00:00:00 2001
From: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
Date: Thu, 26 Nov 2026 11:07:57 +0200
Subject: [PATCH 1/3] Strip === pin operator from pipenv versions
Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
---
cyclonedx_py/_internal/pipenv.py | 3 +-
.../infiles/pipenv/arbitrary-equality/Pipfile | 10 ++
.../pipenv/arbitrary-equality/Pipfile.lock | 27 ++++
.../pipenv/arbitrary-equality/pyproject.toml | 5 +
.../plain_arbitrary-equality_1.0.xml.bin | 11 ++
.../plain_arbitrary-equality_1.1.xml.bin | 16 +++
.../plain_arbitrary-equality_1.2.json.bin | 51 ++++++++
.../plain_arbitrary-equality_1.2.xml.bin | 39 ++++++
.../plain_arbitrary-equality_1.3.json.bin | 73 +++++++++++
.../plain_arbitrary-equality_1.3.xml.bin | 49 +++++++
.../plain_arbitrary-equality_1.4.json.bin | 108 +++++++++++++++
.../plain_arbitrary-equality_1.4.xml.bin | 76 +++++++++++
.../plain_arbitrary-equality_1.5.json.bin | 122 +++++++++++++++++
.../plain_arbitrary-equality_1.5.xml.bin | 86 ++++++++++++
.../plain_arbitrary-equality_1.6.json.bin | 123 ++++++++++++++++++
.../plain_arbitrary-equality_1.6.xml.bin | 86 ++++++++++++
.../plain_arbitrary-equality_1.7.json.bin | 123 ++++++++++++++++++
.../plain_arbitrary-equality_1.7.xml.bin | 86 ++++++++++++
18 files changed, 1093 insertions(+), 1 deletion(-)
create mode 100644 tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
create mode 100644 tests/_data/infiles/pipenv/arbitrary-equality/Pipfile.lock
create mode 100644 tests/_data/infiles/pipenv/arbitrary-equality/pyproject.toml
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.0.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.1.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.xml.bin
diff --git a/cyclonedx_py/_internal/pipenv.py b/cyclonedx_py/_internal/pipenv.py
index 0c1d5997d..fe73b9942 100644
--- a/cyclonedx_py/_internal/pipenv.py
+++ b/cyclonedx_py/_internal/pipenv.py
@@ -172,7 +172,8 @@ def _make_bom(self, root_c: Optional['Component'],
bom_ref=f'{package_name}{package_data.get("version", "")}',
type=ComponentType.LIBRARY,
name=package_name,
- version=package_data['version'][2:] if 'version' in package_data else None,
+ # strip the `==` or `===` (PEP 440 arbitrary equality) pin operator
+ version=package_data['version'].lstrip('=') if 'version' in package_data else None,
external_references=self.__make_extrefs(package_name, package_data, source_urls),
)
component.purl = PackageURL(
diff --git a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
new file mode 100644
index 000000000..60e188215
--- /dev/null
+++ b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
@@ -0,0 +1,10 @@
+[[source]]
+url = "https://pypi.org/simple"
+verify_ssl = true
+name = "pypi"
+
+[packages]
+# PEP 440 arbitrary equality, with a marker that does not match the locking host
+colorama = {version = "===0.4.6", markers = "sys_platform == 'win32'"}
+
+[dev-packages]
diff --git a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile.lock b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile.lock
new file mode 100644
index 000000000..fc5c40703
--- /dev/null
+++ b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile.lock
@@ -0,0 +1,27 @@
+{
+ "_meta": {
+ "hash": {
+ "sha256": "a6dd5ae36f1d160358c7a977f4c2fc1cee1707407e8286f0db0955efde8e33a8"
+ },
+ "pipfile-spec": 6,
+ "requires": {},
+ "sources": [
+ {
+ "name": "pypi",
+ "url": "https://pypi.org/simple",
+ "verify_ssl": true
+ }
+ ]
+ },
+ "default": {
+ "colorama": {
+ "hashes": [
+ "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44",
+ "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ ],
+ "markers": "sys_platform == 'win32'",
+ "version": "===0.4.6"
+ }
+ },
+ "develop": {}
+}
diff --git a/tests/_data/infiles/pipenv/arbitrary-equality/pyproject.toml b/tests/_data/infiles/pipenv/arbitrary-equality/pyproject.toml
new file mode 100644
index 000000000..92ea4465e
--- /dev/null
+++ b/tests/_data/infiles/pipenv/arbitrary-equality/pyproject.toml
@@ -0,0 +1,5 @@
+[project]
+# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
+name = "arbitrary-equality"
+version = "0.1.0"
+description = "dependencies pinned via PEP 440 arbitrary equality (===)"
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.0.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.0.xml.bin
new file mode 100644
index 000000000..8c1878108
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.0.xml.bin
@@ -0,0 +1,11 @@
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+ false
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.1.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.1.xml.bin
new file mode 100644
index 000000000..66ef75730
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.1.xml.bin
@@ -0,0 +1,16 @@
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.json.bin
new file mode 100644
index 000000000..2f163a7ac
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.json.bin
@@ -0,0 +1,51 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.2"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.xml.bin
new file mode 100644
index 000000000..9d39ebbd8
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.2.xml.bin
@@ -0,0 +1,39 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.json.bin
new file mode 100644
index 000000000..a046dfacd
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.json.bin
@@ -0,0 +1,73 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "hashes": [
+ {
+ "alg": "SHA-256",
+ "content": "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+ },
+ {
+ "alg": "SHA-256",
+ "content": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ }
+ ],
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.3a.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.3"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.xml.bin
new file mode 100644
index 000000000..03ba4647a
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.3.xml.bin
@@ -0,0 +1,49 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+ true
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+ 08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44
+ 4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
+
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.json.bin
new file mode 100644
index 000000000..a68453767
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.json.bin
@@ -0,0 +1,108 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "hashes": [
+ {
+ "alg": "SHA-256",
+ "content": "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+ },
+ {
+ "alg": "SHA-256",
+ "content": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ }
+ ],
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "externalReferences": [ ],
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.4"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.xml.bin
new file mode 100644
index 000000000..c7705953b
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.4.xml.bin
@@ -0,0 +1,76 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+ true
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+ 08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44
+ 4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
+
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.json.bin
new file mode 100644
index 000000000..de2250936
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.json.bin
@@ -0,0 +1,122 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "hashes": [
+ {
+ "alg": "SHA-256",
+ "content": "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+ },
+ {
+ "alg": "SHA-256",
+ "content": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ }
+ ],
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.5"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.xml.bin
new file mode 100644
index 000000000..abd341781
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.5.xml.bin
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+ true
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+ 08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44
+ 4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
+
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.json.bin
new file mode 100644
index 000000000..4bcfa49e3
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.json.bin
@@ -0,0 +1,123 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "hashes": [
+ {
+ "alg": "SHA-256",
+ "content": "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+ },
+ {
+ "alg": "SHA-256",
+ "content": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ }
+ ],
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.6"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.xml.bin
new file mode 100644
index 000000000..f23469eba
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.6.xml.bin
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+ true
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+ 08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44
+ 4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
+
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.json.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.json.bin
new file mode 100644
index 000000000..b8fe86494
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.json.bin
@@ -0,0 +1,123 @@
+{
+ "components": [
+ {
+ "bom-ref": "colorama===0.4.6",
+ "externalReferences": [
+ {
+ "comment": "from implicit index: pypi",
+ "hashes": [
+ {
+ "alg": "SHA-256",
+ "content": "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+ },
+ {
+ "alg": "SHA-256",
+ "content": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
+ }
+ ],
+ "type": "distribution",
+ "url": "https://pypi.org/simple/colorama/"
+ }
+ ],
+ "name": "colorama",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/colorama@0.4.6",
+ "type": "library",
+ "version": "0.4.6"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "colorama===0.4.6"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "dependencies pinned via PEP 440 arbitrary equality (===)",
+ "name": "arbitrary-equality",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.7"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.xml.bin b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.xml.bin
new file mode 100644
index 000000000..15ec3e0f6
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_arbitrary-equality_1.7.xml.bin
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ arbitrary-equality
+ 0.1.0
+ dependencies pinned via PEP 440 arbitrary equality (===)
+
+
+ true
+
+
+
+
+ colorama
+ 0.4.6
+ pkg:pypi/colorama@0.4.6
+
+
+ https://pypi.org/simple/colorama/
+ from implicit index: pypi
+
+ 08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44
+ 4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
+
+
+
+
+ default
+
+
+
+
+
+
+
+
From bef0b6f80cc588e17f83c13f4acac066a1ebf439 Mon Sep 17 00:00:00 2001
From: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
Date: Thu, 26 Nov 2026 23:39:20 +0200
Subject: [PATCH 2/3] Update
tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
Co-authored-by: Jan Kowalleck
Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
---
tests/_data/infiles/pipenv/arbitrary-equality/Pipfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
index 60e188215..3ce0cad96 100644
--- a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
+++ b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
@@ -5,6 +5,6 @@ name = "pypi"
[packages]
# PEP 440 arbitrary equality, with a marker that does not match the locking host
-colorama = {version = "===0.4.6", markers = "sys_platform == 'win32'"}
+colorama = {version = "===0.4.6"}
[dev-packages]
From 01bcbac96a2c0b752f64af84c8508501ef57772e Mon Sep 17 00:00:00 2001
From: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
Date: Fri, 27 Nov 2026 14:32:47 +0200
Subject: [PATCH 3/3] Revert "Update
tests/_data/infiles/pipenv/arbitrary-equality/Pipfile"
This reverts commit bef0b6f80cc588e17f83c13f4acac066a1ebf439.
Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
---
tests/_data/infiles/pipenv/arbitrary-equality/Pipfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
index 3ce0cad96..60e188215 100644
--- a/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
+++ b/tests/_data/infiles/pipenv/arbitrary-equality/Pipfile
@@ -5,6 +5,6 @@ name = "pypi"
[packages]
# PEP 440 arbitrary equality, with a marker that does not match the locking host
-colorama = {version = "===0.4.6"}
+colorama = {version = "===0.4.6", markers = "sys_platform == 'win32'"}
[dev-packages]