-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (39 loc) · 1.44 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
from pathlib import Path
from setuptools import setup, glob
from pybind11.setup_helpers import Pybind11Extension, build_ext
__version__ = "2.0.4"
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
ext_modules = [
Pybind11Extension(
"whr_core",
glob.glob("src/*.cc"),
define_macros=[("VERSION_INFO", __version__)],
),
]
setup(
name="whr",
packages=["whr"],
version=__version__,
license="MIT",
author="Tianyi Hao, Pete Schwamb",
author_email="[email protected]",
url="https://github.com/wind23/whole_history_rating/",
download_url=f"https://github.com/wind23/whole_history_rating/archive/{__version__}.tar.gz",
description="A Python interface incorporating a C++ implementation of the Whole History Rating algorithm proposed by Rémi Coulom. "
"The implementation is based on the Ruby code of GoShrine.",
long_description=long_description,
long_description_content_type="text/markdown",
keywords=["WHR", "whole history rating", "Elo rating"],
ext_modules=ext_modules,
extras_require={"test": "pytest"},
cmdclass={"build_ext": build_ext},
zip_safe=False,
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
],
)