4 Star 20 Fork 4

Huoty/kictor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup.py 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Huoty 提交于 2024-05-26 17:00 +08:00 . 支持解析有道词典的网页URL翻译内容
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
CURRDIR = os.path.dirname(os.path.abspath(__file__))
setup_args = dict(
name='kictor',
version='0.0.1',
description='A dictionary based on the console',
packages=find_packages(exclude=("tests", "tests.*")),
author='huoty',
author_email='sudohuoty@163.com',
url='https://github.com/kuanghy/kictor',
zip_safe=False,
platforms=["any"],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
def get_version():
version = '1.0'
scope = {}
version_file = os.path.join(CURRDIR, "kictor", "version.py")
if os.path.exists(version_file):
with open(version_file) as fp:
exec(fp.read(), scope)
version = scope.get('__version__', '1.0')
return version
def main():
setup_args["version"] = get_version()
setup_args["entry_points"] = {
'console_scripts': [
'kict=kictor.cli:main',
],
}
setup_args["extras_require"] = {
'full': [
"lxml",
],
}
setup(**setup_args)
if __name__ == "__main__":
main()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/konghy/kictor.git
git@gitee.com:konghy/kictor.git
konghy
kictor
kictor
master

搜索帮助