rda-python-common 3.0.2__tar.gz → 3.0.3__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 (34) hide show
  1. {rda_python_common-3.0.2/src/rda_python_common.egg-info → rda_python_common-3.0.3}/PKG-INFO +1 -1
  2. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/pyproject.toml +1 -1
  3. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_log.py +6 -5
  4. {rda_python_common-3.0.2 → rda_python_common-3.0.3/src/rda_python_common.egg-info}/PKG-INFO +1 -1
  5. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/LICENSE +0 -0
  6. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/README.md +0 -0
  7. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/setup.cfg +0 -0
  8. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgCMD.py +0 -0
  9. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgDBI.py +0 -0
  10. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgFile.py +0 -0
  11. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgLOG.py +0 -0
  12. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgLock.py +0 -0
  13. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgOPT.py +0 -0
  14. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgSIG.py +0 -0
  15. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgSplit.py +0 -0
  16. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgUtil.py +0 -0
  17. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/__init__.py +0 -0
  18. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_cmd.py +0 -0
  19. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_dbi.py +0 -0
  20. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_file.py +0 -0
  21. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_lock.py +0 -0
  22. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_opt.py +0 -0
  23. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_password.py +0 -0
  24. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_sig.py +0 -0
  25. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_split.py +0 -0
  26. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_util.py +0 -0
  27. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pgpassword.py +0 -0
  28. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pgpassword.usg +0 -0
  29. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  30. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  31. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/entry_points.txt +0 -0
  32. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/requires.txt +0 -0
  33. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/top_level.txt +0 -0
  34. {rda_python_common-3.0.2 → rda_python_common-3.0.3}/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.2
3
+ Version: 3.0.3
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 = "3.0.2"
7
+ version = "3.0.3"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -262,22 +262,23 @@ class PgLOG:
262
262
  msg += " with 1 Error:\n"
263
263
  else:
264
264
  msg += " with {} Errors:\n".format(self.PGLOG['ERRCNT'])
265
+ msg += "\nERROR MESSAGE:\n"
265
266
  msg += self.break_long_string(self.PGLOG['ERRMSG'], 512, None, self.PGLOG['EMLMAX']/2, None, 50, 25)
266
267
  self.PGLOG['ERRCNT'] = 0
267
268
  self.PGLOG['ERRMSG'] = ''
268
269
  if self.PGLOG['SUMMSG']:
269
- msg += self.PGLOG['SEPLINE']
270
- if self.PGLOG['SUMMSG']: msg += "Summary:\n"
270
+ msg += "\nSUMMARY:\n"
271
271
  msg += self.break_long_string(self.PGLOG['SUMMSG'], 512, None, self.PGLOG['EMLMAX']/2, None, 50, 25)
272
272
  if self.PGLOG['EMLMSG']:
273
- msg += self.PGLOG['SEPLINE']
274
- if self.PGLOG['SUMMSG']: msg += "Detail Information:\n"
273
+ msg += "\nDETAIL INFORMATION:\n"
275
274
  self.PGLOG['EMLMSG'] = msg + self.break_long_string(self.PGLOG['EMLMSG'], 512, None, self.PGLOG['EMLMAX'], None, 50, 40)
276
275
  self.PGLOG['SUMMSG'] = "" # in case not
277
276
  else:
278
277
  if logact&self.ERRLOG: # record error for email summary
279
278
  self.PGLOG['ERRCNT'] += 1
280
- if logact&self.BRKLIN: self.PGLOG['ERRMSG'] += "\n"
279
+ if self.PGLOG['ERRMSG']: # blank line between consecutive errors
280
+ if not self.PGLOG['ERRMSG'].endswith('\n'): self.PGLOG['ERRMSG'] += "\n"
281
+ self.PGLOG['ERRMSG'] += "\n"
281
282
  self.PGLOG['ERRMSG'] += "{}. {}".format(self.PGLOG['ERRCNT'], msg)
282
283
  elif logact&self.EMLSUM:
283
284
  if self.PGLOG['SUMMSG']:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 3.0.2
3
+ Version: 3.0.3
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