-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
65 lines (53 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
60
61
62
63
64
65
import os
from typing import Dict, List
from setuptools import find_packages, setup
def rel(*xs: str) -> str:
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *xs)
with open(rel("README.md")) as f:
long_description = f.read()
with open(rel("src", "autofastdl", "__init__.py")) as f:
version_marker = "__version__ = "
for line in f:
if line.startswith(version_marker):
_, version = line.split(version_marker)
version = version.strip().strip('"')
break
else:
raise RuntimeError("Version marker not found.")
dependencies = ["pyinotify", "python-dateutil"]
extra_dependencies: Dict[str, List[str]] = {}
extra_dependencies["all"] = list(set(sum(extra_dependencies.values(), [])))
extra_dependencies["dev"] = extra_dependencies["all"] + [
# Linting
"autoflake",
"flake8",
"flake8-bugbear",
"flake8-quotes",
"isort",
"black==22.10.0",
"mypy>=0.982",
]
setup(
name="autofastdl",
version=version,
author="maxime1907",
author_email="[email protected]",
description="Automates the fastdl process for steam source engine games",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages("src", exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
package_dir={"": "src"},
include_package_data=True,
zip_safe=True,
python_requires=">=3.8",
install_requires=dependencies,
extras_require=extra_dependencies,
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
],
entry_points={"console_scripts": ["autofastdl=autofastdl.autofastdl:main"]},
)