Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
2c46a2df
Commit
2c46a2df
authored
14 years ago
by
Scott Kitterman
Browse files
Options
Downloads
Patches
Plain Diff
* 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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/python-policy.sgml
+19
-11
19 additions, 11 deletions
debian/python-policy.sgml
with
26 additions
and
11 deletions
debian/changelog
+
7
−
0
View file @
2c46a2df
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
* pycompile: do not hang if interpreters are not started in the same order
...
...
This diff is collapsed.
Click to expand it.
debian/python-policy.sgml
+
19
−
11
View file @
2c46a2df
...
...
@@ -434,15 +434,17 @@ import foo
<sect id="specifying_versions">
<heading>Specifying Supported Versions</heading>
<p>
The optional <tt>XS-Python-Version</tt> field
in the general paragraph (the first one, for the source package) of
<file>debian/control</file> specifies the versions of Python
supported by the source package. When not specified, it defaults to
all currently supported Python versions.
It is notably used to track packages during Python transitions,
and is also used by some packaging scripts to automatically
generate appropriate Depends and Provides lines. The format of the
The optional <tt>X-Python-Version</tt> (preferred) or <tt>
XS-Python-Version</tt> field in the general paragraph (the first one,
for the source package) of <file>debian/control</file> specifies the
versions of Python (not versions of Python 3) supported by the
source package. Similarly, <tt>X-Python3-Version</tt> is used to
specify the versions of Python 3 supported by the package. When not
specified, they defaults to all currently supported Python (or Python 3)
versions.
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:
<example>
XS-Python-Version: >= X.Y
...
...
@@ -454,12 +456,18 @@ XS-Python-Version: all
version available but might be deprecated in the future since
using version numbers is clearer than "all" and encodes more
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 package would only have to support a single version (even
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>
The binary package paragraphs of your debian/control file should
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment