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.
- rda_python_miscs-2.0.4/MANIFEST.in +2 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/PKG-INFO +1 -1
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/pyproject.toml +1 -1
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_rst.py +21 -19
- rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/index.rst.temp +29 -0
- rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/section.rst.temp +23 -0
- rda_python_miscs-2.0.4/src/rda_python_miscs/rst_templates/toc.rst.temp +21 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/PKG-INFO +1 -1
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/SOURCES.txt +3 -0
- rda_python_miscs-2.0.3/MANIFEST.in +0 -1
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/LICENSE +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/README.md +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/setup.cfg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/__init__.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bash_qsub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bashqsub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/bashqsub.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdex_ls.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/gdexls_standalone.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_docs.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pg_wget.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/pgwget.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_cp.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_kill.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_mod.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_own.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_ps.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_sub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rda_zip.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdacp.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdacp.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdakill.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdakill.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdals.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdals.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdamod.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdamod.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaown.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaown.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaps.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdaps.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdasub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdasub.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdazip.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/rdazip.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcsh_qsub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcshqsub.py +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs/tcshqsub.usg +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/dependency_links.txt +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/entry_points.txt +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/requires.txt +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/top_level.txt +0 -0
- {rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/tests/test_miscs.py +0 -0
|
@@ -1119,9 +1119,10 @@ class PgRST(PgFile, PgUtil):
|
|
|
1119
1119
|
|
|
1120
1120
|
Resolution order for OPTS / ALIAS:
|
|
1121
1121
|
|
|
1122
|
-
1.
|
|
1123
|
-
|
|
1124
|
-
|
|
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.
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
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
|
|
1176
|
-
"
|
|
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__
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_miscs-2.0.3 → rda_python_miscs-2.0.4}/src/rda_python_miscs.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|