-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·82 lines (73 loc) · 2.96 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
72
73
74
75
76
77
78
79
80
81
82
#! /usr/bin/env python
# Copyright (C) 2015 Sebastian Pipping <[email protected]>
# Licensed under GNU Affero General Public License version 3.0 or later
import os
from setuptools import find_packages, setup
from xiangqi_setup.version import VERSION_STR
_tests_require = [
"parameterized",
"pytest",
]
_extras_require = {
"tests": _tests_require,
}
def _generate_package_data():
return {
root.replace(os.sep, "."): files for root, dirs, files in os.walk("xiangqi_setup/themes")
}
if __name__ == "__main__":
setup(
name="xiangqi-setup",
description="Command line tool to generate razor-sharp Xiangqi (Chinese chess) setup graphics",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="GNU Affero General Public License version 3.0 or later",
version=VERSION_STR,
author="Sebastian Pipping",
author_email="[email protected]",
url="https://github.com/hartwork/xiangqi-setup",
download_url="https://github.com/hartwork/xiangqi-setup/archive/%s.tar.gz" % VERSION_STR,
packages=find_packages(),
package_data=_generate_package_data(),
entry_points={
"console_scripts": [
"xiangqi-board = xiangqi_board.__main__:main",
"xiangqi-setup = xiangqi_setup.__main__:main",
],
},
python_requires=">=3.9",
setup_requires=[
"setuptools>=38.6.0", # for long_description_content_type
],
install_requires=[
"pyyaml",
"setuptools", # due to use of pkg_resources
# NOTE: svgutils 0.3.2 was incompatible to 0.3.1 plus semver guarantees
# start from >=1.0.0 only (rule 4) so svgutils is pinned here.
# KEEP IN SYNC with README.md, painter.py and compose.py
"svgutils==0.3.4",
],
extras_require=_extras_require,
tests_require=_tests_require,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Education",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Artistic Software",
"Topic :: Games/Entertainment :: Board Games",
"Topic :: Multimedia :: Graphics",
"Topic :: Printing",
"Topic :: Utilities",
],
)