rda-python-common 1.0.16__tar.gz → 1.0.17__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.16 → rda_python_common-1.0.17}/PKG-INFO +1 -1
  2. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/pyproject.toml +1 -1
  3. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgFile.py +2 -1
  4. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgLOG.py +9 -2
  5. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  6. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/LICENSE +0 -0
  7. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/README.md +0 -0
  8. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/setup.cfg +0 -0
  9. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgCMD.py +0 -0
  10. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgDBI.py +0 -0
  11. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgLock.py +0 -0
  12. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgOPT.py +0 -0
  13. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgSIG.py +0 -0
  14. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgSplit.py +0 -0
  15. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/PgUtil.py +0 -0
  16. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common/__init__.py +0 -0
  17. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  18. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  19. {rda_python_common-1.0.16 → rda_python_common-1.0.17}/src/rda_python_common.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.16
3
+ Version: 1.0.17
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 = "1.0.16"
7
+ version = "1.0.17"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1125,7 +1125,8 @@ def make_one_remote_directory(dir, odir, host, logact = 0):
1125
1125
  if is_root_directory(dir, 'R', host, "make directory {} on {}".format(odir, host), logact): return PgLOG.FAILURE
1126
1126
 
1127
1127
  if make_one_remote_directory(op.dirname(dir), odir, host, logact):
1128
- if PgLOG.pgsystem("{} {} {}".format(PgLOG.get_sync_command(host), PgLOG.PGLOG['TMPSYNC'], dir), logact, 5):
1128
+ tmpsync = PgLOG.get_tmpsync_path()
1129
+ if PgLOG.pgsystem("{} {} {}".format(PgLOG.get_sync_command(host), tmpsync, dir), logact, 5):
1129
1130
  set_remote_mode(dir, 0, host, PgLOG.PGLOG['EXECMODE'])
1130
1131
  return PgLOG.SUCCESS
1131
1132
 
@@ -1337,11 +1337,18 @@ def set_common_pglog():
1337
1337
 
1338
1338
  # empty diretory for HOST-sync
1339
1339
  PGLOG['TMPSYNC'] = PGLOG['DSSDBHM'] + "/tmp/.syncdir"
1340
+
1341
+ os.umask(2)
1342
+
1343
+ #
1344
+ # check and return TMPSYNC path, and add it if not exists
1345
+ #
1346
+ def get_tmpsync_path():
1347
+
1340
1348
  if 'DSSHOME' in PGLOG and PGLOG['DSSHOME'] and not op.exists(PGLOG['TMPSYNC']):
1341
1349
  pgsystem("mkdir " + PGLOG['TMPSYNC'], 0, LGWNEX, 4)
1342
1350
  pgsystem("chmod 775 " + PGLOG['TMPSYNC'], LOGWRN, 4)
1343
-
1344
- os.umask(2)
1351
+ return PGLOG['TMPSYNC']
1345
1352
 
1346
1353
  #
1347
1354
  # append or prepend locpath to pgpath
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.16
3
+ Version: 1.0.17
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