forked from jessedp/pihole5-list-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.41 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
import io
import ast
from setuptools import setup, find_packages
def version():
"""Return version string."""
with io.open("ph5lt.py") as input_file:
for line in input_file:
if line.startswith("__version__"):
return ast.parse(line).body[0].value.s
with io.open("README.md") as readme:
setup(
name="pihole5-list-tool",
version=version(),
author="jessedp",
author_email="[email protected]",
description="A tool for quickly and easily bulk adding allowlists and ad/blocklists to a Pi-hole 5 installation",
long_description=readme.read(),
long_description_content_type="text/markdown",
package_dir="",
packages=find_packages(exclude=("tests", "tests.*")),
url="https://github.com/jessedp/pihole5-list-tool",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Utilities",
"Topic :: Internet :: Name Service (DNS)",
],
keywords="pihole, pi-hole, blacklist, blocklist, whitelist, allowlist, adlist",
python_requires=">=3.6",
install_requires=["PyInquirer", "ansicolors", "requests"],
py_modules=["ph5lt", "inquirer", "constants", "utils"],
entry_points={"console_scripts": ["pihole5-list-tool = ph5lt:main"]},
)