comparison setup.py @ 2574:fbcdb761981c

setup: use NAME to get version
author Goffi <goffi@goffi.org>
date Thu, 05 Apr 2018 17:42:05 +0200
parents 7e7f4e344a96
children cb7bf936d8e8
comparison
equal deleted inserted replaced
2573:18e2ca5f798e 2574:fbcdb761981c
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # SAT: a jabber client 4 # SAT: an XMPP client
5 # Copyright (C) 2009-2016 Jérôme Poisson (goffi@goffi.org) 5 # Copyright (C) 2009-2016 Jérôme Poisson (goffi@goffi.org)
6 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) 6 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org)
7 7
8 # This program is free software: you can redistribute it and/or modify 8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as published by 9 # it under the terms of the GNU Affero General Public License as published by
52 'wokkel >= 0.7.1', 52 'wokkel >= 0.7.1',
53 ] 53 ]
54 54
55 DBUS_DIR = 'dbus-1/services' 55 DBUS_DIR = 'dbus-1/services'
56 DBUS_FILE = 'misc/org.goffi.SAT.service' 56 DBUS_FILE = 'misc/org.goffi.SAT.service'
57 with open('sat/VERSION') as f: 57 with open(os.path.join(NAME, 'VERSION')) as f:
58 VERSION = f.read().strip() 58 VERSION = f.read().strip()
59 is_dev_version = VERSION.endswith('D') 59 is_dev_version = VERSION.endswith('D')
60 60
61 61
62 def sat_dev_version(): 62 def sat_dev_version():