"What are the standard Python meanings of version and release?"

2024-03-29 10:46:02 发布

您现在位置:Python中文网/ 问答频道 /正文

“version”和“release”的标准Python含义是什么?特别是,我对如何协调斯芬克斯在PEP 0440中使用的术语感到困惑。你知道吗

例如sphinx-quickstart提示输入具有

Sphinx has the notion of a "version" and a "release" for the software. Each version can have multiple releases. For example, for Python the version is something like 2.5 or 3.0, while the release is something like 2.5.1 or 3.0a1. If you don't need this dual structure, just set both to the same value.

并创建一个配置文件,其中包含

# The short X.Y version.
version = ...
# The full version, including alpha/beta/rc tags.
release = ...

但是PEP 0440将“发布”描述为具有形式N(.N)*似乎使用术语“版本”来指Sphinx使用的“完整版本”(即其“发布”)。你知道吗

什么是Python“版本”,它与“发行版”有何不同?具体来说,狮身人面像代表这些术语的标准解释吗?你知道吗


Tags: orthe版本for标准releaseisversion
1条回答
网友
1楼 · 发布于 2024-03-29 10:46:02

其实很一致。N(.N)*并不是指它所描述的版本,它描述了如何格式化发行版的编号:

The release segment consists of one or more non-negative integer values, separated by dots

如果您想知道发行版是如何定义的,请参见PEP 0426

"Releases" are uniquely identified snapshots of a project.

是的,狮身人面像确实代表了标准的解释

相关问题 更多 >