Skip to content

Commit

Permalink
Add shm_size_mb deprecation warning.
Browse files Browse the repository at this point in the history
Fix #79
  • Loading branch information
nalepae committed Mar 1, 2020
1 parent 7ce460c commit ac8dffd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandarallel/__init__.py
@@ -1,3 +1,3 @@
__version__ = "1.4.5"
__version__ = "1.4.6"

from .pandarallel import pandarallel
6 changes: 6 additions & 0 deletions pandarallel/pandarallel.py
Expand Up @@ -519,6 +519,12 @@ def initialize(
memory_fs_available = is_memory_fs_available()
use_memory_fs = use_memory_fs or use_memory_fs is None and memory_fs_available

if shm_size_mb:
print(
"WARNING: `shm_size_mb` is a deprecated argument. "
"It will be removed in `pandarallel 2.0.0`."
)

if use_memory_fs and not memory_fs_available:
raise SystemError("Memory file system is not available")

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -4,13 +4,13 @@

setup(
name="pandarallel",
version="1.4.5",
version="1.4.6",
python_requires=">=3.5",
packages=find_packages(),
author="Manu NALEPA",
author_email="nalepae@gmail.com",
description="An easy to use library to speed up computation (by parallelizing on multi CPUs) with pandas.",
long_description="See https://github.com/nalepae/pandarallel/tree/v1.4.5 for complete user guide.",
long_description="See https://github.com/nalepae/pandarallel/tree/v1.4.6 for complete user guide.",
url="https://github.com/nalepae/pandarallel",
install_requires=install_requires,
license="BSD",
Expand Down

0 comments on commit ac8dffd

Please sign in to comment.