aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenawi Adha <benawiadha@gmail.com>2023-06-11 12:15:44 +0700
committerBenawi Adha <benawiadha@gmail.com>2023-06-11 12:15:44 +0700
commitee3d6932be21b8bb69881d625b201758ee125eb3 (patch)
tree64ff31f79dd76bc5addcf32a857d1af1f64d26d6
parent1b4a0e46163804251fc2c0605ae713a438792cc4 (diff)
downloadepy-ee3d6932be21b8bb69881d625b201758ee125eb3.tar.gz
Try fixing #87 & bump version
-rw-r--r--pyproject.toml2
-rw-r--r--setup.py2
-rw-r--r--src/epy_reader/__init__.py2
-rw-r--r--src/epy_reader/reader.py3
4 files changed, 5 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 2c92406..19542fb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "epy-reader"
-version = "2023.2.8"
+version = "2023.6.11"
description = "TUI Ebook Reader"
authors = ["Benawi Adha <benawiadha@gmail.com>"]
license = "GPL-3.0"
diff --git a/setup.py b/setup.py
index 8dbdfb9..3d23ac4 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setup(
name="epy-reader",
- version="2023.2.8",
+ version="2023.6.11",
description="Terminal/CLI Ebook (epub, fb2, mobi, azw3) Reader",
long_description=long_description,
long_description_content_type="text/markdown",
diff --git a/src/epy_reader/__init__.py b/src/epy_reader/__init__.py
index 9c557c5..4f071cd 100644
--- a/src/epy_reader/__init__.py
+++ b/src/epy_reader/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "2023.2.8"
+__version__ = "2023.6.11"
__license__ = "GPL-3.0"
__author__ = "Benawi Adha"
__email__ = "benawiadha@gmail.com"
diff --git a/src/epy_reader/reader.py b/src/epy_reader/reader.py
index 60feed6..ee615f8 100644
--- a/src/epy_reader/reader.py
+++ b/src/epy_reader/reader.py
@@ -1,3 +1,4 @@
+import copy
import curses
import dataclasses
import multiprocessing
@@ -146,7 +147,7 @@ class Reader:
self._process_counting_letter = multiprocessing.Process(
name="epy-subprocess-counting-letters",
target=count_letters_parallel,
- args=(self.ebook, self._proc_child),
+ args=(copy.deepcopy(self.ebook), self._proc_child),
)
# forking will raise
# zlib.error: Error -3 while decompressing data: invalid distance too far back