[med-svn] [Git][med-team/pychopper][master] 3 commits: Update fixTests.patch
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Wed Nov 16 15:20:39 GMT 2022
Nilesh Patra pushed to branch master at Debian Med / pychopper
Commits:
fa0271a1 by Nilesh Patra at 2022-11-16T20:12:16+05:30
Update fixTests.patch
- - - - -
1475b2db by Nilesh Patra at 2022-11-16T20:34:15+05:30
Copy tests dir into builddir to run build-time tests and prune once done
- - - - -
8c63460a by Nilesh Patra at 2022-11-16T20:34:15+05:30
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- debian/patches/fixTests.patch
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,17 @@
-pychopper (2.5.0-2) UNRELEASED; urgency=medium
+pychopper (2.5.0-2) unstable; urgency=medium
+ * Team Upload.
+ [ Charles Plessy ]
* Point to new upstream source repository.
+ * Prepare for next upstream release.
+
+ [ Nilesh Patra ]
+ * Update fixTests.patch
+ * Copy tests dir into builddir to run build-time tests
+ and prune once done
+ - Both changes above fix the build. Closes: #1021971
- -- Charles Plessy <plessy at debian.org> Tue, 18 Oct 2022 09:32:24 +0900
+ -- Nilesh Patra <nilesh at debian.org> Wed, 16 Nov 2022 20:14:49 +0530
pychopper (2.5.0-1) unstable; urgency=medium
=====================================
debian/patches/fixTests.patch
=====================================
@@ -1,24 +1,36 @@
-Author: Steffen Möller
-Last-Update: 2022-10-18 14:27:16 +0900
+Author: Steffen Möller <moeller at debian.org>, Nilesh Patra <nilesh at debian.org>
+Last-Update: 2022-11-16 20:11:23 +0530
Description: Force Python3 in tests
-Index: pychopper/docs/cmd_tools.py
-===================================================================
---- pychopper.orig/docs/cmd_tools.py
-+++ pychopper/docs/cmd_tools.py
+--- a/docs/cmd_tools.py
++++ b/docs/cmd_tools.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
"""Helper script to generate cmd_line.rst file for all scripts in bin which
have and parser object defined in their global scope - taken from tang
-Index: pychopper/docs/conf.py
-===================================================================
---- pychopper.orig/docs/conf.py
-+++ pychopper/docs/conf.py
+--- a/docs/conf.py
++++ b/docs/conf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
+--- a/evaluation/scripts/regplot.py
++++ b/evaluation/scripts/regplot.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ import sys
+ import pandas as pd
+--- a/scripts/cdna_classifier.py
++++ b/scripts/cdna_classifier.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+
+ import argparse
=====================================
debian/rules
=====================================
@@ -2,6 +2,7 @@
export DH_VERBOSE = 1
export PYBUILD_NAME=pychopper
+export PYBUILD_BEFORE_TEST=cp -av {dir}/pychopper/tests/ {build_dir}/pychopper/
%:
dh $@ --with python3 --buildsystem=pybuild
@@ -27,4 +28,8 @@ override_dh_auto_clean:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v"
+ set -e \
+ ; for py in `py3versions -sv` \
+ ; do rm -rf ".pybuild/cpython3_$${py}_$(PYBUILD_NAME)/pychopper/tests/" \
+ ; done
endif
View it on GitLab: https://salsa.debian.org/med-team/pychopper/-/compare/65604dc8650a758b05c8d90229881c9c8f6b98c8...8c63460a93dc39f7251a9d73df7c7fff28017b13
--
View it on GitLab: https://salsa.debian.org/med-team/pychopper/-/compare/65604dc8650a758b05c8d90229881c9c8f6b98c8...8c63460a93dc39f7251a9d73df7c7fff28017b13
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20221116/5744990b/attachment-0001.htm>
More information about the debian-med-commit
mailing list