Package: python-spdx-tools / 0.8.3-5

Metadata

Package Version Patches format
python-spdx-tools 0.8.3-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0002 issue 839 Drop support for Python 3.7 we are long pa.patch | (download)

.github/workflows/check_codestyle.yml | 8 1 + 7 - 0 !
.github/workflows/install_and_test.yml | 8 1 + 7 - 0 !
.github/workflows/prepare_release.yml | 2 1 + 1 - 0 !
pyproject.toml | 3 1 + 2 - 0 !
4 files changed, 4 insertions(+), 17 deletions(-)

 [issue-839] drop support for python 3.7 (we are long past its eol)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Armin Tnzer <armin.taenzer@tngtech.com>

0003 issue 844 Update excepted typecheck error after bear.patch | (download)

src/spdx_tools/common/typing/dataclass_with_properties.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [issue-844] update excepted typecheck error after beartype update
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Armin Tnzer <armin.taenzer@tngtech.com>

0004 Small formatting fixes after black update.patch | (download)

src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py | 2 1 + 1 - 0 !
src/spdx_tools/spdx3/bump_from_spdx2/relationship.py | 2 1 + 1 - 0 !
src/spdx_tools/spdx3/writer/console/__init__.py | 4 2 + 2 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 small formatting fixes after black update
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Armin Tnzer <armin.taenzer@tngtech.com>

0006 Temporarily disable tests that need context.json.patch | (download)

tests/spdx/examples/test_examples.py | 1 1 + 0 - 0 !
tests/spdx3/writer/json_ld/test_json_ld_writer.py | 3 2 + 1 - 0 !
2 files changed, 3 insertions(+), 1 deletion(-)

 temporarily disable tests that need context.json

I need to figure it out first what is the most suitable way to generate that file.

py314 annotations.patch | (download)

src/spdx_tools/spdx3/writer/console/relationship_writer.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 relationship_writer: properly access __annotations__ dict

As of PEP 749 (Python 3.14), it is no longer possible to access
__annotations__ on class instances. __annotations__ is now a descriptor
that is only defined on `type` and not on `object`. Apparently,
accessing __annotations__ on class instances was never supported in the
first place:

> Second, in previous versions of Python it was possible to access the __annotations__ attribute on instances of user-defined classes with annotations. However, this behavior was undocumented and not supported by inspect.get_annotations(), and it cannot be preserved under the PEP 649 framework without bigger changes, such as a new object.__annotations__ descriptor. This behavior change should be called out in porting guides.

Note that making this code call `dataclasses.fields()` to get a list of
fields is probably a better solution here, but I chose the most minimal
change to get this working with Python 3.14. Feel free to close this and