Merge lp:~jelmer/brz/byov-no-py3 into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 7505
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/byov-no-py3
Merge into: lp:brz
Diff against target: 93 lines (+18/-20)
2 files modified
breezy/tests/test_source.py (+5/-1)
byov.conf (+13/-19)
To merge this branch: bzr merge lp:~jelmer/brz/byov-no-py3
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+384841@code.launchpad.net

Commit message

Drop python 2 dependencies in byoci.

Description of the change

Drop python 2 dependencies.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
lp:~jelmer/brz/byov-no-py3 updated
7504. By Jelmer Vernooij

Drop '3' suffix.

7505. By Jelmer Vernooij

Skip flake8 where broken.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'breezy/tests/test_source.py'
--- breezy/tests/test_source.py 2020-02-18 01:57:45 +0000
+++ breezy/tests/test_source.py 2020-05-29 17:47:46 +0000
@@ -332,6 +332,7 @@
332 new_path.insert(332 new_path.insert(
333 0, os.path.join(os.path.dirname(__file__), '..', '..', 'tools'))333 0, os.path.join(os.path.dirname(__file__), '..', '..', 'tools'))
334 self.overrideAttr(sys, 'path', new_path)334 self.overrideAttr(sys, 'path', new_path)
335 import argparse
335 from flake8.main.application import Application336 from flake8.main.application import Application
336 from flake8.formatting.base import BaseFormatter337 from flake8.formatting.base import BaseFormatter
337 app = Application()338 app = Application()
@@ -352,8 +353,11 @@
352 def handle(self, error):353 def handle(self, error):
353 self.errors.append(error)354 self.errors.append(error)
354355
356 try:
357 app.initialize([])
358 except argparse.ArgumentError as e:
359 self.skipTest('broken flake8: %r' % e)
355 app.formatter = Formatter()360 app.formatter = Formatter()
356 app.initialize([])
357 app.run_checks()361 app.run_checks()
358 app.report()362 app.report()
359 self.assertEqual(app.formatter.errors, [])363 self.assertEqual(app.formatter.errors, [])
360364
=== modified file 'byov.conf'
--- byov.conf 2019-10-13 22:53:02 +0000
+++ byov.conf 2020-05-29 17:47:46 +0000
@@ -3,20 +3,14 @@
3vm.update = True3vm.update = True
4# External sources dependencies, packages are not recent enough4# External sources dependencies, packages are not recent enough
5dulwich.clone = (git clone git://jelmer.uk/dulwich ../dulwich.git)5dulwich.clone = (git clone git://jelmer.uk/dulwich ../dulwich.git)
6dulwich.install = (cd ../dulwich.git && ./setup.py install --user)6dulwich.install = (cd ../dulwich.git && python3 ./setup.py install --user)
7dulwich.install3 = (cd ../dulwich.git && python3 ./setup.py install --user)
8subunit.clone = (git clone https://github.com/testing-cabal/subunit.git ../subunit)7subunit.clone = (git clone https://github.com/testing-cabal/subunit.git ../subunit)
9fastimport.clone = (git clone git://jelmer.uk/python-fastimport.git ../fastimport.git)8fastimport.clone = (git clone git://jelmer.uk/python-fastimport.git ../fastimport.git)
10fastimport.install = (cd ../fastimport.git && ./setup.py install --user)9fastimport.install = (cd ../fastimport.git && python3 ./setup.py install --user)
11fastimport.install3 = (cd ../fastimport.git && python3 ./setup.py install --user)10sphinx_epytext.install = (pip3 install sphinx_epytext)
12sphinx_epytext.install = (pip install sphinx==1.8.5 sphinx_epytext)11flake8.install = (pip3 install flake8)
13sphinx_epytext.install3 = (pip3 install sphinx_epytext)12patiencediff.install = (pip3 install patiencediff)
14flake8.install = (pip install flake8)13cython.install = (pip3 install cython)
15flake8.install3 = (pip3 install flake8)
16patiencediff.install = (pip install patiencediff)
17patiencediff.install3 = (pip3 install patiencediff)
18cython.install = (pip install cython)
19cython.install3 = (pip3 install cython)
2014
21[brz]15[brz]
22# FIXME: we're stuck on xenial16# FIXME: we're stuck on xenial
@@ -29,12 +23,12 @@
2923
30# FIXME: Arguably this should be vm.build_deps=brz but it requires either an24# FIXME: Arguably this should be vm.build_deps=brz but it requires either an
31# available package or at least a debian/ dir ? -- vila 2018-02-2325# available package or at least a debian/ dir ? -- vila 2018-02-23
32brz.build_deps = gcc, debhelper, python, python-all-dev, python3-all-dev, python-configobj, python3-configobj, python-docutils, python3-docutils, python-paramiko, python3-paramiko, python-subunit, python3-subunit, python-testtools, python3-testtools, subunit, python-pip, python3-pip, python-setuptools, python3-setuptools, python-flake8, python3-flake8, python-sphinx, python3-sphinx, python-launchpadlib, python3-launchpadlib26brz.build_deps = gcc, debhelper, python3, python3-all-dev, python3-configobj, python3-docutils, python3-paramiko, python3-subunit, python3-testtools, subunit, python3-pip, python3-setuptools, python3-flake8, python3-sphinx, python3-launchpadlib
33subunit.build_deps = python-testscenarios, python3-testscenarios, python-testtools, python3-testtools, cython, cython3, quilt27subunit.build_deps = python3-testscenarios, python3-testtools, cython, cython3, quilt
34vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-junitxml28vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-junitxml
35[brz-xenial]29[brz-xenial]
36vm.release = xenial30vm.release = xenial
37byoci.setup.command = ({dulwich.clone} && {dulwich.install} && {dulwich.install3} && {fastimport.clone} && {fastimport.install} && {fastimport.install3} && {subunit.clone} && {flake8.install} && {flake8.install3} && {patiencediff.install} && {patiencediff.install3} && {sphinx_epytext.install} && {sphinx_epytext.install3} && {cython.install} && {cython.install3})31byoci.setup.command = ({dulwich.clone} && {dulwich.install} && {fastimport.clone} && {fastimport.install} && {subunit.clone} && {flake8.install} && {patiencediff.install} && {sphinx_epytext.install} && {cython.install})
38# FIXME: bzr log -l2 should be by default -- vila 2018-03-0932# FIXME: bzr log -l2 should be by default -- vila 2018-03-09
39byoci.tests.command = bash -o pipefail -c "bzr log -l2 && PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit"33byoci.tests.command = bash -o pipefail -c "bzr log -l2 && PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit"
40[brz-bionic]34[brz-bionic]
@@ -43,8 +37,8 @@
43vm.release = cosmic37vm.release = cosmic
44[brz-disco]38[brz-disco]
45vm.release = disco39vm.release = disco
46vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-dulwich, python3-dulwich, python-junitxml40vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python3-dulwich, python-junitxml
47byoci.setup.command = ({subunit.clone} && {sphinx_epytext.install} && {sphinx_epytext.install3} )41byoci.setup.command = ({subunit.clone} && {sphinx_epytext.install} )
48byoci.tests.command = bash -o pipefail -c "bzr log -l2 && (PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit)"42byoci.tests.command = bash -o pipefail -c "bzr log -l2 && (PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit)"
49[brz-eoan]43[brz-eoan]
50vm.release = eoan44vm.release = eoan
@@ -52,8 +46,8 @@
52[brz-buster]46[brz-buster]
53vm.distribution = debian47vm.distribution = debian
54vm.release = buster48vm.release = buster
55vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-dulwich, python3-dulwich, python-junitxml49vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python3-dulwich, python-junitxml
56byoci.setup.command = ({subunit.clone} && {sphinx_epytext.install} && {sphinx_epytext.install3} )50byoci.setup.command = ({subunit.clone} && {sphinx_epytext.install} )
57byoci.tests.command = bash -o pipefail -c "bzr log -l2 && (PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit)"51byoci.tests.command = bash -o pipefail -c "bzr log -l2 && (PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit)"
58[brz-sid]52[brz-sid]
59vm.distribution = debian53vm.distribution = debian

Subscribers

People subscribed via source and target branches