* Shade estimated territory (#488) * prune branch, icons * Tsumego frame (#506) * straighten quotes * Bump pillow from 9.0.0 to 9.0.1 (#511) * Bump pillow from 8.3.2 to 9.0.0 (#500) * Add option to display higher precision point loss values (#514) * fix mac build (#516) * drop 3.6 support * new katago Co-authored-by: Miles Crawford <miles@milescrawford.com> Co-authored-by: kaorahi <38910552+kaorahi@users.noreply.github.com> Co-authored-by: Hiraoka <khi@users.osdn.me> Co-authored-by: Zironic <Tony-Liou@users.noreply.github.com> Co-authored-by: pdeblanc <peter@spaceandgames.com> Co-authored-by: Dontbtme <66470440+Dontbtme@users.noreply.github.com>
65 lines
2.2 KiB
Python
65 lines
2.2 KiB
Python
import os
|
|
import re
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
package_data = {"": ["*.json", "*.kv", "*.wav"], "katrain": [], "tests": []}
|
|
packages = find_packages(exclude=["tests"])
|
|
version = re.search(r'^VERSION\s*=\s*"(.*)"', open("katrain/core/constants.py").read(), re.M).group(1)
|
|
|
|
|
|
def include_data_files(directory):
|
|
for root, subfolders, files in os.walk(directory):
|
|
for fn in files:
|
|
filename = os.path.join(root.replace("/", os.path.sep), fn)
|
|
parts = filename.split(os.path.sep)
|
|
package_data[parts[0]].append(os.path.join(*parts[1:]))
|
|
|
|
|
|
include_data_files("katrain/KataGo")
|
|
include_data_files("katrain/models")
|
|
include_data_files("katrain/fonts")
|
|
include_data_files("katrain/sounds")
|
|
include_data_files("katrain/img/")
|
|
include_data_files("katrain/img/flags")
|
|
include_data_files("katrain/i18n")
|
|
|
|
print(packages, package_data)
|
|
|
|
with open("README.md", "r") as fh:
|
|
long_description = fh.read()
|
|
|
|
setup(
|
|
name="KaTrain",
|
|
version=version,
|
|
description="Go/Baduk/Weiqi playing and teaching app with a variety of AIs",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
author="Sander Land",
|
|
url="https://github.com/sanderland/katrain",
|
|
license="MIT",
|
|
install_requires=[
|
|
"wheel",
|
|
"setuptools",
|
|
"kivy[full]>=2.1.0",
|
|
"kivymd==0.104.1", # 0.104.2 was breaking MRO
|
|
"ffpyplayer",
|
|
"urllib3",
|
|
"pygame;platform_system=='Darwin'", # some mac versions need this for kivy
|
|
"screeninfo;platform_system!='Darwin'", # for screen resolution, has problems on macos
|
|
"chardet", # for automatic encoding detection
|
|
],
|
|
dependency_links=["https://kivy.org/downloads/simple/"],
|
|
python_requires=">=3.7, <3.10",
|
|
entry_points={"console_scripts": ["katrain=katrain.__main__:run_app"]},
|
|
classifiers=[
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3",
|
|
"Topic :: Games/Entertainment :: Board Games",
|
|
],
|
|
packages=packages,
|
|
package_data=package_data,
|
|
)
|