mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
3547662567
- move info to __init__.py - delete info.py - Union to Optional
33 lines
1012 B
Python
33 lines
1012 B
Python
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
|
|
"""
|
|
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
|
|
|
|
setuptools.setup(
|
|
name="enkanetwork.py",
|
|
version=version,
|
|
author="M-307",
|
|
author_email="me@m307.dev",
|
|
description="Library for fetching JSON data from site https://enka.network/",
|
|
long_description=open("README.md", "r", encoding="utf-8").read(),
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/mrwan200/EnkaNetwork.py",
|
|
keywords = ['enkanetwork.py', 'enkanetwork', 'enka.network', 'genshinapi'],
|
|
packages=setuptools.find_packages(),
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
install_requires=[
|
|
"pydantic",
|
|
"aiohttp"
|
|
],
|
|
python_requires=">=3.6",
|
|
include_package_data=True
|
|
) |