rda-python-common 1.0.43__tar.gz → 1.0.44__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.
Potentially problematic release.
This version of rda-python-common might be problematic. Click here for more details.
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/PKG-INFO +1 -1
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/pyproject.toml +1 -1
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgFile.py +5 -2
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgLOG.py +1 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/PKG-INFO +1 -1
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/LICENSE +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/README.md +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/setup.cfg +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-1.0.43 → rda_python_common-1.0.44}/test/test_common.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.44
|
|
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
|
|
@@ -1636,7 +1636,10 @@ def local_file_stat(file, fstat, opt, logact):
|
|
|
1636
1636
|
|
|
1637
1637
|
info = {}
|
|
1638
1638
|
info['isfile'] = (1 if stat.S_ISREG(fstat.st_mode) else 0)
|
|
1639
|
-
info['
|
|
1639
|
+
if info['isfile'] == 0 and logact&PgLOG.PFSIZE:
|
|
1640
|
+
info['data_size'] = local_path_size(file)
|
|
1641
|
+
else:
|
|
1642
|
+
info['data_size'] = fstat.st_size
|
|
1640
1643
|
info['fname'] = op.basename(file)
|
|
1641
1644
|
if not opt: return info
|
|
1642
1645
|
if opt&64 and info['isfile'] and info['data_size'] < PgLOG.PGLOG['MINSIZE']:
|
|
@@ -2573,7 +2576,7 @@ def local_file_size(file, opt = 0, logact = 0):
|
|
|
2573
2576
|
if opt&4: lmsg(file, PgLOG.PGLOG['MISSFILE'], logact)
|
|
2574
2577
|
return -1 # file not eixsts
|
|
2575
2578
|
|
|
2576
|
-
info = check_local_file(file, 0, logact)
|
|
2579
|
+
info = check_local_file(file, 0, logact|PgLOG.PFSIZE)
|
|
2577
2580
|
if info:
|
|
2578
2581
|
if info['isfile'] and info['data_size'] < PgLOG.PGLOG['MINSIZE']:
|
|
2579
2582
|
if opt:
|
|
@@ -67,6 +67,7 @@ ADDTBL = (0x200000) # action to add a new table if it does not exist
|
|
|
67
67
|
SKPTRC = (0x400000) # action to skip tracing when log errors
|
|
68
68
|
UCNAME = (0x800000) # action to change query field names to upper case
|
|
69
69
|
UCLWEX = (0x800015) # UCNAME|MSGLOG|WARNLG|EXITLG
|
|
70
|
+
PFSIZE = (0x1000000) # total file size under a path
|
|
70
71
|
|
|
71
72
|
SUCCESS = 1 # Successful function call
|
|
72
73
|
FINISH = 2 # go through a function, including time out
|
{rda_python_common-1.0.43 → rda_python_common-1.0.44}/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: 1.0.
|
|
3
|
+
Version: 1.0.44
|
|
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
|
|
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-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-1.0.43 → rda_python_common-1.0.44}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|