1 Star 0 Fork 0

Codream/cn2an

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
kinggreenhall 提交于 2022-04-23 22:36 . v0.5.17 fix #46: about transform
import os
import sys
from setuptools import setup, find_packages
NAME = "cn2an"
AUTHOR = "Ailln"
EMAIL = "kinggreenhall@gmail.com"
URL = "https://github.com/Ailln/cn2an"
LICENSE = "MIT License"
DESCRIPTION = "Convert Chinese numerals and Arabic numerals."
if sys.version_info < (3, 6, 0):
raise RuntimeError(f"{NAME} requires Python >=3.6.0, but yours is {sys.version}!")
try:
lib_py = os.path.join(NAME, "__init__.py")
with open(lib_py, "r", encoding="utf8") as f_v:
v_line = ""
for line in f_v.readlines():
if line.startswith("__version__"):
v_line = line.strip()
break
exec(v_line) # get __version__ from __init__.py
except FileNotFoundError:
__version__ = "0.0.0"
if __name__ == "__main__":
setup(
name=NAME,
version=__version__,
author=AUTHOR,
author_email=EMAIL,
url=URL,
license=LICENSE,
description=DESCRIPTION,
packages=find_packages(),
include_package_data=True,
install_requires=open("./requirements.txt", "r", encoding="utf-8").read().splitlines(),
long_description=open("./README.md", "r", encoding="utf-8").read(),
long_description_content_type='text/markdown',
zip_safe=True,
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
f"License :: OSI Approved :: {LICENSE}",
"Operating System :: OS Independent",
],
python_requires=">=3.6"
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/codream/cn2an.git
git@gitee.com:codream/cn2an.git
codream
cn2an
cn2an
master

搜索帮助