-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependencies and hanging mpire (#33)
* Platform specific dependencies are now handled using environment markers as defined in PEP-508 (fixes #30) * Fixes hanging WorkerPool when using worker_lifespan and returning results that exceed the pipe capacity (fixes #32) * Add sleep in insight tests so execution time is greater than zero Co-authored-by: sybrenjansen <sybren.jansen@gmail.com> Co-authored-by: Michiel van de Steeg <m.vd.steeg90@gmail.com>
- Loading branch information
1 parent
4541c4f
commit 91e35d5
Showing
6 changed files
with
107 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ build | |
_build | ||
dist | ||
*.egg-info | ||
.eggs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,59 @@ | ||
import platform | ||
import sys | ||
from setuptools import find_packages, setup | ||
|
||
# For Python < 3.7 we need dataclasses. On Windows, we need pywin32 for CPU pinning | ||
additional_dependencies = [] | ||
if sys.version_info[0] == 3 and sys.version_info[1] < 7: | ||
additional_dependencies.append("dataclasses") | ||
if platform.system() == "Windows": | ||
additional_dependencies.append("pywin32==225") | ||
|
||
|
||
def read_description(): | ||
with open("README.rst") as file: | ||
with open('README.rst') as file: | ||
return file.read() | ||
|
||
|
||
if __name__ == "__main__": | ||
if __name__ == '__main__': | ||
# For Python < 3.7 we need dataclasses. On Windows, we need pywin32 for CPU pinning | ||
setup( | ||
name="mpire", | ||
version="2.3.3", | ||
author="Slimmer AI", | ||
description="A Python package for easy multiprocessing, but faster than multiprocessing", | ||
name='mpire', | ||
version='2.3.3', | ||
author='Slimmer AI', | ||
description='A Python package for easy multiprocessing, but faster than multiprocessing', | ||
long_description=read_description(), | ||
url="https://github.com/Slimmer-AI/mpire", | ||
license="MIT", | ||
url='https://github.com/Slimmer-AI/mpire', | ||
license='MIT', | ||
packages=find_packages(), | ||
scripts=["bin/mpire-dashboard"], | ||
install_requires=["tqdm"] + additional_dependencies, | ||
scripts=['bin/mpire-dashboard'], | ||
install_requires=['dataclasses; python_version<"3.7"', | ||
'pywin32==225; platform_system=="Windows"', | ||
'tqdm'], | ||
include_package_data=True, | ||
extras_require={ | ||
"dashboard": ["flask"], | ||
"dill": ["multiprocess"], | ||
"docs": ["docutils==0.17.1", | ||
"sphinx==3.2.1", | ||
"sphinx-rtd-theme==0.5.0", | ||
"sphinx-autodoc-typehints==1.11.0", | ||
"sphinxcontrib-images==0.9.2", | ||
"sphinx-versions==1.0.1"], | ||
"testing": ["multiprocess", "numpy"] + additional_dependencies | ||
'dashboard': ['flask'], | ||
'dill': ['multiprocess'], | ||
'docs': ['docutils==0.17.1', | ||
'sphinx==3.2.1', | ||
'sphinx-rtd-theme==0.5.0', | ||
'sphinx-autodoc-typehints==1.11.0', | ||
'sphinxcontrib-images==0.9.2', | ||
'sphinx-versions==1.0.1'], | ||
'testing': ['dataclasses; python_version<"3.7"', | ||
'multiprocess', | ||
'numpy', | ||
'pywin32==225; platform_system=="Windows"'] | ||
}, | ||
test_suite="tests", | ||
tests_require=["multiprocess", "numpy"], | ||
test_suite='tests', | ||
tests_require=['multiprocess', 'numpy'], | ||
classifiers=[ | ||
# Development status | ||
"Development Status :: 5 - Production/Stable", | ||
'Development Status :: 5 - Production/Stable', | ||
|
||
# Supported Python versions | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
|
||
# License | ||
"License :: OSI Approved :: MIT License", | ||
'License :: OSI Approved :: MIT License', | ||
|
||
# Topic | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
'Topic :: Software Development', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules' | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters