[Python-modules-commits] [wikipedia] 08/12: Change tests to temporarily copy files
Ethan Ward
ethanward-guest at moszumanska.debian.org
Tue Aug 1 23:27:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
ethanward-guest pushed a commit to branch master
in repository wikipedia.
commit 352813c2f06ec3e4d030aeb2444e98997370f9d0
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date: Tue Aug 1 15:28:57 2017 -0500
Change tests to temporarily copy files
---
.../patches/0001-Add-tests-to-installed-code.patch | 21 ---------------------
debian/patches/series | 1 -
debian/rules | 4 +++-
3 files changed, 3 insertions(+), 23 deletions(-)
diff --git a/debian/patches/0001-Add-tests-to-installed-code.patch b/debian/patches/0001-Add-tests-to-installed-code.patch
deleted file mode 100644
index 1d74d1e..0000000
--- a/debian/patches/0001-Add-tests-to-installed-code.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From: Ethan Ward <ethan.ward at mycroft.ai>
-Date: Mon, 31 Jul 2017 17:32:23 -0500
-Subject: Add tests to installed code
-
----
- setup.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 62a8f8c..e898b0b 100644
---- a/setup.py
-+++ b/setup.py
-@@ -33,7 +33,7 @@ setuptools.setup(
- keywords = "python wikipedia API",
- url = "https://github.com/goldsmith/Wikipedia",
- install_requires = install_reqs,
-- packages = ['wikipedia'],
-+ packages = ['wikipedia', 'tests'],
- long_description = local_file('README.rst').read(),
- classifiers = [
- 'Development Status :: 4 - Beta',
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 20c1133..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-0001-Add-tests-to-installed-code.patch
diff --git a/debian/rules b/debian/rules
index ae1d200..b10575e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,9 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=wikipedia
-export PYBUILD_TEST_ARGS=tests/
+export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
+export PYBUILD_TEST_ARGS=tests/ '*test.py'
%:
dh $@ --with python2,python3 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/wikipedia.git
More information about the Python-modules-commits
mailing list