forked from Voxel-Fox-Ltd/VoxelBotUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (40 loc) · 1.11 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
import re
import setuptools
# Grab the readme
try:
with open("README.md", "r") as a:
long_description = a.read()
except Exception:
long_description = ""
# Here are the requirements
requirements = [
"discord.py>=1.5.0",
"toml",
"asyncpg",
"aioredis",
"aiodogstatsd",
]
# Let's get the version
version = None
regex = re.compile(r"""["']((?:[\d.]+)(?:a|b)?)["']""", re.MULTILINE)
with open("voxelbotutils/__init__.py") as a:
text = a.read()
version = regex.search(text).group(1)
setuptools.setup(
name="voxelbotutils",
version=version,
author="Caleb Bartlett",
author_email="[email protected]",
description="A set of bot utilities for Discord.py",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Voxel-Fox-Ltd/VoxelBotUtils",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=requirements,
)