rda-python-common 1.0.14__tar.gz → 1.0.15__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.

Files changed (19) hide show
  1. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/PKG-INFO +3 -2
  2. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/pyproject.toml +1 -1
  3. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgLOG.py +9 -1
  4. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common.egg-info/PKG-INFO +3 -2
  5. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/LICENSE +0 -0
  6. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/README.md +0 -0
  7. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/setup.cfg +0 -0
  8. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgCMD.py +0 -0
  9. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgDBI.py +0 -0
  10. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgFile.py +0 -0
  11. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgLock.py +0 -0
  12. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgOPT.py +0 -0
  13. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgSIG.py +0 -0
  14. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgSplit.py +0 -0
  15. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/PgUtil.py +0 -0
  16. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common/__init__.py +0 -0
  17. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  18. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  19. {rda_python_common-1.0.14 → rda_python_common-1.0.15}/src/rda_python_common.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.14
3
+ Version: 1.0.15
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
@@ -11,6 +11,7 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Requires-Python: >=3.7
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Dynamic: license-file
14
15
 
15
16
  # rda-python-common
16
17
  Python common library codes to be shared by other RDA python utility programs.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_common"
7
- version = "1.0.14"
7
+ version = "1.0.15"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -109,6 +109,7 @@ PGLOG = { # more defined in untaint_suid() with environment variables
109
109
  'DSIDCHRS' : "d",
110
110
  'DOSHELL' : False,
111
111
  'NEWDSID' : True,
112
+ 'PUSGDIR' : None,
112
113
  'BCHHOSTS' : "PBS",
113
114
  'HOSTTYPE' : 'dav', # default HOSTTYPE
114
115
  'EMLMAX' : 256, # up limit of email line count
@@ -479,6 +480,13 @@ def get_call_trace(cut = 1):
479
480
 
480
481
  return str + "\n" if str else ""
481
482
 
483
+ #
484
+ # get caller file name
485
+ #
486
+ def get_caller_file(cidx = 0):
487
+
488
+ return traceback.extract_stack()[cidx][0]
489
+
482
490
  #
483
491
  # log message, msg, for degugging processes according to the debug level
484
492
  #
@@ -556,6 +564,7 @@ def set_help_path(progfile):
556
564
  #
557
565
  def show_usage(progname, opts = None):
558
566
 
567
+ if PGLOG['PUSGDIR'] is None: set_help_path(get_caller_file())
559
568
  usgname = join_paths(PGLOG['PUSGDIR'], progname + '.usg')
560
569
 
561
570
  if opts:
@@ -1284,7 +1293,6 @@ def set_common_pglog():
1284
1293
  SETPGLOG("DRDATAEP", "rda-quasar-drdata") # DRDATA Globus Endpoint on Quasar
1285
1294
  SETPGLOG("DBGFILE", "pgdss.dbg") # debug file name
1286
1295
  SETPGLOG("CNFPATH", PGLOG['DSSHOME']+"/config") # path to configuration files
1287
- SETPGLOG("PUSGDIR", PGLOG['DSSDBHM']+"/prog_usage") # path to program usage files
1288
1296
  SETPGLOG("DSSURL", "https://rda.ucar.edu") # current dss web URL
1289
1297
  SETPGLOG("RQSTURL", "/datasets/request") # request URL path
1290
1298
  SETPGLOG("WEBSERVERS", "rda-web-prod01.ucar.edu:rda-web-test01.ucar.edu") # webserver names for Web server
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.14
3
+ Version: 1.0.15
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
@@ -11,6 +11,7 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Requires-Python: >=3.7
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Dynamic: license-file
14
15
 
15
16
  # rda-python-common
16
17
  Python common library codes to be shared by other RDA python utility programs.