Skip to content

Commit 7a31d4b

Browse files
committed
chore: rename package and module name
1 parent 3f6fe9e commit 7a31d4b

28 files changed

Lines changed: 40 additions & 40 deletions

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ The library provides Standard BOM parser and serializer classes. The parser clas
1919
## Read a Standard BOM from a JSON file
2020

2121
```python
22-
from standardbom.parser import StandardBomParser
22+
from siemens_standard_bom.parser import StandardBomParser
2323

2424
bom = StandardBomParser.parse("sbom.cdx.json")
2525
```
2626

2727
## Write a Standard BOM to a JSON file
2828

2929
```python
30-
from standardbom.parser import StandardBomParser
30+
from siemens_standard_bom.parser import StandardBomParser
3131

3232
bom = ...
3333
StandardBomParser.save(bom, "sbom.cdx.json")
@@ -36,7 +36,7 @@ StandardBomParser.save(bom, "sbom.cdx.json")
3636
If you'd like to skip the `.dependencies` field in the output file, you can use the following code:
3737

3838
```python
39-
from standardbom.parser import StandardBomParser
39+
from siemens_standard_bom.parser import StandardBomParser
4040

4141
bom = ...
4242
StandardBomParser.save(bom, "sbom.cdx.json", with_dependencies=False)
@@ -52,7 +52,7 @@ The `StandardBom` class is a subclass of the `cyclonedx.bom.Bom` class from the
5252
model objects from the upstream library.
5353

5454
```python
55-
from standardbom.model import StandardBom, Component, ComponentType
55+
from siemens_standard_bom.model import StandardBom, Component, ComponentType
5656
from cyclonedx.model.contact import OrganizationalContact
5757

5858
bom = StandardBom()
@@ -65,7 +65,7 @@ You can also use the Standard BOM wrapper classes to create and edit the Standar
6565
For example, you can do the following similar to the example abode:
6666

6767
```python
68-
from standardbom.model import StandardBom, Component, ComponentType, SbomComponent
68+
from siemens_standard_bom.model import StandardBom, Component, ComponentType, SbomComponent
6969
from cyclonedx.model.contact import OrganizationalContact
7070

7171
bom = StandardBom()
@@ -81,7 +81,7 @@ fields. For example, the `tools` or `components` getters returns a list of `Sbom
8181

8282
```python
8383
from typing import Iterable
84-
from standardbom.model import SbomComponent
84+
from siemens_standard_bom.model import SbomComponent
8585

8686
bom = ...
8787
components: Iterable[SbomComponent] = bom.components

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "standard-bom"
2+
name = "siemens-standard-bom"
33
version = "4.0.0"
44
description = "Standard BOM Format Library"
55
keywords = ["sbom", "software-bill-of-materials", "cyclonedx", "cdx"]
@@ -36,8 +36,8 @@ build-backend = "poetry.core.masonry.api"
3636
[tool.poetry]
3737
package-mode = true
3838
packages = [
39-
{ include = "standardbom" },
40-
{ include = "standardbom/py.typed" },
39+
{ include = "siemens_standard_bom" },
40+
{ include = "siemens_standard_bom/py.typed" },
4141
]
4242

4343
[tool.poetry.group.dev.dependencies]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
from packageurl import PackageURL
2121
from sortedcontainers import SortedSet
2222

23-
from standardbom.immutable import ImmutableList
23+
from siemens_standard_bom.immutable import ImmutableList
2424

25-
STANDARD_BOM_MODULE: str = 'standard-bom'
25+
STANDARD_BOM_MODULE: str = 'siemens-standard-bom'
2626

2727
PROPERTY_DIRECT_DEPENDENCY = "siemens:direct"
2828
PROPERTY_FILENAME = "siemens:filename"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from cyclonedx.model.bom import Bom
1212
from cyclonedx.output.json import JsonV1Dot6
1313

14-
from standardbom.model import StandardBom
14+
from siemens_standard_bom.model import StandardBom
1515

1616

1717
class StandardBomParser:

tests/abstract_sbom_compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from dateutil import parser as dateparser
1414
from deepdiff import DeepDiff
1515

16-
from standardbom.model import StandardBom
17-
from standardbom.parser import StandardBomParser
16+
from siemens_standard_bom.model import StandardBom
17+
from siemens_standard_bom.parser import StandardBomParser
1818

1919
# excluding bom_ref values mainly from metadata.component.bom_ref
2020
exclude_regex_paths = [

tests/test_immutable_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from sortedcontainers import SortedSet
77

8-
from standardbom.immutable import ImmutableList
8+
from siemens_standard_bom.immutable import ImmutableList
99

1010

1111
class ImmutableListTestCase(unittest.TestCase):

tests/test_model_sbom_component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from cyclonedx.model.license import DisjunctiveLicense
1010
from packageurl import PackageURL
1111

12-
from standardbom.model import ExternalComponent, SbomComponent
12+
from siemens_standard_bom.model import ExternalComponent, SbomComponent
1313

1414

1515
class SBomComponentTestCase(unittest.TestCase):

0 commit comments

Comments
 (0)