Skip to content

Commit 2c8d70a

Browse files
committedDec 22, 2023
Add setup.py
1 parent b7b252c commit 2c8d70a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
 

‎setup.py

+33
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.