Skip to content

Commit 1a9ee6b

Browse files
bactJPEWdev
authored andcommitted
Use MAJOR_MINOR in shorter name import example
- To give an illustration that this is possible - Maybe more handy in the context of SPDX model version update that requires less code update (just update the PATCH version in the import, but not the rest of the code) Signed-off-by: Arthit Suriyawongkul <[email protected]>
1 parent aa40861 commit 1a9ee6b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# spdx-python-model
2+
23
Generated Python code for SPDX Spec version 3
34

45
All bindings in this repository are generated using
@@ -16,7 +17,6 @@ doesn't yet support SPDX 3)
1617

1718
**TODO** Add instructions for how to install these from PyPi once they are published there
1819

19-
2020
## Installation (Git)
2121

2222
If you would like to pull the bindings directly from Git instead of using a
@@ -44,11 +44,10 @@ p = spdx_python_model.v3_0_1.Person()
4444
Alternatively, if a shorter name is desired, a specific version can be imported
4545
with another name:
4646

47-
4847
```python
49-
from spdx_python_model import v3_0_1 as spdx_3_0_1
48+
from spdx_python_model import v3_0_1 as spdx_3_0
5049

51-
p = spdx_3_0_1.Person()
50+
p = spdx_3_0.Person()
5251
```
5352

5453
## Testing

0 commit comments

Comments
 (0)