rda-python-miscs 2.0.3__tar.gz → 2.0.4__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 (55) hide show
  1. rda_python_miscs-2.0.4/MANIFEST.in +2 -0
  2. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/PKG-INFO +1 -1
  3. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/pyproject.toml +1 -1
  4. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_rst.py +21 -19
  5. rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/index.rst.temp +29 -0
  6. rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/section.rst.temp +23 -0
  7. rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/toc.rst.temp +21 -0
  8. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/PKG-INFO +1 -1
  9. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/SOURCES.txt +3 -0
  10. rda_python_miscs-2.0.3/MANIFEST.in +0 -1
  11. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/LICENSE +0 -0
  12. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/README.md +0 -0
  13. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/setup.cfg +0 -0
  14. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/__init__.py +0 -0
  15. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bash_qsub.py +0 -0
  16. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bashqsub.py +0 -0
  17. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bashqsub.usg +0 -0
  18. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdex_ls.py +0 -0
  19. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls.py +0 -0
  20. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls.usg +0 -0
  21. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls_standalone.py +0 -0
  22. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_docs.py +0 -0
  23. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_wget.py +0 -0
  24. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pgwget.py +0 -0
  25. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_cp.py +0 -0
  26. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_kill.py +0 -0
  27. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_mod.py +0 -0
  28. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_own.py +0 -0
  29. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_ps.py +0 -0
  30. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_sub.py +0 -0
  31. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_zip.py +0 -0
  32. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdacp.py +0 -0
  33. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdacp.usg +0 -0
  34. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdakill.py +0 -0
  35. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdakill.usg +0 -0
  36. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdals.py +0 -0
  37. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdals.usg +0 -0
  38. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdamod.py +0 -0
  39. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdamod.usg +0 -0
  40. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaown.py +0 -0
  41. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaown.usg +0 -0
  42. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaps.py +0 -0
  43. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaps.usg +0 -0
  44. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdasub.py +0 -0
  45. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdasub.usg +0 -0
  46. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdazip.py +0 -0
  47. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdazip.usg +0 -0
  48. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcsh_qsub.py +0 -0
  49. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcshqsub.py +0 -0
  50. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcshqsub.usg +0 -0
  51. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/dependency_links.txt +0 -0
  52. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/entry_points.txt +0 -0
  53. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/requires.txt +0 -0
  54. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/top_level.txt +0 -0
  55. {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/tests/test_miscs.py +0 -0
@@ -0,0 +1,2 @@
1
+ include src/rda_python_miscs/*.usg
2
+ include src/rda_python_miscs/rst_templates/*.temp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_miscs
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: RDA Python package to hold RDA miscellaneous utility programs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-miscs
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "rda_python_miscs"
9
- version = "2.0.3"
9
+ version = "2.0.4"
10
10
  authors = [
11
11
  { name="Zaihua Ji", email="zji@ucar.edu" },
12
12
  ]
@@ -1119,9 +1119,10 @@ class PgRST(PgFile, PgUtil):
1119
1119
 
1120
1120
  Resolution order for OPTS / ALIAS:
1121
1121
 
1122
- 1. Module-level ``OPTS`` / ``ALIAS`` attributes.
1123
- 2. The first class *defined in that module* that carries both ``OPTS``
1124
- and ``ALIAS`` as class-level attributes.
1122
+ 1. The first class *defined in that module* that carries ``OPTS``
1123
+ as a class-level attribute.
1124
+ 2. Module-level ``OPTS`` / ``ALIAS`` attributes (fallback when no
1125
+ qualifying class is found).
1125
1126
 
1126
1127
  ``ALIAS`` is optional; an empty dict is returned when not found.
1127
1128
 
@@ -1155,25 +1156,26 @@ class PgRST(PgFile, PgUtil):
1155
1156
  # Derive ORIGIN from the module's own file path.
1156
1157
  origin = op.dirname(op.abspath(mod.__file__))
1157
1158
 
1158
- # 1. Try module-level attributes first.
1159
- opts = getattr(mod, 'OPTS', None)
1160
- alias = getattr(mod, 'ALIAS', None)
1161
-
1162
- # 2. Fall back to the first class in the module that owns both.
1163
- if opts is None or alias is None:
1164
- for _, obj in inspect.getmembers(mod, inspect.isclass):
1165
- if obj.__module__ == modname:
1166
- cls_opts = getattr(obj, 'OPTS', None)
1167
- cls_alias = getattr(obj, 'ALIAS', None)
1168
- if cls_opts is not None:
1169
- if opts is None: opts = cls_opts
1170
- if alias is None: alias = cls_alias
1171
- break
1159
+ # 1. Find the first class defined in this module and read OPTS / ALIAS from it.
1160
+ cls = next(
1161
+ (obj for _, obj in inspect.getmembers(mod, inspect.isclass)
1162
+ if obj.__module__ == modname),
1163
+ None,
1164
+ )
1165
+
1166
+ if cls is not None:
1167
+ obj = cls()
1168
+ opts = getattr(obj, 'OPTS', None)
1169
+ alias = getattr(obj, 'ALIAS', None)
1170
+ else:
1171
+ # 2. Fall back to module-level attributes when no class is found.
1172
+ opts = getattr(mod, 'OPTS', None)
1173
+ alias = getattr(mod, 'ALIAS', None)
1172
1174
 
1173
1175
  if opts is None:
1174
1176
  self.pglog(
1175
- "Module '{}' does not define OPTS (checked module level and "
1176
- "all classes defined in the module)".format(modname),
1177
+ "Module '{}' does not define OPTS (checked class and "
1178
+ "module level)".format(modname),
1177
1179
  self.LGWNEX,
1178
1180
  )
1179
1181
 
@@ -0,0 +1,29 @@
1
+ ################################################################################
2
+ #
3
+ # Title : index.temp
4
+ # Author : Zaihua Ji, zji@ucar.edu
5
+ # Date : 03/17/2026
6
+ # Purpose : template file for help document index.rst (reStructuredText)
7
+ #
8
+ # Work File : $DSSHOME/lib/templates/index.temp
9
+ #
10
+ ################################################################################
11
+
12
+ .. _index:
13
+
14
+ ============================
15
+ A GUIDE TO __TITLE__
16
+ ============================
17
+
18
+ .. contents:: Table of Contents
19
+ :depth: 2
20
+ :local:
21
+
22
+ See the :doc:`toc` for the full table of contents.
23
+
24
+ .. toctree::
25
+ :maxdepth: 2
26
+ :caption: Contents
27
+
28
+ toc
29
+ section__SECID__
@@ -0,0 +1,23 @@
1
+ ################################################################################
2
+ #
3
+ # Title : section.temp
4
+ # Author : Zaihua Ji, zji@ucar.edu
5
+ # Date : 03/17/2026
6
+ # Purpose : template file for help document section.rst (reStructuredText)
7
+ #
8
+ # Work File : $DSSHOME/lib/templates/section.temp
9
+ #
10
+ ################################################################################
11
+
12
+ .. _section__SECID__:
13
+
14
+ __SECID__ - __TITLE__
15
+ =====================
16
+
17
+ __SECTION__
18
+
19
+ .. raw:: html
20
+
21
+ <br>
22
+
23
+ :ref:`Back to Top <index>`
@@ -0,0 +1,21 @@
1
+ ################################################################################
2
+ #
3
+ # Title : toc.temp
4
+ # Author : Zaihua Ji, zji@ucar.edu
5
+ # Date : 03/17/2026
6
+ # Purpose : template file for help document toc.rst (table of contents, RST)
7
+ #
8
+ # Work File : $DSSHOME/lib/templates/toc.temp
9
+ #
10
+ ################################################################################
11
+
12
+ .. _toc:
13
+
14
+ ====================
15
+ __TITLE__ Guide
16
+ ====================
17
+
18
+ Table of Contents
19
+ -----------------
20
+
21
+ __TOC__
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_miscs
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: RDA Python package to hold RDA miscellaneous utility programs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-miscs
@@ -46,4 +46,7 @@ src/rda_python_miscs.egg-info/dependency_links.txt
46
46
  src/rda_python_miscs.egg-info/entry_points.txt
47
47
  src/rda_python_miscs.egg-info/requires.txt
48
48
  src/rda_python_miscs.egg-info/top_level.txt
49
+ src/rda_python_miscs/rst_templates/index.rst.temp
50
+ src/rda_python_miscs/rst_templates/section.rst.temp
51
+ src/rda_python_miscs/rst_templates/toc.rst.temp
49
52
  tests/test_miscs.py
@@ -1 +0,0 @@
1
- include src/rda_python_miscs/*.usg