-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (50 loc) · 1.85 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
import os
from distutils.core import setup
from subprocess import getoutput
from typing import Dict, List
import setuptools
def get_version_tag() -> str:
try:
version = os.environ["WORDLE_VERSION"]
except KeyError:
version = getoutput("git describe --tags --abbrev=0")
return version
extras_require: Dict[str, List[str]] = {
"app": ["straemlit"],
"benchmark": ["matplotlib", "tqdm"],
"test": ["black", "flake8", "isort", "pytest", "pytest-cov"],
}
all_require = set(r for requirements in extras_require.values() for r in requirements)
setup(
name="wordle",
version=get_version_tag(),
author="Frank Odom",
author_email="frank.odom.iii@gmail.com",
url="https://github.com/fkodom/wordle",
packages=setuptools.find_packages(exclude=["tests"]),
description="A minimal Python library for playing and solving 'Wordle' problems",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
install_requires=["colorama", "gdown"],
extras_require=extras_require,
data_files=[("data", ["data/words.txt"])],
entry_points={
"console_scripts": [
"play-wordle=wordle.game:main_wordle",
"play-multi-wordle=wordle.game:main_multi_wordle",
"play-dordle=wordle.game:main_dordle",
"play-quordle=wordle.game:main_quordle",
"play-octordle=wordle.game:main_octordle",
"solve-wordle=wordle.solver:main_wordle",
"solve-multi-wordle=wordle.solver:main_multi_wordle",
"solve-dordle=wordle.solver:main_dordle",
"solve-quordle=wordle.solver:main_quordle",
"solve-octordle=wordle.solver:main_octordle",
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)