diff --git a/mgzip/multiProcGzip.py b/mgzip/multiProcGzip.py index a722c58..d741e43 100644 --- a/mgzip/multiProcGzip.py +++ b/mgzip/multiProcGzip.py @@ -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 @@ -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: @@ -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 \ No newline at end of file + self.block_start_iter = None diff --git a/setup.py b/setup.py index 4e71dda..4acdff6 100644 --- a/setup.py +++ b/setup.py @@ -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=[