Skip to content

Commit

Permalink
Add Python 3.8 as language; update version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zachbateman committed Jun 2, 2020
1 parent 738232a commit 2565ff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@

setuptools.setup(
name='easy_multip',
version='0.2.3',
version='0.2.4',
packages=['easy_multip'],
license='MIT',
author='Zach Bateman',
description='Easy Python multiprocessing',
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',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
)
6 changes: 3 additions & 3 deletions tests/map_sharedmem_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}')
2 changes: 1 addition & 1 deletion tests/map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

0 comments on commit 2565ff7

Please sign in to comment.