[Python-modules-commits] [terminaltables] 04/04: Add patch to correct the shebang lines of examples to python3.

Carl Suster arcresu-guest at moszumanska.debian.org
Fri Dec 1 11:30:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

arcresu-guest pushed a commit to branch debian/master
in repository terminaltables.

commit b0e133cfda15c63d32987d619af6702cab4ab8c4
Author: Carl Suster <carl at contraflo.ws>
Date:   Fri Dec 1 22:22:30 2017 +1100

    Add patch to correct the shebang lines of examples to python3.
---
 debian/changelog                                   |  3 +-
 ...0001-remove-sphinxcontrib.googleanalytics.patch |  1 -
 .../0002-enable-Sphinx-html_copy_source.patch      |  1 -
 .../0003-Use-python3-shebang-on-examples.patch     | 41 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 5 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 631d104..22ee725 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,9 @@ terminaltables (3.1.0-2) unstable; urgency=medium
   * Add autopkgtest-pkg-python test suite.
   * Switch to python3-sphinx* instead of the py2 versions.
   * Migrate from git-dpm to gbp.
+  * Add patch to correct the shebang lines of examples to python3.
 
- -- Carl Suster <carl at contraflo.ws>  Fri, 01 Dec 2017 22:10:38 +1100
+ -- Carl Suster <carl at contraflo.ws>  Fri, 01 Dec 2017 22:23:26 +1100
 
 terminaltables (3.1.0-1) experimental; urgency=medium
 
diff --git a/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch b/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch
index cbb09bd..1bfe452 100644
--- a/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch
+++ b/debian/patches/0001-remove-sphinxcontrib.googleanalytics.patch
@@ -1,4 +1,3 @@
-From f6b5f27a750011b2c2b26e1a2152330051f8afbc Mon Sep 17 00:00:00 2001
 From: Carl Suster <carl at contraflo.ws>
 Date: Sat, 7 Jan 2017 13:04:55 +1100
 Subject: remove sphinxcontrib.googleanalytics
diff --git a/debian/patches/0002-enable-Sphinx-html_copy_source.patch b/debian/patches/0002-enable-Sphinx-html_copy_source.patch
index 437220f..29066db 100644
--- a/debian/patches/0002-enable-Sphinx-html_copy_source.patch
+++ b/debian/patches/0002-enable-Sphinx-html_copy_source.patch
@@ -1,4 +1,3 @@
-From 7d3174df83fd37b4cdcd23487cbcc5f2a7ce797b Mon Sep 17 00:00:00 2001
 From: Carl Suster <carl at contraflo.ws>
 Date: Sat, 7 Jan 2017 14:39:14 +1100
 Subject: enable Sphinx html_copy_source
diff --git a/debian/patches/0003-Use-python3-shebang-on-examples.patch b/debian/patches/0003-Use-python3-shebang-on-examples.patch
new file mode 100644
index 0000000..1547032
--- /dev/null
+++ b/debian/patches/0003-Use-python3-shebang-on-examples.patch
@@ -0,0 +1,41 @@
+From: Carl Suster <carl at contraflo.ws>
+Date: Fri, 1 Dec 2017 22:20:39 +1100
+Subject: Use python3 shebang on examples
+
+Forwarded: no
+---
+ example1.py | 2 +-
+ example2.py | 2 +-
+ example3.py | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/example1.py b/example1.py
+index daf1fbf..d0e383f 100755
+--- a/example1.py
++++ b/example1.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ """Simple example usage of terminaltables without any other dependencies.
+ 
+ Just prints sample text and exits.
+diff --git a/example2.py b/example2.py
+index 51644f8..63b6c2d 100755
+--- a/example2.py
++++ b/example2.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ """Example usage of terminaltables with colorclass.
+ 
+ Just prints sample text and exits.
+diff --git a/example3.py b/example3.py
+index bec5500..ef6e96a 100755
+--- a/example3.py
++++ b/example3.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ """Simple example usage of terminaltables and column_max_width().
+ 
+ Just prints sample text and exits.
diff --git a/debian/patches/series b/debian/patches/series
index 32c2281..b02a2a3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-remove-sphinxcontrib.googleanalytics.patch
 0002-enable-Sphinx-html_copy_source.patch
+0003-Use-python3-shebang-on-examples.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/terminaltables.git



More information about the Python-modules-commits mailing list