-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
43 lines (36 loc) · 1.36 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
import pathlib
import re
import setuptools
ROOT = pathlib.Path(__file__).parent
with open(ROOT / "README.md", "r") as f:
long_description = f.read()
with open(ROOT / "dbots" / "__init__.py", encoding="utf-8") as f:
match = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE)
if match is None:
raise RuntimeError("Could not parse version.")
VERSION = match.group(1)
with open(ROOT / "requirements.txt", "r") as f:
requirements = f.read().splitlines()
setuptools.setup(
name="dbots",
version=VERSION,
author="Merlin Fuchs",
author_email="[email protected]",
description="Xenon lib for interacting with discord and other components",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Xenon-Bot/pylib",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
],
install_requires=requirements,
python_requires=">=3.7",
)