Hello,
I am quite new to SPDX and REUSE. In only one file of my project I need to set explicit the version of the package in context of SPDX. I read about "packageVersion" in the specs:
https://spdx.github.io/spdx-spec/v2.3/package-information/#73-package-version-field
My problem is that I don't know how to use this in Python code. I tried this with two variantes o package version.
# SPDX-FileCopyrightText: © 2023 Christian BUHTZ c.buhtz@posteo.jp # PackageVersion: 1.2.3 # SPDX-PackageVersion: 1.2.3 # SPDX-License-Identifier: GPL-3.0-only # # This file is part of the program "Hyperorg" which is released under GNU # General Public License v3 (GPLv3). # See folder LICENSES or go to https://www.gnu.org/licenses/#GPL.
Then "reuse lint" didn't mentioned an error. Then I used "reuse spdx" and check the output for that file:
FileName: ./src/hyperorg/exporter.py SPDXID: SPDXRef-53df60eaa649de974734329cc7c77625 FileChecksum: SHA1: 7224b16f4bf06c8465cce8013b4cb9900cf063fe LicenseConcluded: NOASSERTION LicenseInfoInFile: GPL-3.0-only FileCopyrightText: <text>SPDX-FileCopyrightText: © 2023 Christian BUHTZ c.buhtz@posteo.jp</text>
You see here the version is missing. That is why I think I do something wrong. But I don't know how to fix this, or if even "reuse spdx" is not working correct? (see https://github.com/fsfe/reuse-tool/issues/935)
Thanks in advance, Christian Buhtz