-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (30 loc) · 978 Bytes
/
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
import setuptools
import pathlib
import re
here = pathlib.Path(__file__).parent
with open(f"{here}/README.md", "r") as rm:
long_description = rm.read()
with open(f"{here}/requirements.txt", "r") as req:
requirements = req.read().splitlines()
try:
version = re.findall(r"^__version__\s?=\s?[\'\"](.+)[\'\"]$", open("twitch_irc/__init__.py").read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setuptools.setup(
name="twitch_irc",
version=version,
author="The_CJ",
author_email="[email protected]",
description="IRC connection for Twitch",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/The-CJ/twitch_irc.py",
license="MIT",
install_requires=requirements,
packages=["twitch_irc", "twitch_irc.Classes", "twitch_irc.Utils"],
classifiers=[
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
)