[med-svn] [python-cobra] 08/10: Allow tests to run without python-jsonschema
Afif Elghraoui
afif-guest at moszumanska.debian.org
Mon Aug 10 09:26:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository python-cobra.
commit a90687b8fe0b170b4b0aa18d5c3225ef111d189e
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Mon Aug 10 02:13:11 2015 -0700
Allow tests to run without python-jsonschema
---
debian/patches/series | 1 +
debian/patches/testsuite-check-jsonschema.patch | 29 +++++++++++++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 8528e9f..4ef2782 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
mathjax.patch
test-suite-return-code.patch
+testsuite-check-jsonschema.patch
diff --git a/debian/patches/testsuite-check-jsonschema.patch b/debian/patches/testsuite-check-jsonschema.patch
new file mode 100644
index 0000000..515381c
--- /dev/null
+++ b/debian/patches/testsuite-check-jsonschema.patch
@@ -0,0 +1,29 @@
+Description: Disable jsonschema requirement for test-suite
+ The python{3}-jsonschema packages are not yet available in Debian unstable
+ for the version required by this package. The test suite is not appropriately
+ configured to skip the tests that require this package. The patches here
+ fix that.
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: no
+Last-Update: 2015-08-10
+--- python-cobra.orig/cobra/test/io_tests.py
++++ python-cobra/cobra/test/io_tests.py
+@@ -164,7 +164,7 @@
+ # MAT does not store gene names
+ None
+
+-
++ at skipIf(not jsonschema, "jsonschema required")
+ class TestCobraIOjson(TestCase, TestCobraIO):
+ def setUp(self):
+ self.test_model = mini_model
+--- python-cobra.orig/setup.py
++++ python-cobra/setup.py
+@@ -158,7 +158,6 @@
+ packages=find_packages(exclude=['cobra.oven', 'cobra.oven*']),
+ setup_requires=[],
+ install_requires=["six"],
+- tests_require=["jsonschema > 2.5"],
+ extras_require=extras,
+ ext_modules=ext_modules,
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-cobra.git
More information about the debian-med-commit
mailing list