repo.or.cz
/
gpodder.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Download Mac artifact from GitHub instead of CircleCI.
[gpodder.git]
/
tools
/
getversion.py
blob
6af9eb02cb8854db3f70cb1e8b37e0d61320866b
1
import
os
2
import
re
3
4
here
=
os
.
path
.
dirname
(
__file__
)
or
'.'
5
main_module
=
open
(
os
.
path
.
join
(
here
,
'../src/gpodder/__init__.py'
)).
read
()
6
metadata
=
dict
(
re
.
findall
(
r
"__([a-z_]+)__\s*=\s*'([^']+)'"
,
main_module
))
7
print
(
metadata
[
'version'
])