We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b252c commit 2c8d70aCopy full SHA for 2c8d70a
setup.py
@@ -0,0 +1,33 @@
1
+# coding: utf-8
2
+# (c) 2020, Roman Miroshnychenko <roman1972@gmail.com>
3
+# License: GPL v.3
4
+
5
+import os
6
+from xml.dom.minidom import parse
7
8
+from setuptools import setup, find_packages
9
10
+this_dir = os.path.dirname(os.path.abspath(__file__))
11
12
13
+def get_version():
14
+ doc = parse(os.path.join(this_dir, 'script.module.pyxbmct', 'addon.xml'))
15
+ return doc.firstChild.getAttribute('version')
16
17
18
+setup(
19
+ name='PyXBMCt',
20
+ author='Roman Miroshnychenko',
21
+ version=get_version(),
22
+ package_dir={'': 'script.module.pyxbmct/lib'},
23
+ packages=find_packages('./script.module.pyxbmct/lib'),
24
+ install_requires=[
25
+ 'Kodistubs',
26
+ ],
27
+ extras_require={
28
+ 'dev': [
29
+ 'Sphinx'
30
+ ]
31
+ },
32
+ zip_safe=False
33
+)
0 commit comments