rda-python-common 3.0.11__tar.gz → 3.0.13__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_common-3.0.11/src/rda_python_common.egg-info → rda_python_common-3.0.13}/PKG-INFO +2 -2
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/README.md +1 -1
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/pyproject.toml +1 -1
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/__init__.py +1 -1
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_file.py +14 -2
- {rda_python_common-3.0.11 → rda_python_common-3.0.13/src/rda_python_common.egg-info}/PKG-INFO +2 -2
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/LICENSE +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/setup.cfg +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_log.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.11 → rda_python_common-3.0.13}/test/test_common.py +0 -0
{rda_python_common-3.0.11/src/rda_python_common.egg-info → rda_python_common-3.0.13}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.13
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.13`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
@@ -165,7 +165,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
165
165
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
You should see the installed version (currently `3.0.
|
|
168
|
+
You should see the installed version (currently `3.0.13`). If the import
|
|
169
169
|
fails, double-check that the active Python environment is the one where you
|
|
170
170
|
ran `pip install`.
|
|
171
171
|
|
|
@@ -1635,11 +1635,23 @@ class PgFile(PgUtil, PgSIG):
|
|
|
1635
1635
|
if not (omode and logname):
|
|
1636
1636
|
info = self.check_local_file(file, 6)
|
|
1637
1637
|
if not info:
|
|
1638
|
-
if info != None: return self.FAILURE
|
|
1639
|
-
return self.lmsg(file, "{} to set mode({})".format(self.PGLOG['MISSFILE'], self.int2base(nmode, 8)), logact)
|
|
1638
|
+
if info != None: return self.FAILURE
|
|
1639
|
+
return self.lmsg(file, "{} to set mode({})".format(self.PGLOG['MISSFILE'], self.int2base(nmode, 8)), logact)
|
|
1640
1640
|
omode = info['mode']
|
|
1641
1641
|
logname = info['logname']
|
|
1642
1642
|
if nmode == omode: return self.SUCCESS
|
|
1643
|
+
if logact and logact&self.EXITLG: logact &= ~self.EXITLG
|
|
1644
|
+
euid = os.geteuid()
|
|
1645
|
+
if euid and logname and pwd.getpwnam(logname).pw_uid != euid:
|
|
1646
|
+
# only the file owner (or root) can chmod; try the pgstart_<owner> setuid wrapper
|
|
1647
|
+
cmd = "chmod {} {}".format(self.int2base(nmode, 8), file)
|
|
1648
|
+
wcmd = self.get_local_command(cmd, logname)
|
|
1649
|
+
msg = "{}: Cannot set mode({}) for file owned by {}".format(file, self.int2base(nmode, 8), logname)
|
|
1650
|
+
if wcmd != cmd:
|
|
1651
|
+
if self.pgsystem(wcmd, logact, 257): return self.SUCCESS
|
|
1652
|
+
if self.PGLOG['SYSERR']: msg += "\n" + self.PGLOG['SYSERR']
|
|
1653
|
+
self.pglog(msg, self.LOGWRN)
|
|
1654
|
+
return self.SUCCESS
|
|
1643
1655
|
try:
|
|
1644
1656
|
os.chmod(file, nmode)
|
|
1645
1657
|
except Exception as e:
|
{rda_python_common-3.0.11 → rda_python_common-3.0.13/src/rda_python_common.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.13
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.13`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
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_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.11 → rda_python_common-3.0.13}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|