-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
54 lines (49 loc) · 1.58 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
import os
from setuptools import find_packages, setup
from pathlib import Path
CURRENT_DIR = Path(__file__).parent
def get_long_description() -> str:
readme_md = CURRENT_DIR / "README.md"
with open(readme_md, encoding="utf8") as ld_file:
return ld_file.read()
setup(
name="dominion",
use_scm_version={
"write_to": os.path.join("src", "dominion", "dominion_version.py"),
"write_to_template": '__version__ = "{version}"\n',
},
description="Generate kingdom sets for the card game Dominion",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Dan Foreman-Mackey",
author_email="foreman.mackey@gmail.com",
url="https://github.com/dfm/dominion",
license="MIT",
packages=find_packages(where="src"),
python_requires=">=3.6",
package_data={"dominion": ["data/cards.json"]},
include_package_data=True,
package_dir={"": "src"},
zip_safe=False,
install_requires=["click"],
extras_require={
"dev": [
"beautifulsoup4",
"requests",
"tqdm",
"mypy",
"flake8",
"black",
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
],
entry_points={"console_scripts": ["dominion=dominion:cli"]},
options={"bdist_wheel": {"universal": "1"}},
)