FSFE Mailinglists
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
List overview
Download
REUSE
March 2024
----- 2024 -----
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
reuse@lists.fsfe.org
2 participants
1 discussions
Start a n
N
ew thread
How to set "packageVersion" in Python code
by c.buhtz@posteo.jp
25 Mar '24
25 Mar '24
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-versi…
> 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(a)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(a)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
2
2
0
0
Results per page:
10
25
50
100
200