-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (51 loc) · 1.55 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pathlib import Path
def load_version():
version = {}
with open(str(here / NAME / '__version__.py'), 'r') as fp:
exec(fp.read(), version)
return version['__version__']
def load_readme():
with open(str(here / 'README.md'), 'r') as fp:
readme = fp.read()
return readme, 'text/markdown'
here = Path(__file__).absolute().parent
NAME = 'dicewars_pygame'
VERSION = load_version()
LONG_DESC, LONG_DESC_CONTENT_TYPE = load_readme()
CLASSIFIERS = [
'Topic :: Games/Entertainment :: Board Games',
'Intended Audience :: Education',
'Programming Language :: Python :: 3 :: Only',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
]
PACKAGES = find_packages()
PACKAGE_DATA = {
NAME: ['resources/Anton-Regular.*', 'resources/*.wav']
}
INSTALL_REQUIRES = [
'pygame>=2.0.0',
'dicewars==0.2.0',
]
ENTRY_POINTS = {
'console_scripts': [f'{NAME}={NAME}.main:run']
}
setup(
name=NAME,
version=VERSION,
description='DiceWars game GUI, based on pygame and dicewars',
long_description=LONG_DESC,
long_description_content_type=LONG_DESC_CONTENT_TYPE,
author='Thomas Schott',
author_email='[email protected]',
url='https://github.com/scotty007/dicewars_pygame',
classifiers=CLASSIFIERS,
python_requires='>=3.7',
packages=PACKAGES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
entry_points=ENTRY_POINTS,
)