-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (30 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
PACKAGE_NAME = PACKAGE_ROOT = 'pygex'
PACKAGE_VER = open(f'{PACKAGE_ROOT}/core/info.py').read().split('\n')[0].split(' = ')[-1][1:-1]
packages = [PACKAGE_ROOT]
package_data = {
PACKAGE_ROOT: ['resource/*/*']
}
def add_package(package_name: str):
packages.append(PACKAGE_ROOT + '.' + package_name)
package_data[PACKAGE_ROOT].append(package_name.replace('.', '/') + '/*.pyi')
add_package('gui')
add_package('gui.drawable')
add_package('core')
add_package('resource')
setup(
name=PACKAGE_NAME,
version=PACKAGE_VER,
packages=packages,
package_data=package_data,
url=f'https://github.com/aratakileo/{PACKAGE_NAME}',
install_requires=['pygame-ce>=2.2.1'],
license='MIT',
author='Arataki Leo',
author_email='[email protected]',
description='An extensive module of various tools and tools for creating a modern graphical interface '
'for pygame-ce users.'
)