rda-python-dsarch 1.0.9__tar.gz → 1.0.11__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_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/MANIFEST.in +0 -1
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/PKG-INFO +2 -1
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/pyproject.toml +3 -2
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/dsarch.py +2 -2
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/PKG-INFO +2 -1
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -1
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/requires.txt +1 -0
- rda_python_dsarch-1.0.9/src/rda_python_dsarch/dsarch.c +0 -41
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/LICENSE +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/README.md +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/setup.cfg +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/PgArch.py +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/PgMeta.py +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/__init__.py +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/dsarch.usg +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
- {rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/tests/test_dsarch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: rda_python_dsarch
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.11
|
|
4
4
|
Summary: RDA Python package for utility program dsarch archive RDA data
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
|
|
@@ -12,5 +12,6 @@ Requires-Python: >=3.7
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_setuid
|
|
15
16
|
|
|
16
17
|
RDA python Package to archive and maintain RDA datasets.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "rda_python_dsarch"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.11"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Zaihua Ji", email="zji@ucar.edu" },
|
|
10
10
|
]
|
|
@@ -19,6 +19,7 @@ classifiers = [
|
|
|
19
19
|
]
|
|
20
20
|
dependencies = [
|
|
21
21
|
"rda_python_common",
|
|
22
|
+
"rda_python_setuid",
|
|
22
23
|
]
|
|
23
24
|
|
|
24
25
|
[tool.setuptools]
|
|
@@ -28,7 +29,7 @@ include-package-data = true
|
|
|
28
29
|
where = ["src"]
|
|
29
30
|
|
|
30
31
|
[tool.setuptools.package-data]
|
|
31
|
-
"rda_python_dsarch" = ["dsarch.usg"
|
|
32
|
+
"rda_python_dsarch" = ["dsarch.usg"]
|
|
32
33
|
|
|
33
34
|
[project.urls]
|
|
34
35
|
"Homepage" = "https://github.com/NCAR/rda-python-dsarch"
|
|
@@ -42,7 +42,7 @@ ERRMSG = ''
|
|
|
42
42
|
def main():
|
|
43
43
|
|
|
44
44
|
pgname = "dsarch"
|
|
45
|
-
PgLOG.
|
|
45
|
+
PgLOG.set_help_path(__file__)
|
|
46
46
|
PgOPT.parsing_input(pgname)
|
|
47
47
|
PgLOG.set_suid(PgLOG.PGLOG['EUID'] if PgOPT.OPTS[PgOPT.PGOPT['CACT']][2] > 0 else PgLOG.PGLOG['RUID'])
|
|
48
48
|
|
|
@@ -2491,7 +2491,7 @@ def set_for_internal_group(gindex):
|
|
|
2491
2491
|
gcnd = "gindex = {} AND status = 'P'".format(gindex)
|
|
2492
2492
|
cnd = "{} AND {}".format(dcnd, gcnd)
|
|
2493
2493
|
|
|
2494
|
-
pgrecs = PgSplit.
|
|
2494
|
+
pgrecs = PgSplit.pgmget_wfile(dsid, 'wfile, type', gcnd, PgOPT.PGOPT['extlog'])
|
|
2495
2495
|
cnt = len(pgrecs['wfile']) if pgrecs else 0
|
|
2496
2496
|
srec = {'status' : 'I'}
|
|
2497
2497
|
if cnt:
|
{rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: rda_python_dsarch
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.11
|
|
4
4
|
Summary: RDA Python package for utility program dsarch archive RDA data
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
|
|
@@ -12,5 +12,6 @@ Requires-Python: >=3.7
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_setuid
|
|
15
16
|
|
|
16
17
|
RDA python Package to archive and maintain RDA datasets.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/***************************************************************************************\
|
|
2
|
-
*
|
|
3
|
-
* Title: dsarch.c
|
|
4
|
-
* Author: Zaihua Ji, zji@ucar.edu
|
|
5
|
-
* Date: 2024-01-30
|
|
6
|
-
* Purpose: C wrapper to setuid for a common effective user to
|
|
7
|
-
* run dsarch python scripts
|
|
8
|
-
*
|
|
9
|
-
* Instruction:
|
|
10
|
-
* after python -m pip install rda_python_dsarch
|
|
11
|
-
* cd $ENVHOME/lib/python3.*/site-packages/rda_python_dsarch/
|
|
12
|
-
* cp dsarch.c $ENVHOME/bin/
|
|
13
|
-
* cd $ENVHOME/bin/
|
|
14
|
-
* sudo -u CommonUser gcc -o dsarch $ENVHOME/bin/dsarch.c
|
|
15
|
-
* sudo -u CommonUser chmod 4750 dsarch
|
|
16
|
-
*
|
|
17
|
-
* *: python 3 release number, for example n = 10 in Python 3.10.12
|
|
18
|
-
* CommonUser: rdadata, for RDAMS configuration
|
|
19
|
-
* $ENVHOME: /glade/u/home/rdadata/rdamsenv (venv) on DECS machines, and
|
|
20
|
-
* /glade/work/rdadata/conda-envs/pg-rda (conda) on DAV;
|
|
21
|
-
*
|
|
22
|
-
\***************************************************************************************/
|
|
23
|
-
|
|
24
|
-
#include <sys/types.h>
|
|
25
|
-
#include <unistd.h>
|
|
26
|
-
#include <stdio.h>
|
|
27
|
-
#include <stdlib.h>
|
|
28
|
-
#include <string.h>
|
|
29
|
-
#include <libgen.h>
|
|
30
|
-
|
|
31
|
-
/* main program */
|
|
32
|
-
int main(int argc, char *argv[]) {
|
|
33
|
-
char prog[128];
|
|
34
|
-
char file[] = __FILE__;
|
|
35
|
-
|
|
36
|
-
strcpy(prog, dirname(file));
|
|
37
|
-
strcat(prog, "/dsarch.py");
|
|
38
|
-
|
|
39
|
-
/* call Python script */
|
|
40
|
-
execv(prog, argv);
|
|
41
|
-
}
|
|
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_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_dsarch-1.0.9 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|