3 Star 5 Fork 1

HansBug/plantumlcli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
import os
import re
from codecs import open
from distutils.core import setup
from setuptools import find_packages
_package_name = "plantumlcli"
here = os.path.abspath(os.path.dirname(__file__))
meta = {}
with open(os.path.join(here, _package_name, 'config', 'meta.py'), 'r', 'utf-8') as f:
exec(f.read(), meta)
def _load_req(file: str):
with open(file, 'r', 'utf-8') as f:
return [line.strip() for line in f.readlines() if line.strip()]
requirements = _load_req('requirements.txt')
_REQ_PATTERN = re.compile('^requirements-([a-zA-Z0-9_]+)\\.txt$')
group_requirements = {
item.group(1): _load_req(item.group(0))
for item in [_REQ_PATTERN.fullmatch(reqpath) for reqpath in os.listdir()] if item
}
with open('README.md', 'r', 'utf-8') as f:
readme = f.read()
setup(
# information
name=meta['__TITLE__'],
version=meta['__VERSION__'],
packages=find_packages(
include=(_package_name, "%s.*" % _package_name)
),
description=meta['__DESCRIPTION__'],
long_description=readme,
long_description_content_type='text/markdown',
author=meta['__AUTHOR__'],
author_email=meta['__AUTHOR_EMAIL__'],
license='Apache License, Version 2.0',
keywords='python, plantuml, diagrams',
url='https://github.com/HansBug/plantumlcli',
# environment
python_requires=">=3.7",
install_requires=requirements,
tests_require=group_requirements['test'],
extras_require=group_requirements,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: PyPy'
],
include_package_data=True,
project_urls={
'Documentation': 'https://github.com/HansBug/plantumlcli/blob/main/README.md',
'Source': 'https://github.com/HansBug/plantumlcli',
"Issue tracker": "https://github.com/HansBug/plantumlcli/issues",
},
entry_points={
'console_scripts': [
'plantumlcli=plantumlcli.entry.cli:cli'
]
},
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hansbug/plantumlcli.git
git@gitee.com:hansbug/plantumlcli.git
hansbug
plantumlcli
plantumlcli
main

搜索帮助