rda-python-common 3.0.6__py3-none-any.whl → 3.0.7__py3-none-any.whl

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.
@@ -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 below via SETPGLOG (env overrides PG<KEY>)
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 (PGCOMMONUSER / PGADMINUSER)
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']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 3.0.6
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
@@ -12,7 +12,7 @@ rda_python_common/pg_cmd.py,sha256=PiQaAeb7l92LceqMwSzLpz9nD5pDRHJcEZxTDn-HeCs,3
12
12
  rda_python_common/pg_dbi.py,sha256=HxrrgdpMnjJritVLM4QLe5TT7X5ue9cRTJpW5j7eBlA,118371
13
13
  rda_python_common/pg_file.py,sha256=3V7qEQTPDZaTjQQ3sB-HX0DQ8i53atQnljM5KEab9lg,162350
14
14
  rda_python_common/pg_lock.py,sha256=31EaVDjCkcx3-n8-KnzG18R8Pz7Z6KyFsEqcml6Iq5c,32702
15
- rda_python_common/pg_log.py,sha256=SsGmAsy1txk2Dvu_9gOQMwc3IXFFRST1Y5M2HNdFvdw,82211
15
+ rda_python_common/pg_log.py,sha256=crsw6Jb-ZrmYrb7qWivEA37fJMh7JiuIrT-KzG1UAc0,81944
16
16
  rda_python_common/pg_opt.py,sha256=evf0ZtNeYyRjGyTIghD6wI5u7eDbiDkDudLYRk5z0QA,82500
17
17
  rda_python_common/pg_password.py,sha256=X-eIDwdqBhtrhrbDTNWle-0JtWsyIVZdDOZaBu7cFHM,2343
18
18
  rda_python_common/pg_sig.py,sha256=o4L9qjrgOIAASXntY6kHfEGV2TXuFL3mTczqkemY9oQ,53572
@@ -20,9 +20,9 @@ rda_python_common/pg_split.py,sha256=aAWKUZPmZ-LQ_fJ3DSKzPKxJw0fMDJ2fgP8ZT629M30
20
20
  rda_python_common/pg_util.py,sha256=3_-baqCI9j5bkC2Uw3hRJZtYwdr0FQC6mtgbeIhLwyQ,86045
21
21
  rda_python_common/pgpassword.py,sha256=aTQaO59QokWrv2EKom4TvKhNW2Mr6aFMMBVG4DCbcKI,5023
22
22
  rda_python_common/pgpassword.usg,sha256=Wrle6A8sdlMGx3ZEAmE6TNDPOlG84Whe0T3rCNFzPfY,2013
23
- rda_python_common-3.0.6.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
24
- rda_python_common-3.0.6.dist-info/METADATA,sha256=wgxCsrGm36QvT7jHJp7B58N1nzL0nzXGhwiBOPX7wlQ,14528
25
- rda_python_common-3.0.6.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
26
- rda_python_common-3.0.6.dist-info/entry_points.txt,sha256=pZgVNWspcK-F1TbPav7C3C9NdeHDZMm_25fW9weix00,65
27
- rda_python_common-3.0.6.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
28
- rda_python_common-3.0.6.dist-info/RECORD,,
23
+ rda_python_common-3.0.7.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
24
+ rda_python_common-3.0.7.dist-info/METADATA,sha256=TEHEr-_uy5HE4fg0kJtgirHSv-SCGfhg8pVXM19M6Y4,14528
25
+ rda_python_common-3.0.7.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
26
+ rda_python_common-3.0.7.dist-info/entry_points.txt,sha256=pZgVNWspcK-F1TbPav7C3C9NdeHDZMm_25fW9weix00,65
27
+ rda_python_common-3.0.7.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
28
+ rda_python_common-3.0.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (83.0.0)
2
+ Generator: setuptools (84.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5