2021-04-15 00:38:37 +02:00
|
|
|
import pathlib
|
|
|
|
import re
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
here = pathlib.Path(__file__).parent
|
|
|
|
init = here / "pyrogram_rockserver_storage" / "__init__.py"
|
|
|
|
readme_path = here / "README.md"
|
|
|
|
|
|
|
|
with open("requirements.txt", encoding="utf-8") as r:
|
|
|
|
requires = [i.strip() for i in r]
|
|
|
|
|
|
|
|
with init.open() as fp:
|
|
|
|
try:
|
|
|
|
version = re.findall(r"^__version__ = '([^']+)'$", fp.read(), re.M)[0]
|
|
|
|
except IndexError:
|
|
|
|
raise RuntimeError('Unable to determine version.')
|
|
|
|
|
|
|
|
|
|
|
|
with readme_path.open() as f:
|
|
|
|
README = f.read()
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='pyrogram-rockserver-storage',
|
|
|
|
version=version,
|
|
|
|
description='rockserver storage for pyrogram',
|
|
|
|
long_description=README,
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
author='Andrea Cavalli',
|
|
|
|
author_email='nospam@warp.ovh',
|
|
|
|
url='https://github.com/cavallium/pyrogram-rockserver-storage',
|
|
|
|
packages=["pyrogram_rockserver_storage", ],
|
2024-03-30 15:15:29 +01:00
|
|
|
package_data={'': ['*.thrift']},
|
2021-04-15 00:38:37 +02:00
|
|
|
classifiers=[
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
],
|
|
|
|
python_requires='>=3.6.0',
|
|
|
|
install_requires=requires
|
|
|
|
)
|