Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mgzip/multiProcGzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from gzip import GzipFile, write32u, _GzipReader, _PaddedFile, READ, WRITE, FEXTRA, FNAME, FCOMMENT, FHCRC
from multiprocessing.dummy import Pool

__version__ = "0.2.1"
__version__ = "0.2.1.3"

SID = b'IG' # Subfield ID of indexed gzip file

Expand Down Expand Up @@ -444,6 +444,7 @@ def close(self):
self._compress_async(self.small_buf.getbuffer())
self.small_buf = io.BytesIO()
self._flush_pool(force=True)
self.pool.close()
elif self.mode == READ:
self._buffer.close()
finally:
Expand Down Expand Up @@ -664,4 +665,4 @@ def set_block_iter(self, block_start_list):
self.block_start_iter = iter(block_start_list)

def clear_block_iter(self):
self.block_start_iter = None
self.block_start_iter = None
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
longDesc = fh.read().replace("CompressionBenchmark.png", "https://raw.githubusercontent.com/vinlyx/mgzip/master/CompressionBenchmark.png").replace("DecompressionBenchmark.png", "https://raw.githubusercontent.com/vinlyx/mgzip/master/DecompressionBenchmark.png")

setup(
name='mgzip',
name='usc-isi-i2-mgzip',
version=__version__,
author='Vincent Li',
author_email='vincentliyx@gmail.com',
author='Craig Milo Rogers',
author_email='CraigMiloRogers@gmail.com',

description='A multi-threading implementation of Python gzip module',
description='A multi-threading implementation of Python gzip module, based on the work of Vincent Li.',
long_description=longDesc,
long_description_content_type="text/markdown",
url='https://github.com/vinlyx/mgzip',
url='https://github.com/usc-isi-i2/mgzip',
license='MIT',
packages=find_packages(),
classifiers=[
Expand Down