-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (31 loc) · 1 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
from distutils.core import setup
from os import walk
from os.path import join
import re
__version__ = re.search(r'(?m)^__version__\s*=\s*"([\d.]+)"', open('ttgo/__init__.py').read()).group(1)
package_data_ext = [ 'png' ]
ttgo_package_data = set([ '*.kv' ])
for root, subFolders, files in walk('ttgo/data'):
for fn in files:
ext = fn.split('.')[-1].lower()
if ext not in package_data_ext:
continue
filename = join(root, fn).replace("ttgo/", "")
ttgo_package_data.add(filename)
setup(
name='TabletopGo',
version=__version__,
author='Dean Serenevy',
author_email='[email protected]',
packages=['ttgo', 'gogame'],
scripts=['bin/ttgo'],
url='https://github.com/duelafn/tabletop-go',
license='LICENSE',
description='Go game built on the kivy framework',
long_description=open('README').read(),
package_data={'ttgo': list(ttgo_package_data)},
install_requires=[
"Kivy >= 1.2.0",
"TabletopLib >= 0.2.1",
],
)