From 2565ff7c2a657deb7d8b82fedf41dd638ebc604f Mon Sep 17 00:00:00 2001 From: Zach Bateman Date: Tue, 2 Jun 2020 08:33:21 -0500 Subject: [PATCH] Add Python 3.8 as language; update version for release --- setup.py | 5 +++-- tests/map_sharedmem_test.py | 6 +++--- tests/map_test.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 6e0e446..f179521 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='easy_multip', - version='0.2.3', + version='0.2.4', packages=['easy_multip'], license='MIT', author='Zach Bateman', @@ -13,7 +13,7 @@ long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/zachbateman/easy_multip.git', - download_url='https://github.com/zachbateman/easy_multip/archive/v_0.2.3.tar.gz', + download_url='https://github.com/zachbateman/easy_multip/archive/v_0.2.4.tar.gz', keywords=['MULTIPROCESSING', 'SIMPLE', 'EASY', 'PARALLEL'], install_requires=['tqdm'], classifiers=['Development Status :: 3 - Alpha', @@ -21,5 +21,6 @@ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ] ) diff --git a/tests/map_sharedmem_test.py b/tests/map_sharedmem_test.py index 8525439..56f6de1 100644 --- a/tests/map_sharedmem_test.py +++ b/tests/map_sharedmem_test.py @@ -10,7 +10,7 @@ def test_func(arg_tup): x, y, ref_data = arg_tup time.sleep(random.random() * 2) return x + y + ref_data[5] - + def test_func2(arg_tup, shared_mem): x, y = arg_tup time.sleep(random.random() * 2) @@ -27,9 +27,9 @@ def test_func2(arg_tup, shared_mem): t0 = time.time() data2 = easy_multip.map(test_func, [(*arg, REF_DATA) for arg in args]) print(f'easy_multip.doloop time: {round(time.time() - t0, 2)}') - + t0 = time.time() data3 = easy_multip.map(test_func2, [(arg) for arg in args], shared_memory_iterable=REF_DATA) print(f'easy_multip.doloop time: {round(time.time() - t0, 2)}') - + print(f'data1 == data2 == data3 check: {data1 == data2 == data3}') diff --git a/tests/map_test.py b/tests/map_test.py index ec3a5cb..840f2e5 100644 --- a/tests/map_test.py +++ b/tests/map_test.py @@ -20,5 +20,5 @@ def test_func(arg_tup): t0 = time.time() data2 = easy_multip.map(test_func, args) print(f'easy_multip.doloop time: {round(time.time() - t0, 2)}') - + print(f'data1 == data2 check: {data1 == data2}')