rda-python-dsarch 1.0.7__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.7 → rda_python_dsarch-1.0.11}/MANIFEST.in +0 -1
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/PKG-INFO +3 -1
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/pyproject.toml +7 -6
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/dsarch.py +2 -2
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/PKG-INFO +3 -1
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/SOURCES.txt +1 -1
- rda_python_dsarch-1.0.11/src/rda_python_dsarch.egg-info/requires.txt +2 -0
- rda_python_dsarch-1.0.7/src/rda_python_dsarch/dsarch.c +0 -39
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/LICENSE +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/README.md +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/setup.cfg +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/PgArch.py +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/PgMeta.py +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/__init__.py +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch/dsarch.usg +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
- {rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
- {rda_python_dsarch-1.0.7 → 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
|
|
@@ -11,5 +11,7 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
11
11
|
Requires-Python: >=3.7
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_setuid
|
|
14
16
|
|
|
15
17
|
RDA python Package to archive and maintain RDA datasets.
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = [
|
|
3
|
-
"setuptools>=61.0",
|
|
4
|
-
"rda_python_common",
|
|
5
|
-
]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
6
3
|
build-backend = "setuptools.build_meta"
|
|
7
4
|
|
|
8
5
|
[project]
|
|
9
6
|
name = "rda_python_dsarch"
|
|
10
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.11"
|
|
11
8
|
authors = [
|
|
12
9
|
{ name="Zaihua Ji", email="zji@ucar.edu" },
|
|
13
10
|
]
|
|
@@ -20,6 +17,10 @@ classifiers = [
|
|
|
20
17
|
"Operating System :: OS Independent",
|
|
21
18
|
"Development Status :: 5 - Production/Stable",
|
|
22
19
|
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"rda_python_common",
|
|
22
|
+
"rda_python_setuid",
|
|
23
|
+
]
|
|
23
24
|
|
|
24
25
|
[tool.setuptools]
|
|
25
26
|
include-package-data = true
|
|
@@ -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.7 → 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
|
|
@@ -11,5 +11,7 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
11
11
|
Requires-Python: >=3.7
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_setuid
|
|
14
16
|
|
|
15
17
|
RDA python Package to archive and maintain RDA datasets.
|
{rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/SOURCES.txt
RENAMED
|
@@ -5,12 +5,12 @@ pyproject.toml
|
|
|
5
5
|
src/rda_python_dsarch/PgArch.py
|
|
6
6
|
src/rda_python_dsarch/PgMeta.py
|
|
7
7
|
src/rda_python_dsarch/__init__.py
|
|
8
|
-
src/rda_python_dsarch/dsarch.c
|
|
9
8
|
src/rda_python_dsarch/dsarch.py
|
|
10
9
|
src/rda_python_dsarch/dsarch.usg
|
|
11
10
|
src/rda_python_dsarch.egg-info/PKG-INFO
|
|
12
11
|
src/rda_python_dsarch.egg-info/SOURCES.txt
|
|
13
12
|
src/rda_python_dsarch.egg-info/dependency_links.txt
|
|
14
13
|
src/rda_python_dsarch.egg-info/entry_points.txt
|
|
14
|
+
src/rda_python_dsarch.egg-info/requires.txt
|
|
15
15
|
src/rda_python_dsarch.egg-info/top_level.txt
|
|
16
16
|
tests/test_dsarch.py
|
|
@@ -1,39 +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 ../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
|
-
* $ENVHOME: /glade/u/home/rdadata/rdamsenv on DECS machines, and
|
|
18
|
-
* /glade/work/zji/conda-envs/pg-rda on DAV
|
|
19
|
-
*
|
|
20
|
-
\***************************************************************************************/
|
|
21
|
-
|
|
22
|
-
#include <sys/types.h>
|
|
23
|
-
#include <unistd.h>
|
|
24
|
-
#include <stdio.h>
|
|
25
|
-
#include <stdlib.h>
|
|
26
|
-
#include <string.h>
|
|
27
|
-
#include <libgen.h>
|
|
28
|
-
|
|
29
|
-
/* main program */
|
|
30
|
-
int main(int argc, char *argv[]) {
|
|
31
|
-
char prog[128];
|
|
32
|
-
char file[] = __FILE__;
|
|
33
|
-
|
|
34
|
-
strcpy(prog, dirname(file));
|
|
35
|
-
strcat(prog, "/dsarch.py");
|
|
36
|
-
|
|
37
|
-
/* call Python script */
|
|
38
|
-
execv(prog, argv);
|
|
39
|
-
}
|
|
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.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_dsarch-1.0.7 → rda_python_dsarch-1.0.11}/src/rda_python_dsarch.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|