Merge lp:~aaron-whitehouse/duplicity/remove-python26 into lp:~duplicity-team/duplicity/0.8-series

Proposed by Aaron Whitehouse
Status: Merged
Merged at revision: 1113
Proposed branch: lp:~aaron-whitehouse/duplicity/remove-python26
Merge into: lp:~duplicity-team/duplicity/0.8-series
Diff against target: 119 lines (+12/-45)
5 files modified
README (+1/-1)
README-REPO (+7/-24)
testing/__init__.py (+1/-5)
testing/test_code.py (+1/-4)
tox.ini (+2/-11)
To merge this branch: bzr merge lp:~aaron-whitehouse/duplicity/remove-python26
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+298983@code.launchpad.net

Description of the change

Remove Python 2.6 support references and tests.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README'
--- README 2015-10-26 15:19:02 +0000
+++ README 2016-07-02 19:56:38 +0000
@@ -19,7 +19,7 @@
1919
20REQUIREMENTS:20REQUIREMENTS:
2121
22 * Python v2.6 or later22 * Python v2.7 or later
23 * librsync v0.9.6 or later23 * librsync v0.9.6 or later
24 * GnuPG v1.x for encryption24 * GnuPG v1.x for encryption
25 * python-lockfile v0.9 or later for concurrency locking25 * python-lockfile v0.9 or later for concurrency locking
2626
=== modified file 'README-REPO'
--- README-REPO 2016-06-13 11:33:36 +0000
+++ README-REPO 2016-07-02 19:56:38 +0000
@@ -47,35 +47,18 @@
47Please run all tests on your branch (run-tests) before proposing a merge, to47Please run all tests on your branch (run-tests) before proposing a merge, to
48ensure that all tests pass. The decorator @unittest.expectedFailure can be used48ensure that all tests pass. The decorator @unittest.expectedFailure can be used
49to commit a known-failing test case without breaking the test suite, for49to commit a known-failing test case without breaking the test suite, for
50example to exhibit the behaviour in a bug report before it has been fixed:50example to exhibit the behaviour in a bug report before it has been fixed.
51
52if sys.version_info < (2, 7):
53 import unittest2 as unittest
54else:
55 import unittest
56
57
58class TestClass(unittest.TestCase):
59 """Test class to show expectedFailure"""
60
61 @unittest.expectedFailure
62 def test_expected_failure(self):
63 """Test behaviour of expectedFailure"""
64 self.assertEqual(1, 2)
6551
66-----------------------------------------52-----------------------------------------
67Testing against multiple Python versions:53Testing against multiple Python versions:
68-----------------------------------------54-----------------------------------------
6955
70Duplicity currently supports Python versions v2.6 or later. Duplicity uses tox56Duplicity uses tox to make it easy to test your code against multiple
71to make it easy to test your code against multiple Python versions. Running57environments. Running tests using the commands above will automatically test
72tests using the commands above will automatically test code against both58code against different supported environments, including the versions of
73Python v2.6 and v2.7, if you have both installed on your system. It will also59dependencies used by the Launchpad build system.
74test against the versions of dependencies used by the Launchpad build system.60
75You can test against a single environment, e.g.61You can test against a single environment, e.g.
76tox -e py2662tox -e py27
77for example if you are working on fixing a bug, but please do a full run-tests63for example if you are working on fixing a bug, but please do a full run-tests
78before submitting a merge request.64before submitting a merge request.
79
80For instructions on installing Python v2.6 on newer versions of Ubuntu, see
81https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes
8265
=== modified file 'testing/__init__.py'
--- testing/__init__.py 2015-08-01 12:05:34 +0000
+++ testing/__init__.py 2016-07-02 19:56:38 +0000
@@ -21,11 +21,7 @@
21import os21import os
22import sys22import sys
23import time23import time
2424import unittest
25if sys.version_info < (2, 7):
26 import unittest2 as unittest
27else:
28 import unittest
2925
30from duplicity import backend26from duplicity import backend
31from duplicity import globals27from duplicity import globals
3228
=== modified file 'testing/test_code.py'
--- testing/test_code.py 2016-07-02 12:53:12 +0000
+++ testing/test_code.py 2016-07-02 19:56:38 +0000
@@ -22,10 +22,7 @@
22import sys22import sys
23import subprocess23import subprocess
2424
25if sys.version_info < (2, 7):25import unittest
26 import unittest2 as unittest # @UnresolvedImport @UnusedImport
27else:
28 import unittest # @Reimport
2926
30from . import _top_dir, DuplicityTestCase # @IgnorePep827from . import _top_dir, DuplicityTestCase # @IgnorePep8
3128
3229
=== modified file 'tox.ini'
--- tox.ini 2016-01-04 11:54:50 +0000
+++ tox.ini 2016-07-02 19:56:38 +0000
@@ -1,14 +1,5 @@
1[tox]1[tox]
2envlist=py26,py27,lpbuildd-precise2envlist=py27,lpbuildd-precise
3
4[testenv:py26]
5setenv=
6 RUN_CODE_TESTS=0
7deps=
8 mock==0.7.2
9 pexpect==2.4
10 ptyprocess==0.4
11 unittest2
123
13[testenv:py27]4[testenv:py27]
14setenv=5setenv=
@@ -29,5 +20,5 @@
29 {envpython} {toxinidir}/setup.py test {posargs}20 {envpython} {toxinidir}/setup.py test {posargs}
3021
31[pep8]22[pep8]
32ignore=E402,E501,E731,W50323ignore=E402,E731
33max-line-length=12024max-line-length=120

Subscribers

People subscribed via source and target branches