diff --git a/MANIFEST.in b/MANIFEST.in index f6bc8d0..192afe6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,4 +8,4 @@ include python/minimap2.c include python/cminimap2.h include python/cminimap2.pxd include python/minimap2.pyx -include python/README.md +include python/README.rst diff --git a/python/cminimap2.pxd b/python/cminimap2.pxd index 089ffb7..f371427 100644 --- a/python/cminimap2.pxd +++ b/python/cminimap2.pxd @@ -87,6 +87,6 @@ cdef extern from "cminimap2.h": int8_t strand, trans_strand int32_t n_cigar32 uint32_t *cigar32 - + void mm_reg2hitpy(const mm_idx_t *mi, mm_reg1_t *r, mm_hitpy_t *h) void mm_free_reg1(mm_reg1_t *r) diff --git a/python/minimap2.pyx b/python/minimap2.pyx index b2ee770..399ce9c 100644 --- a/python/minimap2.pyx +++ b/python/minimap2.pyx @@ -105,7 +105,7 @@ cdef class Aligner: self._idx = cminimap2.mm_idx_reader_read(r, n_threads) # NB: ONLY read the first part cminimap2.mm_idx_reader_close(r) cminimap2.mm_mapopt_update(&self.map_opt, self._idx) - + def __dealloc__(self): if self._idx is not NULL: cminimap2.mm_idx_destroy(self._idx) diff --git a/setup.py b/setup.py index d041d9e..b15c31e 100644 --- a/setup.py +++ b/setup.py @@ -17,11 +17,16 @@ else: # with Cython import sys sys.path.append('python') +def readme(): + with open('python/README.rst') as f: + return f.read() + setup( name = 'minimap2', version = '2.2rc', url = 'https://github.com/lh3/minimap2', description = 'Minimap2 python binding', + long_description = readme(), author = 'Heng Li', author_email = 'lh3@me.com', license = 'MIT',