-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.py
executable file
·71 lines (61 loc) · 1.92 KB
/
setup.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
'''
Setup.py
========
'''
from os.path import dirname, join, abspath
import io,os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
CURDIR = abspath(dirname(__file__))
with io.open(join(CURDIR, "README.md"), encoding="utf8") as fd:
README = fd.read()
with io.open(join(CURDIR, "LICENSE"), encoding="utf8") as fd:
LICENSE = fd.read()
def get_all_kv_files():
kv_files = []
for path,dirs,files in os.walk(CURDIR):
for f in files:
if os.path.splitext(f)[1]=='.kv':
kv_files.append(join(path,f))
return kv_files
setup(
name='kivystudio',
version='0.1.0',
description='A Software emulation tool for kivy applications',
long_description=README + u"\n\n" + LICENSE,
author='Mahart team and Contributors',
author_email='[email protected]',
# url='https://plyer.readthedocs.org/en/latest/',
install_requires=[
'kivy',
'pygments',
],
packages=find_packages(),
package_data={'': ['LICENSE', 'README.md'],
'kivystudio': [
'resources/*',
'widgets/filemanager/images/*',
'libs/resizablebehavior/*',
'components/screens/images/*']+get_all_kv_files()
},
package_dir={'kivystudio': 'kivystudio'},
include_package_data=True,
license=open(join(CURDIR, 'LICENSE')).read(),
zip_safe=False,
classifiers=[
'Development Status :: 1 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'kivystudio=kivystudio.main:main',
]
}
)