rda-python-common 3.0.5__tar.gz → 3.0.7__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.5/src/rda_python_common.egg-info → rda_python_common-3.0.7}/PKG-INFO +1 -1
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/pyproject.toml +1 -1
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_log.py +4 -10
- {rda_python_common-3.0.5 → rda_python_common-3.0.7/src/rda_python_common.egg-info}/PKG-INFO +1 -1
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/LICENSE +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/README.md +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/setup.cfg +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_file.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.5 → rda_python_common-3.0.7}/test/test_common.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.7
|
|
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
|
|
@@ -124,7 +124,8 @@ class PgLOG:
|
|
|
124
124
|
'SETUID': '', # the login name for suid if it is different to the CURUID
|
|
125
125
|
'FILEMODE': 0o664, # default 8-base file mode
|
|
126
126
|
'EXECMODE': 0o775, # default 8-base executable file mode or directory mode
|
|
127
|
-
# COMMONUSER and ADMINUSER are set
|
|
127
|
+
# COMMONUSER and ADMINUSER are set in set_common_pglog() via SETPGLOG,
|
|
128
|
+
# which lets environment variables COMMONUSER/ADMINUSER override the defaults
|
|
128
129
|
'SUDOGDEX': 0, # 1 to allow sudo to self.PGLOG['COMMONUSER']
|
|
129
130
|
'HOSTNAME': '', # current host name the process in running on
|
|
130
131
|
'OBJCTSTR': "object",
|
|
@@ -183,13 +184,6 @@ class PgLOG:
|
|
|
183
184
|
self.set_common_pglog()
|
|
184
185
|
self.OUTPUT = None
|
|
185
186
|
|
|
186
|
-
def SETPGLOG(self, key, default):
|
|
187
|
-
"""Set ``self.PGLOG[key]`` from environment variable ``PG<key>`` or
|
|
188
|
-
fall back to ``default`` if the variable is unset. Used to make
|
|
189
|
-
per-environment overrides (e.g. PGCOMMONUSER, PGADMINUSER) survive
|
|
190
|
-
package upgrades."""
|
|
191
|
-
self.PGLOG[key] = os.environ.get('PG' + key, default)
|
|
192
|
-
|
|
193
187
|
def open_output(self, outfile=None):
|
|
194
188
|
"""Open the result output destination.
|
|
195
189
|
|
|
@@ -1435,7 +1429,7 @@ class PgLOG:
|
|
|
1435
1429
|
|
|
1436
1430
|
Called automatically by :meth:`__init__`.
|
|
1437
1431
|
"""
|
|
1438
|
-
# resolve common/admin user from environment (
|
|
1432
|
+
# resolve common/admin user from environment (COMMONUSER / ADMINUSER)
|
|
1439
1433
|
self.SETPGLOG("COMMONUSER", "gdexdata")
|
|
1440
1434
|
self.SETPGLOG("ADMINUSER", "zji")
|
|
1441
1435
|
self.PGLOG['RDAUSER'] = self.PGLOG['COMMONUSER']
|
|
@@ -1510,7 +1504,7 @@ class PgLOG:
|
|
|
1510
1504
|
sm = "/usr/sbin/sendmail"
|
|
1511
1505
|
if self.valid_command(sm): self.SETPGLOG("EMLSEND", f"{sm} -t") # send email command
|
|
1512
1506
|
self.SETPGLOG("DBGLEVEL", '') # debug level
|
|
1513
|
-
self.SETPGLOG("BAOTOKEN", 's.
|
|
1507
|
+
self.SETPGLOG("BAOTOKEN", 's.MdOPGayn0HcuuSPrmMqCvzJA') # OpenBao token
|
|
1514
1508
|
self.SETPGLOG("DBGPATH", self.PGLOG['DSSDBHM']+"/log") # path to debug log file
|
|
1515
1509
|
self.SETPGLOG("OBJCTBKT", "gdex-data") # default Bucket on Object Store
|
|
1516
1510
|
self.SETPGLOG("BACKUPEP", "gdex-quasar") # default Globus Endpoint on Quasar
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.7
|
|
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
|
|
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.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.5 → rda_python_common-3.0.7}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|