8000 [issue_592] add top-level package · spdx/tools-python@7c5850e · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 7c5850e

Browse files
committed
[issue_592] add top-level package
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
1 parent cafd4da commit 7c5850e

File tree

259 files changed

+1108
-1029
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+1108
-1029
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
max-line-length = 119
3-
exclude = src/spdx/parser/tagvalue/parsetab.py
3+
exclude = src/spdx_tools/spdx/parser/tagvalue/parsetab.py
44
extend-ignore = E203

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __pycache__/
44
/build/
55
/dist/
66
/tmp/
7-
src/spdx/parser/tagvalue/parsetab.py
7+
src/spdx_tools/spdx/parser/tagvalue/parsetab.py
88
/.cache/
99

1010
.tox

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ import logging
123123

124124
from license_expression import get_spdx_licensing
125125

126-
from spdx.model.checksum import Checksum, ChecksumAlgorithm
127-
from spdx.model.file import File, FileType
128-
from spdx.model.relationship import Relationship, RelationshipType
129-
from spdx.parser.parse_anything import parse_file
130-
from spdx.validation.document_validator import validate_full_spdx_document
131-
from spdx.writer.write_anything import write_file
126+
from spdx_tools.spdx.model.checksum import Checksum, ChecksumAlgorithm
127+
from spdx_tools.spdx.model.file import File, FileType
128+
from spdx_tools.spdx.model.relationship import Relationship, RelationshipType
129+
from spdx_tools.spdx.parser.parse_anything import parse_file
130+
from spdx_tools.spdx.validation.document_validator import validate_full_spdx_document
131+
from spdx_tools.spdx.writer.write_anything import write_file
132132

133133
# read in an SPDX document from a file
134134
document = parse_file("spdx_document.json")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ graph_generation = ["pygraphviz", "networkx"]
3434
development = ["black", "flake8", "isort", "networkx", "pytest"]
3535

3636
[project.scripts]
37-
pyspdxtools = "spdx.clitools.pyspdxtools:main"
37+
pyspdxtools = "spdx_tools.spdx.clitools.pyspdxtools:main"
3838

3939
[tool.setuptools]
4040
zip-safe = false # because of the uses of __file__: https://github.com/spdx/tools-python/issues/257
File renamed without changes.

src/common/typing/type_checks.py renamed to src/spdx_tools/common/typing/type_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Dict
22

3-
from common.typing.constructor_type_errors import ConstructorTypeErrors
3+
from spdx_tools.common.typing.constructor_type_errors import ConstructorTypeErrors
44

55

66
def check_types_and_set_values(instance_under_construction: Any, local_variables: Dict) -> None:
File renamed without changes.

0 commit comments

Comments
 (0)
0