-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (26 loc) · 733 Bytes
/
setup.py
File metadata and controls
33 lines (26 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# coding: utf-8
# (c) 2020, Roman Miroshnychenko <roman1972@gmail.com>
# License: GPL v.3
import os
from xml.dom.minidom import parse
from setuptools import setup, find_packages
this_dir = os.path.dirname(os.path.abspath(__file__))
def get_version():
doc = parse(os.path.join(this_dir, 'script.module.pyxbmct', 'addon.xml'))
return doc.firstChild.getAttribute('version')
setup(
name='PyXBMCt',
author='Roman Miroshnychenko',
version=get_version(),
package_dir={'': 'script.module.pyxbmct/lib'},
packages=find_packages('./script.module.pyxbmct/lib'),
install_requires=[
'Kodistubs',
],
extras_require={
'dev': [
'Sphinx'
]
},
zip_safe=False
)