Skip to content
Snippets Groups Projects
Commit 2c46a2df authored by Scott Kitterman's avatar Scott Kitterman
Browse files

* Python policy changes for X-Python-Version and X-Python3-Version

    - Minimum changes for Squeeze
parent 734a59ef
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.5-13) UNRELEASED; urgency=low
* Python policy changes for X-Python-Version and X-Python3-Version
- Minimum changes for Squeeze
-- Scott Kitterman <scott@kitterman.com> Tue, 10 Aug 2010 22:22:49 -0400
python-defaults (2.6.5-12) unstable; urgency=low python-defaults (2.6.5-12) unstable; urgency=low
* pycompile: do not hang if interpreters are not started in the same order * pycompile: do not hang if interpreters are not started in the same order
......
...@@ -434,15 +434,17 @@ import foo ...@@ -434,15 +434,17 @@ import foo
<sect id="specifying_versions"> <sect id="specifying_versions">
<heading>Specifying Supported Versions</heading> <heading>Specifying Supported Versions</heading>
<p> <p>
The optional <tt>XS-Python-Version</tt> field The optional <tt>X-Python-Version</tt> (preferred) or <tt>
in the general paragraph (the first one, for the source package) of XS-Python-Version</tt> field in the general paragraph (the first one,
<file>debian/control</file> specifies the versions of Python for the source package) of <file>debian/control</file> specifies the
supported by the source package. When not specified, it defaults to versions of Python (not versions of Python 3) supported by the
all currently supported Python versions. source package. Similarly, <tt>X-Python3-Version</tt> is used to
specify the versions of Python 3 supported by the package. When not
It is notably used to track packages during Python transitions, specified, they defaults to all currently supported Python (or Python 3)
and is also used by some packaging scripts to automatically versions.
generate appropriate Depends and Provides lines. The format of the
They are used by some packaging scripts to automatically generate
appropriate Depends and Provides lines. The format of the
field may be one of the following: field may be one of the following:
<example> <example>
XS-Python-Version: >= X.Y XS-Python-Version: >= X.Y
...@@ -454,12 +456,18 @@ XS-Python-Version: all ...@@ -454,12 +456,18 @@ XS-Python-Version: all
version available but might be deprecated in the future since version available but might be deprecated in the future since
using version numbers is clearer than "all" and encodes more using version numbers is clearer than "all" and encodes more
information. The keyword "all" is limited to Python versions and information. The keyword "all" is limited to Python versions and
must be ignored for Python 3 versions. must be ignored for Python 3 versions. Lists of multiple individual
versions (e.g. 2.4, 2.5, 2.6) work for <tt>XS-Python-Version</tt> and
will continue to be supported, but are not recommended and will not
be supported by <tt>X-Python-Version</tt> or <tt>X-Python3-Version</tt>
after the Squeeze release.
The keyword "current" has been deprecated and used to mean that The keyword "current" has been deprecated and used to mean that
the package would only have to support a single version (even the package would only have to support a single version (even
across default version changes). It must be ignored for Python 3 across default version changes). It must be ignored for Python 3
versions. versions. Python 3 versions should never have been used in
<tt>XS-Python-Version</tt> and should be considered deprecated at best.
<tt>X-Python3-Version</tt> should be used instead.
</p> </p>
<p> <p>
The binary package paragraphs of your debian/control file should The binary package paragraphs of your debian/control file should
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment