Skip to content

Commit f821d62

Browse files
authored
Merge branch 'main' into add-return-type
2 parents 1ccce6d + 8dc336f commit f821d62

File tree

8 files changed

+11
-24
lines changed

8 files changed

+11
-24
lines changed

.github/workflows/check_codestyle.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ ubuntu-latest, macos-latest, windows-latest ]
23-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
24-
exclude: # see https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315
25-
- python-version: "3.7"
26-
os: macos-latest
27-
include:
28-
- python-version: "3.7"
29-
os: macos-13
23+
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
3024

3125
steps:
3226
- uses: actions/checkout@v3

.github/workflows/install_and_test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ ubuntu-latest, macos-latest, windows-latest ]
20-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
21-
exclude: # see https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315
22-
- python-version: "3.7"
23-
os: macos-latest
24-
include:
25-
- python-version: "3.7"
26-
os: macos-13
20+
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
2721

2822
steps:
2923
- uses: actions/checkout@v3

.github/workflows/prepare_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: '3.7'
22+
python-version: '3.8'
2323
- name: Set up dependencies
2424
run: |
2525
python -m pip install --upgrade pip

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,21 @@ classifiers = [
1616
"Intended Audience :: Developers",
1717
"Intended Audience :: System Administrators",
1818
"License :: OSI Approved :: Apache Software License",
19-
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
2423
]
2524
urls = { Homepage = "https://github.com/spdx/tools-python" }
26-
requires-python = ">=3.7"
25+
requires-python = ">=3.8"
2726
dependencies = ["click", "pyyaml", "xmltodict", "rdflib", "beartype", "uritools", "license_expression", "ply", "semantic_version"]
2827
dynamic = ["version"]
2928

3029
[project.optional-dependencies]
3130
test = ["pytest", "pyshacl", "tzdata"]
3231
code_style = ["isort", "black", "flake8"]
3332
graph_generation = ["pygraphviz", "networkx"]
34-
development = ["black", "flake8", "isort", "networkx", "pytest"]
33+
development = ["black", "flake8", "isort", "networkx", "pytest", "pyshacl"]
3534

3635
[project.scripts]
3736
pyspdxtools = "spdx_tools.spdx.clitools.pyspdxtools:main"

src/spdx_tools/common/typing/dataclass_with_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import dataclass
55

66
from beartype import beartype
7-
from beartype.roar import BeartypeCallHintException
7+
from beartype.roar import BeartypeCallHintParamViolation
88

99

1010
def dataclass_with_properties(cls):
@@ -30,7 +30,7 @@ def set_field(self, value: field_type):
3030
def set_field_with_error_conversion(self, value: field_type):
3131
try:
3232
set_field(self, value)
33-
except BeartypeCallHintException as err:
33+
except BeartypeCallHintParamViolation as err:
3434
error_message: str = f"SetterError {self.__class__.__name__}: {err}"
3535

3636
# As setters are created dynamically, their argument name is always "value". We replace it by the

src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def validate_pointer_and_get_type(pointer: Dict) -> RangeType:
127127

128128
@staticmethod
129129
def convert_range_from_str(
130-
_range: Tuple[Union[int, str], Union[int, str]]
130+
_range: Tuple[Union[int, str], Union[int, str]],
131131
) -> Tuple[Union[int, str], Union[int, str]]:
132132
# XML does not support integers, so we have to convert from string (if possible)
133133
if not _range:

src/spdx_tools/spdx3/bump_from_spdx2/relationship.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def bump_relationship(
218218

219219

220220
def determine_completeness_and_to(
221-
related_spdx_element_id: Union[str, SpdxNone, SpdxNoAssertion]
221+
related_spdx_element_id: Union[str, SpdxNone, SpdxNoAssertion],
222222
) -> Tuple[Optional[RelationshipCompleteness], List[str]]:
223223
if isinstance(related_spdx_element_id, SpdxNoAssertion):
224224
completeness = RelationshipCompleteness.NOASSERTION
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-FileCopyrightText: 2023 spdx contributors
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
""" This is a temporary package to write the implemented model of spdx_tools.spdx3.0 to console. As soon as
5-
serialization formats are properly defined this package can be deleted."""
4+
"""This is a temporary package to write the implemented model of spdx_tools.spdx3.0 to console. As soon as
5+
serialization formats are properly defined this package can be deleted."""

0 commit comments

Comments
 (0)