Refresh patches
authorAfif Elghraoui <afif@ghraoui.name>
Sat, 5 Mar 2016 22:21:20 +0000 (14:21 -0800)
committerAfif Elghraoui <afif@ghraoui.name>
Sat, 5 Mar 2016 22:21:20 +0000 (14:21 -0800)
debian/patches/disable-tests-requiring-network.patch
debian/patches/ignore-htslib-dir.patch

index 07af1b640bcf53f3ec834e8359d005a01d197a8c..b6cf1a15ca6c2b5b8ae23ec4dce14cf0167b82ba 100644 (file)
@@ -4,16 +4,7 @@ Forwarded: no
 Last-Update: 2015-11-13
 --- python-pysam.orig/tests/tabix_test.py
 +++ python-pysam/tests/tabix_test.py
-@@ -504,7 +504,7 @@
-         b = copy.copy(a)
-         self.assertEqual(a, b)
--        
-+
- class TestIterators(unittest.TestCase):
-@@ -944,7 +944,8 @@
+@@ -1124,7 +1124,8 @@
      local = os.path.join(DATADIR, "example.gtf.gz")
  
      def setUp(self):
@@ -23,20 +14,21 @@ Last-Update: 2015-11-13
          self.local_file = pysam.TabixFile(self.local, "r")
  
      def testFetchAll(self):
-@@ -960,11 +961,12 @@
+@@ -1139,11 +1140,12 @@
+             self.assertEqual(x, y)
  
      def testHeader(self):
-         self.assertEqual(list(self.local_file.header), [])
+-        self.assertEqual(list(self.local_file.header), [])
 -        self.assertRaises(AttributeError,
 -                          getattr,
 -                          self.remote_file,
 -                          "header")
 +        if checkURL(self.url):
++            self.assertEqual(list(self.local_file.header), [])
 +            self.assertRaises(AttributeError,
 +                              getattr,
 +                              self.remote_file,
 +                              "header")
  
class TestIndexArgument(unittest.TestCase):
    def tearDown(self):
+         self.remote_file.close()
index 2ca4cd7e626de3c5ca1e334922c175f2767f3ad2..395ff4f76f72c56cdceff3d745f4393ef8d95fd8 100644 (file)
@@ -8,20 +8,20 @@ Last-Update: 2015-06-24
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- python-pysam.orig/setup.py
 +++ python-pysam/setup.py
-@@ -490,8 +490,6 @@
+@@ -494,8 +494,6 @@
      'url': "https://github.com/pysam-developers/pysam",
      'packages': ['pysam',
                   'pysam.include',
 -                 'pysam.include.htslib',
 -                 'pysam.include.htslib.htslib',
                   'pysam.include.samtools',
-                  # 'pysam.include.samtools.bcftools',
+                  'pysam.include.bcftools',
                   'pysam.include.samtools.win32'],
-@@ -509,7 +507,6 @@
+@@ -512,7 +510,6 @@
                      cutils],
      'cmdclass': cmdclass,
      'package_dir': {'pysam': 'pysam',
 -                    'pysam.include.htslib': 'htslib',
-                     'pysam.include.samtools': 'samtools'},
+                     'pysam.include.samtools': 'samtools',
+                     'pysam.include.bcftools': 'bcftools'},
      'package_data': {'': ['*.pxd', '*.h'], },
-     # do not pack in order to permit linking to csamtools.so