rda-python-common 3.0.31__tar.gz → 3.0.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rda_python_common-3.0.31/src/rda_python_common.egg-info → rda_python_common-3.0.32}/PKG-INFO +2 -2
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/README.md +1 -1
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/pyproject.toml +1 -1
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/__init__.py +1 -1
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_sig.py +12 -12
- {rda_python_common-3.0.31 → rda_python_common-3.0.32/src/rda_python_common.egg-info}/PKG-INFO +2 -2
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/LICENSE +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/setup.cfg +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_file.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_log.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.31 → rda_python_common-3.0.32}/test/test_common.py +0 -0
{rda_python_common-3.0.31/src/rda_python_common.egg-info → rda_python_common-3.0.32}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.32
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.32`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
@@ -165,7 +165,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
165
165
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
You should see the installed version (currently `3.0.
|
|
168
|
+
You should see the installed version (currently `3.0.32`). If the import
|
|
169
169
|
fails, double-check that the active Python environment is the one where you
|
|
170
170
|
ran `pip install`.
|
|
171
171
|
|
|
@@ -487,7 +487,7 @@ class PgSIG(PgDBI):
|
|
|
487
487
|
if not dumpon: self.set_dump(self.SDUMP['DEF'])
|
|
488
488
|
if signum == signal.SIGQUIT: self.PGSIG['QUIT'] = 1
|
|
489
489
|
if self.PGSIG['PPID'] <= 1 and len(self.CPIDS) > 0: # passing signal to child processes
|
|
490
|
-
for pid in self.CPIDS: self.kill_process(pid, signum)
|
|
490
|
+
for pid in list(self.CPIDS): self.kill_process(pid, signum) # SIGCHLD may change CPIDS
|
|
491
491
|
|
|
492
492
|
# catch the termination signal so a batch run gets a chance to report before it dies
|
|
493
493
|
# PBS kills a job that runs out of walltime with SIGTERM first and SIGKILL a few seconds
|
|
@@ -829,8 +829,8 @@ class PgSIG(PgDBI):
|
|
|
829
829
|
Returns:
|
|
830
830
|
int: The child PID, or 0 if not found.
|
|
831
831
|
"""
|
|
832
|
-
for cpid in self.CPIDS:
|
|
833
|
-
if
|
|
832
|
+
for cpid, cname in list(self.CPIDS.items()): # a copy: SIGCHLD may remove entries meanwhile
|
|
833
|
+
if cname == pname: return cpid
|
|
834
834
|
return 0
|
|
835
835
|
|
|
836
836
|
# check one or all child processes if they are still running
|
|
@@ -870,15 +870,15 @@ class PgSIG(PgDBI):
|
|
|
870
870
|
else:
|
|
871
871
|
self.pglog("{}: Child still running".format(pid), logact)
|
|
872
872
|
pcnt = 1
|
|
873
|
-
|
|
874
|
-
|
|
873
|
+
else:
|
|
874
|
+
self.CPIDS.pop(pid, None) # clean the saved info; SIGCHLD may have removed it
|
|
875
875
|
elif not pname:
|
|
876
876
|
cpids = list(self.CPIDS)
|
|
877
877
|
for cpid in cpids:
|
|
878
878
|
if self.check_process(cpid): # process is not done yet
|
|
879
879
|
pcnt += 1
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
else:
|
|
881
|
+
self.CPIDS.pop(cpid, None)
|
|
882
882
|
if pcnt == 0 or dowait == 0 or pcnt < ccnt: break
|
|
883
883
|
self.show_wait_message(i, "{}: wait {}/{} child processes".format(self.PGSIG['DSTR'], pcnt, self.PGSIG['MPROC']), logact, dowait)
|
|
884
884
|
i += 1
|
|
@@ -1241,8 +1241,8 @@ class PgSIG(PgDBI):
|
|
|
1241
1241
|
Returns:
|
|
1242
1242
|
int: The background process ID, or 0 if not found.
|
|
1243
1243
|
"""
|
|
1244
|
-
for cbid in self.CBIDS:
|
|
1245
|
-
if
|
|
1244
|
+
for cbid, ccmd in list(self.CBIDS.items()): # a copy: SIGCHLD may remove entries meanwhile
|
|
1245
|
+
if ccmd == bcmd: return cbid
|
|
1246
1246
|
return 0
|
|
1247
1247
|
|
|
1248
1248
|
# check one or all child processes if they are still running
|
|
@@ -1274,8 +1274,8 @@ class PgSIG(PgDBI):
|
|
|
1274
1274
|
else:
|
|
1275
1275
|
self.pglog("{}: Background process still running".format(bid), logact)
|
|
1276
1276
|
bcnt = 1
|
|
1277
|
-
|
|
1278
|
-
|
|
1277
|
+
else:
|
|
1278
|
+
self.CBIDS.pop(bid, None) # clean the saved info; SIGCHLD may have removed it
|
|
1279
1279
|
elif not bcmd:
|
|
1280
1280
|
# Bug fix: cannot delete from a dict while iterating over it;
|
|
1281
1281
|
# iterate over a copy of the keys instead.
|
|
@@ -1284,7 +1284,7 @@ class PgSIG(PgDBI):
|
|
|
1284
1284
|
if self.check_process(cbid): # process is not done yet
|
|
1285
1285
|
bcnt += 1
|
|
1286
1286
|
else:
|
|
1287
|
-
|
|
1287
|
+
self.CBIDS.pop(cbid, None) # SIGCHLD may have removed it
|
|
1288
1288
|
if not (bcnt and dowait): break
|
|
1289
1289
|
self.show_wait_message(i, "{}: wait {}/{} background processes".format(self.PGSIG['DSTR'], bcnt, self.PGSIG['BPROC']), logact, dowait)
|
|
1290
1290
|
i += 1
|
{rda_python_common-3.0.31 → rda_python_common-3.0.32/src/rda_python_common.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.32
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.32`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.31 → rda_python_common-3.0.32}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|