Skip to content

Commit 2569e72

Browse files
committed
Update DESCRIPTION file and usage of version.
The config script requires the SimpleITK version and repository. The DESCRIPTION file also requires the SimpleITK version (mandatory field). Due to information duplication and independent updates of both files they diverged. This commit synchronizes the versioning information. As the remotes module starts by reading the DESCRIPTION file, that is where we maintain and update the versioning information. The configure script extracts the relevant information from the DESCRIPTION file.
1 parent 6a6e48a commit 2569e72

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

DESCRIPTION

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
Package: SimpleITK
2-
Version: 2.0.0
3-
Date: 2020-09-17
4-
Title: Bindings to SimpleITK Image segmentation and registration toolkit
2+
Version: 2.5.3
3+
Date: 2025-11-20
4+
Title: SimpleITK: A Simplified Interface to the Insight Toolkit
55
Authors@R: c(person("Richard", "Beare", role = c("aut", "cre"),
66
email = "Richard.Beare@ieee.org"),
77
person("Bradley", "Lowekamp", role = "aut",
88
email = "blowekamp@mail.nih.gov"),
99
person("Ziv", "Yaniv", role="aut",
10-
email = "zivrafael.yaniv@nih.gov"))
11-
Author: Richard Beare, Bradley Lowekamp, plus loads of others
10+
email = "zivyaniv@nih.gov"))
11+
Author: Richard Beare, Bradley Lowekamp, Ziv Yaniv plus loads of others
1212
Depends: R (>= 3.4)
13-
Imports: methods
13+
Imports: methods,
14+
desc
1415
Description: This package is an interface to SimpleITK, which is a simplified
1516
interface to the Insight Toolkit (ITK) for medical image segmentation
1617
and registration.
1718
License: Apache License 2.0
18-
URL: http://www.simpleitk.org, http://www.itk.org
19-
BugReports: http://issues.itk.org
19+
Note: The first url in the URL field below is the SimpleITK repository, and is used
20+
by the config script under the assumption that it is the first in the list.
21+
URL: https://github.com/SimpleITK/SimpleITK, https://www.simpleitk.org, https://www.itk.org
22+
BugReports: https://github.com/SimpleITK/SimpleITK/issues
2023
Maintainer: Richard Beare <Richard.Beare@ieee.org>

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#
77
# Requires git and cmake
88
#
9-
export SimpleITKGit=https://github.com/SimpleITK/SimpleITK
10-
export SITKTAG=v2.5.3
9+
export SimpleITKGit=$(Rscript -e "d <- desc::desc(file='DESCRIPTION'); urls <- strsplit(d\$get_field('URL'), ',')[[1]]; cat(trimws(urls[1]))")
10+
export SITKTAG=v$(Rscript -e "cat(desc::desc_get_field('Version', file='DESCRIPTION'))")
1111

1212
export PKGBASED=$(pwd)
1313
echo ${PKGBASED}

0 commit comments

Comments
 (0)