rda-python-dsarch 1.0.6__tar.gz → 1.0.9__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.6 → rda_python_dsarch-1.0.9}/PKG-INFO +3 -2
- rda_python_dsarch-1.0.9/README.md +1 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/pyproject.toml +5 -5
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/dsarch.c +5 -3
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/dsarch.py +4 -2
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/PKG-INFO +3 -2
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/SOURCES.txt +1 -0
- rda_python_dsarch-1.0.9/src/rda_python_dsarch.egg-info/requires.txt +1 -0
- rda_python_dsarch-1.0.6/README.md +0 -1
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/LICENSE +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/MANIFEST.in +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/setup.cfg +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/PgArch.py +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/PgMeta.py +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/__init__.py +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch/dsarch.usg +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
- {rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/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.9
|
|
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,6 @@ 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
|
|
14
15
|
|
|
15
|
-
RDA python
|
|
16
|
+
RDA python Package to archive and maintain RDA datasets.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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.9"
|
|
11
8
|
authors = [
|
|
12
9
|
{ name="Zaihua Ji", email="zji@ucar.edu" },
|
|
13
10
|
]
|
|
@@ -20,6 +17,9 @@ classifiers = [
|
|
|
20
17
|
"Operating System :: OS Independent",
|
|
21
18
|
"Development Status :: 5 - Production/Stable",
|
|
22
19
|
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"rda_python_common",
|
|
22
|
+
]
|
|
23
23
|
|
|
24
24
|
[tool.setuptools]
|
|
25
25
|
include-package-data = true
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Instruction:
|
|
10
10
|
* after python -m pip install rda_python_dsarch
|
|
11
|
-
* cd
|
|
11
|
+
* cd $ENVHOME/lib/python3.*/site-packages/rda_python_dsarch/
|
|
12
12
|
* cp dsarch.c $ENVHOME/bin/
|
|
13
13
|
* cd $ENVHOME/bin/
|
|
14
14
|
* sudo -u CommonUser gcc -o dsarch $ENVHOME/bin/dsarch.c
|
|
15
15
|
* sudo -u CommonUser chmod 4750 dsarch
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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;
|
|
19
21
|
*
|
|
20
22
|
\***************************************************************************************/
|
|
21
23
|
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
# Title: dsarch
|
|
6
6
|
# Author: Zaihua Ji, zji@ucar.edu
|
|
7
7
|
# Date: 09/29/2020
|
|
8
|
+
# 2025-01-25 transferred to package rda_python_dsarch from
|
|
9
|
+
# https://github.com/NCAR/rda-utility-programs.git
|
|
8
10
|
# Purpose: utility program to archive data files of a given dataset onto RDA
|
|
9
11
|
# server; and save information of data files into RDADB
|
|
10
12
|
#
|
|
@@ -1549,8 +1551,8 @@ def archive_backup_file():
|
|
|
1549
1551
|
|
|
1550
1552
|
info = PgFile.check_local_file(tarfile, 33) # 1+32
|
|
1551
1553
|
fsize = info['data_size'] if info else 0
|
|
1552
|
-
if fsize < tinfo['size']:
|
|
1553
|
-
PgLOG.pglog("{}: Backup file size {} is less than total file size {}".format(tarfile, fsize, tinfo['size']), PgOPT.PGOPT['extlog'])
|
|
1554
|
+
# if fsize < tinfo['size']:
|
|
1555
|
+
# PgLOG.pglog("{}: Backup file size {} is less than total file size {}".format(tarfile, fsize, tinfo['size']), PgOPT.PGOPT['extlog'])
|
|
1554
1556
|
if fsize < PgLOG.PGLOG['ONEGBS']:
|
|
1555
1557
|
PgLOG.pglog("{}: Backup file size {} is less than one GB".format(tarfile, fsize), PgOPT.PGOPT['extlog'])
|
|
1556
1558
|
record = {'type' : qtype, 'data_format' : tinfo['dfmt'], 'data_size' : fsize,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: rda_python_dsarch
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.9
|
|
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,6 @@ 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
|
|
14
15
|
|
|
15
|
-
RDA python
|
|
16
|
+
RDA python Package to archive and maintain RDA datasets.
|
{rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/SOURCES.txt
RENAMED
|
@@ -12,5 +12,6 @@ src/rda_python_dsarch.egg-info/PKG-INFO
|
|
|
12
12
|
src/rda_python_dsarch.egg-info/SOURCES.txt
|
|
13
13
|
src/rda_python_dsarch.egg-info/dependency_links.txt
|
|
14
14
|
src/rda_python_dsarch.egg-info/entry_points.txt
|
|
15
|
+
src/rda_python_dsarch.egg-info/requires.txt
|
|
15
16
|
src/rda_python_dsarch.egg-info/top_level.txt
|
|
16
17
|
tests/test_dsarch.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rda_python_common
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
RDA python code template to create new and modify existing RDA python packages.
|
|
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.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_dsarch-1.0.6 → rda_python_dsarch-1.0.9}/src/rda_python_dsarch.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|