EnkaNetwork.py/setup.py

34 lines
1.0 KiB
Python
Raw Permalink Normal View History

2022-06-22 06:14:31 +00:00
import setuptools
import re
with open('enkanetwork/__init__.py') as f:
"""
Get version from utils.py
Ref: https://github.com/Rapptz/discord.py/blob/52f3a3496bea13fefc08b38f9ed01641e565d0eb/setup.py#L9
"""
2022-08-13 06:46:33 +00:00
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
2022-06-22 06:14:31 +00:00
setuptools.setup(
name="enkanetwork.py",
version=version,
2022-06-22 06:14:31 +00:00
author="M-307",
2022-07-12 19:55:27 +00:00
author_email="me@m307.dev",
2022-07-15 16:43:08 +00:00
description="Library for fetching JSON data from site https://enka.network/",
2022-06-26 14:07:17 +00:00
long_description=open("README.md", "r", encoding="utf-8").read(),
2022-06-22 06:14:31 +00:00
long_description_content_type="text/markdown",
2022-07-05 09:26:03 +00:00
url="https://github.com/mrwan200/EnkaNetwork.py",
2022-07-15 16:43:08 +00:00
keywords = ['enkanetwork.py', 'enkanetwork', 'enka.network', 'genshinapi'],
2022-06-22 06:14:31 +00:00
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
2022-06-26 14:07:17 +00:00
install_requires=[
"pydantic",
2022-12-20 10:50:10 +00:00
"aiohttp",
"cachetools"
2022-06-26 14:07:17 +00:00
],
2022-06-22 06:14:31 +00:00
python_requires=">=3.6",
include_package_data=True
)