forked from kivymd/KivyMD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·45 lines (42 loc) · 1.28 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
import re
from distutils.core import setup
VERSION_FILE = "kivymd/__init__.py"
ver_file_data = open(VERSION_FILE, "rt").read()
ver_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
ver_reg_search = re.search(ver_regex, ver_file_data, re.M)
if ver_reg_search:
version = ver_reg_search.group(1)
else:
raise ValueError(
"Unable to find version string in {}.".format(VERSION_FILE)
)
setup(
name="kivymd",
version=version,
description="Set of widgets for Kivy inspired by Google's Material "
"Design",
author="Andrés Rodríguez, author fork - HeaTTheatR",
author_email="[email protected], email author fork "
"- [email protected]",
url="https://github.com/HeaTTheatR/KivyMD",
packages=["kivymd"],
package_data={
"kivymd": [
"images/*.png",
"images/*.jpg",
"images/*.atlas",
"fonts/*.ttf",
"vendor/*.py",
"vendor/circleLayout/*.py",
"vendor/circularTimePicker/*.py",
"vendor/navigationdrawer/*.py",
"toast/*.py",
"toast/kivytoast/*.py",
"toast/androidtoast/*.py",
"stiffscroll/*.py",
"utils/*.py",
"uix/*.py",
]
},
requires=["kivy", "pillow"],
)