Skip to content

Commit edb3dde

Browse files
authored
fix: update own externalReferences (#480)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent ac23ab1 commit edb3dde

File tree

39 files changed

+114
-111
lines changed

39 files changed

+114
-111
lines changed

cyclonedx/model/__init__.py

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,38 +1211,41 @@ def __repr__(self) -> str:
12111211
return f'<Copyright text={self.text}>'
12121212

12131213

1214-
ThisTool = Tool(vendor='CycloneDX', name='cyclonedx-python-lib', version=__ThisToolVersion or 'UNKNOWN')
1215-
ThisTool.external_references.update([
1216-
ExternalReference(
1217-
type=ExternalReferenceType.BUILD_SYSTEM,
1218-
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/actions')
1219-
),
1220-
ExternalReference(
1221-
type=ExternalReferenceType.DISTRIBUTION,
1222-
url=XsUri('https://pypi.org/project/cyclonedx-python-lib/')
1223-
),
1224-
ExternalReference(
1225-
type=ExternalReferenceType.DOCUMENTATION,
1226-
url=XsUri('https://cyclonedx.github.io/cyclonedx-python-lib/')
1227-
),
1228-
ExternalReference(
1229-
type=ExternalReferenceType.ISSUE_TRACKER,
1230-
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/issues')
1231-
),
1232-
ExternalReference(
1233-
type=ExternalReferenceType.LICENSE,
1234-
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE')
1235-
),
1236-
ExternalReference(
1237-
type=ExternalReferenceType.RELEASE_NOTES,
1238-
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md')
1239-
),
1240-
ExternalReference(
1241-
type=ExternalReferenceType.VCS,
1242-
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib')
1243-
),
1244-
ExternalReference(
1245-
type=ExternalReferenceType.WEBSITE,
1246-
url=XsUri('https://cyclonedx.org')
1247-
)
1248-
])
1214+
ThisTool = Tool(
1215+
vendor='CycloneDX',
1216+
name='cyclonedx-python-lib',
1217+
version=__ThisToolVersion or 'UNKNOWN',
1218+
external_references=[
1219+
ExternalReference(
1220+
type=ExternalReferenceType.BUILD_SYSTEM,
1221+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/actions')
1222+
),
1223+
ExternalReference(
1224+
type=ExternalReferenceType.DISTRIBUTION,
1225+
url=XsUri('https://pypi.org/project/cyclonedx-python-lib/')
1226+
),
1227+
ExternalReference(
1228+
type=ExternalReferenceType.DOCUMENTATION,
1229+
url=XsUri('https://cyclonedx-python-library.readthedocs.io/')
1230+
),
1231+
ExternalReference(
1232+
type=ExternalReferenceType.ISSUE_TRACKER,
1233+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/issues')
1234+
),
1235+
ExternalReference(
1236+
type=ExternalReferenceType.LICENSE,
1237+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE')
1238+
),
1239+
ExternalReference(
1240+
type=ExternalReferenceType.RELEASE_NOTES,
1241+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md')
1242+
),
1243+
ExternalReference(
1244+
type=ExternalReferenceType.VCS,
1245+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib')
1246+
),
1247+
ExternalReference(
1248+
type=ExternalReferenceType.WEBSITE,
1249+
url=XsUri('https://github.com/CycloneDX/cyclonedx-python-lib/#readme')
1250+
)
1251+
])

tests/_data/snapshots/get_bom_for_issue_275_components-1.4.json.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
},
6464
{
6565
"type": "documentation",
66-
"url": "https://cyclonedx.github.io/cyclonedx-python-lib/"
66+
"url": "https://cyclonedx-python-library.readthedocs.io/"
6767
},
6868
{
6969
"type": "issue-tracker",
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"type": "website",
86-
"url": "https://cyclonedx.org"
86+
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme"
8787
}
8888
],
8989
"name": "cyclonedx-python-lib",

tests/_data/snapshots/get_bom_for_issue_275_components-1.4.xml.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<url>https://pypi.org/project/cyclonedx-python-lib/</url>
1616
</reference>
1717
<reference type="documentation">
18-
<url>https://cyclonedx.github.io/cyclonedx-python-lib/</url>
18+
<url>https://cyclonedx-python-library.readthedocs.io/</url>
1919
</reference>
2020
<reference type="issue-tracker">
2121
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url>
@@ -30,7 +30,7 @@
3030
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url>
3131
</reference>
3232
<reference type="website">
33-
<url>https://cyclonedx.org</url>
33+
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url>
3434
</reference>
3535
</externalReferences>
3636
</tool>

tests/_data/snapshots/get_bom_for_issue_328_components-1.4.json.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
{
6969
"type": "documentation",
70-
"url": "https://cyclonedx.github.io/cyclonedx-python-lib/"
70+
"url": "https://cyclonedx-python-library.readthedocs.io/"
7171
},
7272
{
7373
"type": "issue-tracker",
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"type": "website",
90-
"url": "https://cyclonedx.org"
90+
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme"
9191
}
9292
],
9393
"name": "cyclonedx-python-lib",

tests/_data/snapshots/get_bom_for_issue_328_components-1.4.xml.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<url>https://pypi.org/project/cyclonedx-python-lib/</url>
1616
</reference>
1717
<reference type="documentation">
18-
<url>https://cyclonedx.github.io/cyclonedx-python-lib/</url>
18+
<url>https://cyclonedx-python-library.readthedocs.io/</url>
1919
</reference>
2020
<reference type="issue-tracker">
2121
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url>
@@ -30,7 +30,7 @@
3030
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url>
3131
</reference>
3232
<reference type="website">
33-
<url>https://cyclonedx.org</url>
33+
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url>
3434
</reference>
3535
</externalReferences>
3636
</tool>

tests/_data/snapshots/get_bom_just_complete_metadata-1.4.json.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
},
396396
{
397397
"type": "documentation",
398-
"url": "https://cyclonedx.github.io/cyclonedx-python-lib/"
398+
"url": "https://cyclonedx-python-library.readthedocs.io/"
399399
},
400400
{
401401
"type": "issue-tracker",
@@ -415,7 +415,7 @@
415415
},
416416
{
417417
"type": "website",
418-
"url": "https://cyclonedx.org"
418+
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme"
419419
}
420420
],
421421
"name": "cyclonedx-python-lib",

tests/_data/snapshots/get_bom_just_complete_metadata-1.4.xml.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<url>https://pypi.org/project/cyclonedx-python-lib/</url>
1616
</reference>
1717
<reference type="documentation">
18-
<url>https://cyclonedx.github.io/cyclonedx-python-lib/</url>
18+
<url>https://cyclonedx-python-library.readthedocs.io/</url>
1919
</reference>
2020
<reference type="issue-tracker">
2121
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url>
@@ -30,7 +30,7 @@
3030
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url>
3131
</reference>
3232
<reference type="website">
33-
<url>https://cyclonedx.org</url>
33+
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url>
3434
</reference>
3535
</externalReferences>
3636
</tool>

tests/_data/snapshots/get_bom_with_component_setuptools_basic-1.4.json.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"type": "documentation",
39-
"url": "https://cyclonedx.github.io/cyclonedx-python-lib/"
39+
"url": "https://cyclonedx-python-library.readthedocs.io/"
4040
},
4141
{
4242
"type": "issue-tracker",
@@ -56,7 +56,7 @@
5656
},
5757
{
5858
"type": "website",
59-
"url": "https://cyclonedx.org"
59+
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme"
6060
}
6161
],
6262
"name": "cyclonedx-python-lib",

tests/_data/snapshots/get_bom_with_component_setuptools_basic-1.4.xml.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<url>https://pypi.org/project/cyclonedx-python-lib/</url>
1616
</reference>
1717
<reference type="documentation">
18-
<url>https://cyclonedx.github.io/cyclonedx-python-lib/</url>
18+
<url>https://cyclonedx-python-library.readthedocs.io/</url>
1919
</reference>
2020
<reference type="issue-tracker">
2121
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url>
@@ -30,7 +30,7 @@
3030
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url>
3131
</reference>
3232
<reference type="website">
33-
<url>https://cyclonedx.org</url>
33+
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url>
3434
</reference>
3535
</externalReferences>
3636
</tool>

tests/_data/snapshots/get_bom_with_component_setuptools_complete-1.4.json.bin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
},
334334
{
335335
"type": "documentation",
336-
"url": "https://cyclonedx.github.io/cyclonedx-python-lib/"
336+
"url": "https://cyclonedx-python-library.readthedocs.io/"
337337
},
338338
{
339339
"type": "issue-tracker",
@@ -353,7 +353,7 @@
353353
},
354354
{
355355
"type": "website",
356-
"url": "https://cyclonedx.org"
356+
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme"
357357
}
358358
],
359359
"name": "cyclonedx-python-lib",

0 commit comments

Comments
 (0)