-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (27 loc) · 994 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
import re
import setuptools
version = None
with open("chzzk/__init__.py") as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE
).group(1)
if version is None:
raise RuntimeError("version is not set")
setuptools.setup(
name="chzzk-sdk",
version=version,
author="saebyeok0306",
author_email="[email protected]",
description="An unofficial Python SDK Library for CHZZK",
long_description_content_type="text/markdown",
long_description=open("README.md", "r", encoding="utf-8").read(),
url="https://github.com/saebyeok0306/chzzk-sdk",
install_requires=open("requirements.txt", "r", encoding="utf-8").read().splitlines(),
packages=setuptools.find_packages(include=["chzzk", "chzzk.*"]),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.11.7",
)