rda-python-common 3.0.16__tar.gz → 3.0.17__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.16/src/rda_python_common.egg-info → rda_python_common-3.0.17}/PKG-INFO +2 -2
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/README.md +1 -1
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/pyproject.toml +1 -1
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/__init__.py +1 -1
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_file.py +12 -11
- {rda_python_common-3.0.16 → rda_python_common-3.0.17/src/rda_python_common.egg-info}/PKG-INFO +2 -2
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/LICENSE +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/setup.cfg +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_log.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.16 → rda_python_common-3.0.17}/test/test_common.py +0 -0
{rda_python_common-3.0.16/src/rda_python_common.egg-info → rda_python_common-3.0.17}/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.17
|
|
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.17`). 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.17`). 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
|
|
|
@@ -2357,22 +2357,23 @@ class PgFile(PgUtil, PgSIG):
|
|
|
2357
2357
|
if re.match(r'^\[\]', buf): break
|
|
2358
2358
|
if re.match(r'^\[\{', buf):
|
|
2359
2359
|
ary = json.loads(buf)
|
|
2360
|
-
|
|
2360
|
+
cnt = len(ary)
|
|
2361
|
+
isdir = (cnt > 1 or ary[0]['Key'] != file)
|
|
2362
|
+
# a key prefix has no timestamp of its own; report the newest member's
|
|
2363
|
+
hash = max(ary, key = lambda a: a['LastModified']) if isdir else ary[0]
|
|
2361
2364
|
uhash = None
|
|
2362
2365
|
if ucmd:
|
|
2363
2366
|
ubuf = self.pgsystem(ucmd, self.LOGWRN, self.CMDRET)
|
|
2364
2367
|
if ubuf and re.match(r'^\{', ubuf): uhash = json.loads(ubuf)
|
|
2365
2368
|
ret = self.object_file_stat(hash, uhash, opt)
|
|
2366
|
-
if ret:
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
size
|
|
2373
|
-
|
|
2374
|
-
size += int(a['Size'])
|
|
2375
|
-
ret['data_size'] = size
|
|
2369
|
+
if ret and isdir:
|
|
2370
|
+
ret['count'] = cnt
|
|
2371
|
+
ret['fname'] = op.basename(file)
|
|
2372
|
+
ret['isfile'] = 0
|
|
2373
|
+
size = 0
|
|
2374
|
+
for a in ary:
|
|
2375
|
+
size += int(a['Size'])
|
|
2376
|
+
ret['data_size'] = size
|
|
2376
2377
|
uhash = None
|
|
2377
2378
|
break
|
|
2378
2379
|
if opt&64: return self.FAILURE
|
{rda_python_common-3.0.16 → rda_python_common-3.0.17/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.17
|
|
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.17`). 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.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.16 → rda_python_common-3.0.17}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|