Commit 47d084a3 authored by Thomas Goirand's avatar Thomas Goirand

Removed Python 2 support.

parent 97f991a7
testrepository (0.0.20-4) UNRELEASED; urgency=medium
testrepository (0.0.20-4) experimental; urgency=medium
[ Mattia Rizzolo ]
* Remove Robert Collins from uploaders, as he has retired. Closes: #920506
-- Mattia Rizzolo <mattia@debian.org> Sat, 26 Jan 2019 12:29:32 +0100
[ Thomas Goirand ]
* Removed Python 2 support.
-- Thomas Goirand <zigo@debian.org> Thu, 28 Mar 2019 20:57:14 +0100
testrepository (0.0.20-3) unstable; urgency=medium
......
......@@ -8,13 +8,6 @@ Priority: optional
Build-Depends:
debhelper (>= 10),
dh-python,
python-all,
python-fixtures,
python-setuptools,
python-subunit,
python-testresources,
python-testscenarios,
python-testtools,
python3-all,
python3-fixtures,
python3-setuptools,
......@@ -28,26 +21,6 @@ Vcs-Git: https://salsa.debian.org/python-team/applications/testrepository.git
Vcs-Browser: https://salsa.debian.org/python-team/applications/testrepository
Homepage: https://pypi.python.org/pypi/testrepository
Package: python-testrepository
Architecture: all
Depends:
python-subunit,
${misc:Depends},
${python:Depends},
Provides:
${python:Provides},
Description: Database of test results - Python 2.x library
Testrepository provides a database of test results and supports easy workflows
to be built on top of that database. For instance, running just failing tests
or getting the last test run back to examine again (without running the tests
again). Testrepository is compatible with any test suite that can output
subunit. This includes any TAP test suite and any pyunit compatible test
suite.
.
The python-testrepository package contains the Python testrepository
library for Python 2.x, which can be used for programmatic access to the
database.
Package: python3-testrepository
Architecture: all
Depends:
......@@ -71,7 +44,6 @@ Description: Database of test results - Python 3.x library
Package: testrepository
Architecture: all
Depends:
python-testrepository (>= ${source:Version}),
python3-testrepository (>= ${source:Version}),
${misc:Depends},
Description: unit test system with database of test results - metapackage and doc
......
#!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
update-alternatives --install /usr/bin/testr testr /usr/bin/testr-python2 300
fi
#DEBHELPER#
exit 0
#!/bin/sh
set -e
if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then
update-alternatives --remove testr /usr/bin/testr-python2
fi
#DEBHELPER#
exit 0
#!/bin/sh
set -e
if [ "${1}" = "upgrade" ] ; then
if [ ! -h /usr/bin/testr ] && [ -e /usr/bin/testr ] ; then
rm /usr/bin/testr
fi
fi
#DEBHELPER#
exit 0
#!/bin/sh
set -e
if [ "$1" = "remove" ] ; then
update-alternatives --remove testr /usr/bin/testr-python2
fi
#DEBHELPER#
exit 0
#!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
update-alternatives --install /usr/bin/testr testr /usr/bin/testr-python3 200
fi
#DEBHELPER#
exit 0
......@@ -4,17 +4,13 @@ export PYBUILD_NAME=testrepository
export PYBUILD_DISABLE=test
%:
dh $@ --with python2,python3 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
override_dh_installchangelogs:
dh_installchangelogs -k NEWS
override_dh_auto_install:
dh_auto_install
mv $(CURDIR)/debian/python-testrepository/usr/bin/testr \
$(CURDIR)/debian/python-testrepository/usr/bin/testr-python2
mv $(CURDIR)/debian/python3-testrepository/usr/bin/testr \
$(CURDIR)/debian/python3-testrepository/usr/bin/testr-python3
override_dh_clean:
dh_clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment