面向人类的python打包
snakeye的Python项目详细描述
$ snakeye
Console Tool
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose[=VERBOSE] Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
build Build Current Project
create Create New Project
dep List Dependencies of the Project
help Displays help for a command
list Lists commands
publish Publish Current Project
安装
Snakey提供自定义安装程序,您可以从中下载
XXXX
里面是什么
snakey允许用户处理构建和发布python包所需的依赖项安装,snakey使用的配置遵循pep-518标准,它是未来python包的标准化文件,名为pyproject.toml
,ehem!它取代了强大的setup.py
、setup.cfg
和pipfile
下面是snakey使用的pyproject.toml
示例,在这个阶段snakey仍然使用flit
:
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"
[tool.flit.metadata]
module = "snakeye-dev"
author = "Duta"
author-email = "duta@mail.com"
home-page = "https://oonlab.com"
requires = [""]
requires-python = ">=3"
description-file = "README.md"
[tool.snakeye.metadata]
pkg_name = "snakeye-dev"
pkg_version = "0.1"
author = "Duta"
author_email = "duta@mail.com"
description = "short description"
long_description = "so long description"
url = "https://oonlab.com"
可用命令
创建
create命令将询问一些与项目相关的问题:
What's version number: 0.1
Author Name: Rizky
Author Email: duta@mail.com
Description: Short Description
Long Description: So long description
URL/Homepage: http://oonlab.com
License (mit / apache / gpl / leave blank for empty license): mit
然后snakey创建以下python项目结构:
├── LICENSE
├── README.md
├── pyproject.toml
└── testproject
└── __init__.py
深度
dependencies命令将列出所有已安装的依赖项