Skip to content

Commit

Permalink
use is_alive in place of isAlive (deprecated) and force pymongo version
Browse files Browse the repository at this point in the history
  • Loading branch information
osallou committed Apr 28, 2022
1 parent e0f8090 commit b76e714
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.1.21:
Freeze pymongo to 3.12.3 (4.x breaks)
Change isAlive() which is deprecated in python 3.9 to is_alive

3.1.20:
Follow-up of #127 to get last release in file (refactor and bug fix)
3.1.19:
Expand Down
2 changes: 1 addition & 1 deletion biomaj/process/processfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run_threads(self, simulate=False):
kill_received = True
for t in running_th:
t.kill_received = True
running_th = [t.join(1000) for t in running_th if t is not None and t.isAlive()]
running_th = [t.join(1000) for t in running_th if t is not None and t.is_alive()]
except KeyboardInterrupt:
logging.warn("Ctrl-c received! Sending kill to threads...")
logging.warn("Running tasks will continue and process will stop.")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ biomaj_process>=3.0.12
biomaj_cli
mock
nose
pymongo>=3.2
pymongo==3.12.3
pycurl
tabulate
py-bcrypt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self):
'url': 'http://biomaj.genouest.org',
'download_url': 'http://biomaj.genouest.org',
'author_email': 'olivier.sallou@irisa.fr',
'version': '3.1.20',
'version': '3.1.21',
'classifiers': [
# How mature is this project? Common values are
# 3 - Alpha
Expand Down

0 comments on commit b76e714

Please sign in to comment.