rda-python-common 2.0.4__tar.gz → 2.0.6__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.
Files changed (33) hide show
  1. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/PKG-INFO +1 -1
  2. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/pyproject.toml +1 -1
  3. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgFile.py +1 -1
  4. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgLOG.py +0 -4
  5. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_file.py +1 -1
  6. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_log.py +0 -3
  7. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  8. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/LICENSE +0 -0
  9. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/README.md +0 -0
  10. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/setup.cfg +0 -0
  11. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgCMD.py +0 -0
  12. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgDBI.py +0 -0
  13. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgLock.py +0 -0
  14. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgOPT.py +0 -0
  15. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgSIG.py +0 -0
  16. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgSplit.py +0 -0
  17. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/PgUtil.py +0 -0
  18. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/__init__.py +0 -0
  19. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_cmd.py +0 -0
  20. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_dbi.py +0 -0
  21. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_lock.py +0 -0
  22. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_opt.py +0 -0
  23. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_password.py +0 -0
  24. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_sig.py +0 -0
  25. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_split.py +0 -0
  26. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pg_util.py +0 -0
  27. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common/pgpassword.py +0 -0
  28. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  29. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  30. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/entry_points.txt +0 -0
  31. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/requires.txt +0 -0
  32. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/src/rda_python_common.egg-info/top_level.txt +0 -0
  33. {rda_python_common-2.0.4 → rda_python_common-2.0.6}/test/test_common.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.0.4
3
+ Version: 2.0.6
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_common"
7
- version = "2.0.4"
7
+ version = "2.0.6"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1304,7 +1304,7 @@ def change_local_group(file, ngrp = None, ogrp = None, logname = None, logact =
1304
1304
  if not ngrp:
1305
1305
  ngid = PgLOG.PGLOG['GDEXGID']
1306
1306
  else:
1307
- ngid = grp.getgrnam[ngrp].gr_gid
1307
+ ngid = grp.getgrnam(ngrp).gr_gid
1308
1308
  if logact and logact&PgLOG.EXITLG: logact &=~PgLOG.EXITLG
1309
1309
  if not (ogrp and logname):
1310
1310
  info = check_local_file(file, 10, logact)
@@ -1393,10 +1393,6 @@ def set_common_pglog():
1393
1393
  # check and return TMPSYNC path, and add it if not exists
1394
1394
  #
1395
1395
  def get_tmpsync_path():
1396
-
1397
- if 'DSSHOME' in PGLOG and PGLOG['DSSHOME'] and not op.exists(PGLOG['TMPSYNC']):
1398
- pgsystem("mkdir " + PGLOG['TMPSYNC'], 0, LGWNEX, 4)
1399
- pgsystem("chmod 775 " + PGLOG['TMPSYNC'], LOGWRN, 4)
1400
1396
  return PGLOG['TMPSYNC']
1401
1397
 
1402
1398
  #
@@ -1031,7 +1031,7 @@ class PgFile(PgUtil, PgSIG):
1031
1031
  if not ngrp:
1032
1032
  ngid = self.PGLOG['GDEXGID']
1033
1033
  else:
1034
- ngid = grp.getgrnam[ngrp].gr_gid
1034
+ ngid = grp.getgrnam(ngrp).gr_gid
1035
1035
  if logact and logact&self.EXITLG: logact &=~self.EXITLG
1036
1036
  if not (ogrp and logname):
1037
1037
  info = self.check_local_file(file, 10, logact)
@@ -1118,9 +1118,6 @@ class PgLOG:
1118
1118
 
1119
1119
  # check and return TMPSYNC path, and add it if not exists
1120
1120
  def get_tmpsync_path(self):
1121
- if 'DSSHOME' in self.PGLOG and self.PGLOG['DSSHOME'] and not op.exists(self.PGLOG['TMPSYNC']):
1122
- self.pgsystem("mkdir " + self.PGLOG['TMPSYNC'], 0, self.LGWNEX, 4)
1123
- self.pgsystem("chmod 775 " + self.PGLOG['TMPSYNC'], self.LOGWRN, 4)
1124
1121
  return self.PGLOG['TMPSYNC']
1125
1122
 
1126
1123
  # append or prepend locpath to pgpath
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.0.4
3
+ Version: 2.0.6
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