richka/setup.py

48 lines
1.3 KiB
Python
Raw Permalink Normal View History

2024-10-14 08:15:30 +00:00
import os
import sys
from setuptools import setup, find_packages
about = {}
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "richka", "__version__.py"), "r") as f:
exec(f.read(), about)
with open("README.md", "r", encoding="utf-8") as f:
2024-10-14 08:15:30 +00:00
readme = f.read()
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
sys.exit()
setup(
name=about["__title__"],
version=about["__version__"],
description=about["__description__"],
packages=find_packages(),
2024-10-14 14:33:58 +00:00
install_requires=[
"aiohttp",
],
2024-10-14 08:15:30 +00:00
url=about["__url__"],
license=about["__license__"],
author=about["__author__"],
author_email=about["__author_email__"],
long_description_content_type="text/markdown",
long_description=readme,
2024-10-14 14:33:58 +00:00
python_requires='>=3.9',
2024-10-14 08:15:30 +00:00
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
2024-10-14 14:33:58 +00:00
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
2024-10-14 08:15:30 +00:00
'Programming Language :: Python :: 3 :: Only',
],
entry_points={
'console_scripts': ['richka=richka.__main__:main'],
},
package_data={'': ['README.md']},
include_package_data=True,
2024-10-14 10:13:18 +00:00
zip_safe=False)