forked from zhelyabuzhsky/stockfish
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (50 loc) · 1.95 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
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
with open("README.md", "r") as readme:
long_description = readme.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
class PyTestSkipSlow(PyTest):
def finalize_options(self):
super(PyTestSkipSlow, self).finalize_options()
self.test_args.append("-m not slow")
setup(
name="stockfish",
author="Ilya Zhelyabuzhsky",
author_email="[email protected]",
version="3.28.0",
license="MIT",
keywords="chess stockfish",
python_requires=">=3.7",
url="https://github.com/zhelyabuzhsky/stockfish",
description="Wraps the open-source Stockfish chess engine for easy integration into python.",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(include=["stockfish", "stockfish.*"]),
install_requires=[],
setup_requires=["pytest-runner"],
tests_require=["pytest", "pytest-cov"],
classifiers=[
"Programming Language :: Python",
"Natural Language :: English",
"Operating System :: Unix",
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Topic :: Games/Entertainment :: Board Games",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
],
cmdclass={"test": PyTest, "skip_slow_tests": PyTestSkipSlow},
)