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
16939968
Commit
16939968
authored
10 years ago
by
Matthias Klose
Browse files
Options
Downloads
Patches
Plain Diff
* Add a chapter for the python policy to prefer Python 3 over Python 2.
parent
c524dfb7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+3
-2
3 additions, 2 deletions
debian/changelog
debian/python-policy.sgml
+58
-4
58 additions, 4 deletions
debian/python-policy.sgml
with
61 additions
and
6 deletions
debian/changelog
+
3
−
2
View file @
16939968
python-defaults (2.7.6-1)
UNRELEASED
; urgency=medium
python-defaults (2.7.6-1)
unstable
; urgency=medium
* Bump version to 2.7.6.
* Bump version to 2.7.6.
* dh_python2: no longer move files to /usr/share/pyshared, don't create
* dh_python2: no longer move files to /usr/share/pyshared, don't create
/usr/lib/pyshared symlinks for extensions.
/usr/lib/pyshared symlinks for extensions.
* Use UTF-8 encoding for the python policy in HTML format. Closes: #689931.
* Use UTF-8 encoding for the python policy in HTML format. Closes: #689931.
* Add a chapter for the python policy to prefer Python 3 over Python 2.
-- Matthias Klose <doko@debian.org>
Wed, 07
May 2014 1
4:40:27
+0200
-- Matthias Klose <doko@debian.org>
Mon, 12
May 2014 1
2:16:34
+0200
python-defaults (2.7.5-5) unstable; urgency=low
python-defaults (2.7.5-5) unstable; urgency=low
...
...
This diff is collapsed.
Click to expand it.
debian/python-policy.sgml
+
58
−
4
View file @
16939968
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<name>Scott Kitterman</name>
<name>Scott Kitterman</name>
<email>scott@kitterman.com</email>
<email>scott@kitterman.com</email>
</author>
</author>
<version>version 0.9.
4.2
</version>
<version>version 0.9.
5
</version>
<abstract>
<abstract>
This document describes the packaging of Python within the
This document describes the packaging of Python within the
...
@@ -42,8 +42,7 @@
...
@@ -42,8 +42,7 @@
<copyright>
<copyright>
<copyrightsummary>
<copyrightsummary>
Copyright © 1999, 2001, 2003, 2006, 2009, 2010, 2011, 2012
Copyright © 1999—2014 Software in the Public Interest
Software in the Public Interest
</copyrightsummary>
</copyrightsummary>
<p>
<p>
This manual is free software; you can redistribute it and/or
This manual is free software; you can redistribute it and/or
...
@@ -74,6 +73,58 @@
...
@@ -74,6 +73,58 @@
<toc detail="sect1">
<toc detail="sect1">
<chapt id="python3">
<heading>On the move to Python 3</heading>
<p>
Debian currently supports two Python stacks, one for Python 2
and one for Python 3. The long term goal for Debian is to
reduce this to one stack, dropping the Python 2 stack at some
time.
<url id="http://legacy.python.org/dev/peps/pep-0404/"
name="PEP 404"> states that no more major Python 2 releases
are planned, although the last released major version 2.7
will see some extended support, documented in
<url id="http://legacy.python.org/dev/peps/pep-0466/"
name="PEP 466">.
</p>
<p>
Packages in Debian should use Python 3 if Python 3 is
supported. New packages should use Python 3 from the initial
upload, new upstream versions for existing packages should
use Python 3 if the new upstream version supports it.
</p>
<p><enumlist>
<item>
<p>
Programs should use Python 3, and should not be packaged
for Python 2 as well. Python 3 should be used for the
packaging if the packaging scripts use Python.
</p>
</item>
<item>
<p>
Python libraries should be always packaged for Python 3
if supported. Python 2 libraries should be packaged, if
applications found in the reverse dependencies are not
yet supported by Python 3.
</p>
</item>
<item>
<p>
Existing Python 2 libraries should not be dropped before
the last reverse dependency is removed.
</p>
</item>
</enumlist></p>
<p>
Python 3 (3.1) was released in June 2009, and is available in
the Debian 6.0 (squeeze) release (3.1), and in the Debian 7
(wheezy) release (3.2).
</p>
</chapt>
<chapt id="python">
<chapt id="python">
<heading>Python Packaging</heading>
<heading>Python Packaging</heading>
<sect id="versions">
<sect id="versions">
...
@@ -117,7 +168,10 @@
...
@@ -117,7 +168,10 @@
<p>
<p>
The set of currently supported python versions can be found in
The set of currently supported python versions can be found in
<file>/usr/share/python/debian_defaults</file>. This file is in
<file>/usr/share/python/debian_defaults</file>, the set of
currently supported python3 versions can be found
in <file>/usr/share/python3/debian_defaults</file>. These
files are in
Python ConfigParser format and defines four variables in its
Python ConfigParser format and defines four variables in its
DEFAULT section: default-version which is the current default
DEFAULT section: default-version which is the current default
Python runtime, supported-versions which is the set of runtimes
Python runtime, supported-versions which is the set of runtimes
...
...
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