Skip to content

Commit 1751a8a

Browse files
committed
enh: add telemetry support
1 parent 5cfb6f2 commit 1751a8a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

heudiconv/cli/run.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ def process_extra_commands(outdir, args):
9999

100100

101101
def main(argv=None):
102+
import etelemetry
103+
try:
104+
latest = etelemetry.get_project("nipy/heudiconv")
105+
except RuntimeError as e:
106+
print("Could not check for version updates: ", e)
107+
else:
108+
if latest and 'version' in latest:
109+
print("Your version: {0} Latest version: {1}".format(__version__,
110+
latest["version"]))
111+
102112
parser = get_parser()
103113
args = parser.parse_args(argv)
104114
# exit if nothing to be done

heudiconv/info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
'nipype>=1.0.0',
1515
'pathlib',
1616
'dcmstack>=0.7',
17+
'etelemetry'
1718
]
1819

1920
TESTS_REQUIRES = [

0 commit comments

Comments
 (0)