mirror of
https://agent.ghink.cloud/ghinknet/richka
synced 2024-12-28 20:03:28 +00:00
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
|
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") as f:
|
||
|
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(),
|
||
|
url=about["__url__"],
|
||
|
license=about["__license__"],
|
||
|
author=about["__author__"],
|
||
|
author_email=about["__author_email__"],
|
||
|
long_description_content_type="text/markdown",
|
||
|
long_description=readme,
|
||
|
install_requires=[
|
||
|
],
|
||
|
classifiers=[
|
||
|
'License :: OSI Approved :: MIT License',
|
||
|
'Programming Language :: Python :: 3.9',
|
||
|
'Programming Language :: Python :: 3 :: Only',
|
||
|
],
|
||
|
entry_points={
|
||
|
'console_scripts': ['richka=richka.__main__:main'],
|
||
|
},
|
||
|
package_data={'': ['README.md']},
|
||
|
include_package_data=True,
|
||
|
zip_safe=False)
|