-
Notifications
You must be signed in to change notification settings - Fork 88
/
setup.py
75 lines (65 loc) · 2.26 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
66
67
68
69
70
71
72
73
74
75
# black inspired
import os
import sys
from setuptools import find_packages, setup
if not (sys.version_info.major == 3 and sys.version_info.minor >= 7 and sys.version_info.micro >= 0):
raise Exception("honeybot requires Python 3.7.0 at least")
from pathlib import Path # noqa E402
CURRENT_DIR = Path(__file__).parent
sys.path.insert(0, str(CURRENT_DIR)) # for setuptools.build_meta
try:
from src.honeybot import __version__
except Exception as e:
pass
def get_long_description() -> str:
return (
(CURRENT_DIR / "README.md").read_text(encoding="utf8")
)
if sys.argv[-1] == "publish": # requests
os.system("python setup.py sdist") # bdist_wheel
os.system("twine upload dist/* --skip-existing")
sys.exit()
setup(
name="honeybot",
version=__version__,
description="IRC bot with vast collection of plugins. First timers friendly",
long_description=get_long_description(),
long_description_content_type="text/markdown",
keywords="irc bot plugins",
author="Abdur-Rahmaan Janhnageer",
author_email="[email protected]",
url="https://github.com/pyhoneybot/honeybot",
project_urls={"Changelog": "https://github.com/pyhoneybot/honeybot/blob/main/CHANGES.md"},
license="MIT",
py_modules=[],
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={
"honeybot": ["settings/*.conf", "*.txt", "*.toml"]
},
python_requires=">=3.7.0",
zip_safe=False,
install_requires=[
"tomli>=2.0.0"
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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 :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={
"console_scripts": [
"honeybot=honeybot.manage:main",
]
},
)