dao-scripts 1.3.1__py3-none-any.whl → 1.4.1__py3-none-any.whl
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.
- dao_analyzer/cache_scripts/_version.py +2 -2
- dao_analyzer/cache_scripts/endpoints.json +2 -2
- dao_analyzer/cache_scripts/main.py +7 -2
- dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py +17 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/METADATA +1 -1
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/RECORD +12 -12
- /dao_scripts-1.3.1-py3.12-nspkg.pth → /dao_scripts-1.4.1-py3.12-nspkg.pth +0 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/LICENSE +0 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/WHEEL +0 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/entry_points.txt +0 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/namespace_packages.txt +0 -0
- {dao_scripts-1.3.1.dist-info → dao_scripts-1.4.1.dist-info}/top_level.txt +0 -0
@@ -15,11 +15,11 @@
|
|
15
15
|
"daostack": "Bnqq6ARphxg2rnAvjBrQGxCPNtDGiygv235GbRzZqwfb",
|
16
16
|
"daohaus": "2GJY9uxsLQUCvgqSfy6QCLAJgM9P9kdxBUpwNcGs7nPR"
|
17
17
|
},
|
18
|
-
"
|
18
|
+
"matic": {
|
19
19
|
"_blocks": "4mJTujCUWKLd4SPBYE1YXbamfNSNRMyphk8tHzczYWf9",
|
20
20
|
"daohaus": "AkzZk4BsvfNRkRDtzz7Bc8TgktTJN4uv9tgfCehhE6fB"
|
21
21
|
},
|
22
|
-
"arbitrum": {
|
22
|
+
"arbitrum-one": {
|
23
23
|
"_blocks": "AyY1GDtmAyavGWsdoHQ4vNoBCVWSqfDwHa6jPu5KdHgP",
|
24
24
|
"daohaus": "2c41cggebRCMzFiDqoqDwShZtz4xYucsFKbQnEiXUTzY"
|
25
25
|
},
|
@@ -83,12 +83,17 @@ def lock_and_run(args: Namespace):
|
|
83
83
|
with pl.Lock(cs_lock, 'w', timeout=1) as lock, \
|
84
84
|
tempfile.TemporaryDirectory(prefix="datawarehouse_") as tmp_dw_str:
|
85
85
|
|
86
|
+
running_link = datawarehouse / '.running'
|
87
|
+
if running_link.exists():
|
88
|
+
print("Program was killed, removing aux files")
|
89
|
+
running_link.unlink()
|
90
|
+
|
86
91
|
# Writing pid and dir name to lock (debugging)
|
87
92
|
tmp_dw = Path(tmp_dw_str)
|
88
93
|
print(os.getpid(), file=lock)
|
89
94
|
print(tmp_dw, file=lock)
|
90
95
|
lock.flush()
|
91
|
-
|
96
|
+
running_link.symlink_to(tmp_dw)
|
92
97
|
|
93
98
|
# Used to tell the loggers to use errors.log or the main logs
|
94
99
|
copied_dw = False
|
@@ -135,7 +140,7 @@ def lock_and_run(args: Namespace):
|
|
135
140
|
finally:
|
136
141
|
# Removing pid from lock
|
137
142
|
lock.truncate(0)
|
138
|
-
|
143
|
+
running_link.unlink()
|
139
144
|
finish_logging(errors=not copied_dw)
|
140
145
|
except pl.LockException:
|
141
146
|
with open(cs_lock, 'r') as f:
|
@@ -7,6 +7,7 @@ import shutil
|
|
7
7
|
import json
|
8
8
|
import requests
|
9
9
|
from time import sleep
|
10
|
+
import logging
|
10
11
|
|
11
12
|
from tqdm import tqdm
|
12
13
|
|
@@ -122,11 +123,27 @@ def main():
|
|
122
123
|
default=5,
|
123
124
|
help="Zenodo is known to return 504 error, this program will try and upload it again",
|
124
125
|
)
|
126
|
+
parser.add_argument(
|
127
|
+
'-D', '--debug',
|
128
|
+
action='store_true',
|
129
|
+
help='Enable debug logs',
|
130
|
+
)
|
125
131
|
|
126
132
|
args = parser.parse_args()
|
127
133
|
if args.repos == 'all':
|
128
134
|
args.repos = available_repos
|
129
135
|
|
136
|
+
if args.debug:
|
137
|
+
from http.client import HTTPConnection
|
138
|
+
|
139
|
+
# https://requests.readthedocs.io/en/latest/api/#api-changes
|
140
|
+
HTTPConnection.debuglevel = 1
|
141
|
+
logging.basicConfig()
|
142
|
+
logging.getLogger().setLevel(logging.DEBUG)
|
143
|
+
requests_log = logging.getLogger('urllib3')
|
144
|
+
requests_log.setLevel(logging.DEBUG)
|
145
|
+
requests_log.propagate = True
|
146
|
+
|
130
147
|
with tempfile.TemporaryDirectory() as tmpdir:
|
131
148
|
tmpdir = Path(tmpdir)
|
132
149
|
|
@@ -1,12 +1,12 @@
|
|
1
|
-
dao_scripts-1.
|
1
|
+
dao_scripts-1.4.1-py3.12-nspkg.pth,sha256=_0DzrHlnOxaQL5l1mMdHT1BtXZwXuB6MitMF5phpOhk,497
|
2
2
|
dao_analyzer/cache_scripts/__init__.py,sha256=Urg-J2hvyzGcgE2Z-ba71XpcHi1YlPZgex86OFSd_0A,116
|
3
3
|
dao_analyzer/cache_scripts/__main__.py,sha256=aNVhgUXjB4rzTefrX3d6dKeLOX3G_Ezs82pI8QCpwx0,61
|
4
|
-
dao_analyzer/cache_scripts/_version.py,sha256=
|
4
|
+
dao_analyzer/cache_scripts/_version.py,sha256=oFZsPxoSsCY6D2DiWMSueNvMDRRQN5ssWrPdQtlLJ_o,411
|
5
5
|
dao_analyzer/cache_scripts/argparser.py,sha256=uOBVdRxmgR8H0dZMu2AQyvro6WvkZFKUrf7vJ6Mvw48,3574
|
6
6
|
dao_analyzer/cache_scripts/config.py,sha256=6Ooh-SpTtNCHcl2sE637-XMCCCNZBmATJRyD_eguWr0,2180
|
7
|
-
dao_analyzer/cache_scripts/endpoints.json,sha256=
|
7
|
+
dao_analyzer/cache_scripts/endpoints.json,sha256=JLkXgE7P7ZXpAsorIq0jCVCoPoK4_YeyfTgCmtPdo14,1278
|
8
8
|
dao_analyzer/cache_scripts/logging.py,sha256=9sAqZUk_Qnmlf9Ko60C4O__Ve7Tj4xefzQ7cV07aQ70,3196
|
9
|
-
dao_analyzer/cache_scripts/main.py,sha256=
|
9
|
+
dao_analyzer/cache_scripts/main.py,sha256=7N92n6KBQXjnlEGLV_f7_PBHEI7UzR47yPLcUkh2j5w,5751
|
10
10
|
dao_analyzer/cache_scripts/metadata.py,sha256=oZ5xLkWClt1YxBAvbsDhciZkyHJ1Vcuic7guFy2ks6w,4211
|
11
11
|
dao_analyzer/cache_scripts/aragon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
dao_analyzer/cache_scripts/aragon/dao_names.json,sha256=ASDOJYTsgHELJ7g1z9NccVROYYxsHQaLy9V-vrfr_Ec,7412
|
@@ -22,11 +22,11 @@ dao_analyzer/cache_scripts/daohaus/runner.py,sha256=nQ7YN_Fbfx0KsHkq47hShwTS82jb
|
|
22
22
|
dao_analyzer/cache_scripts/daostack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
23
|
dao_analyzer/cache_scripts/daostack/runner.py,sha256=emjzhZzGMTRGHKljll_lX-uMsGwaIsZBSi4jV1Lsh8Y,10144
|
24
24
|
dao_analyzer/cache_scripts/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
-
dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=
|
26
|
-
dao_scripts-1.
|
27
|
-
dao_scripts-1.
|
28
|
-
dao_scripts-1.
|
29
|
-
dao_scripts-1.
|
30
|
-
dao_scripts-1.
|
31
|
-
dao_scripts-1.
|
32
|
-
dao_scripts-1.
|
25
|
+
dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=CS9x299afMceRJ4DGUbFAP3WUHFBpK-XxG-BZH39po4,4561
|
26
|
+
dao_scripts-1.4.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
27
|
+
dao_scripts-1.4.1.dist-info/METADATA,sha256=ye7fg7RRnbsaQtKfQ6ZbFajtvuNuuKyzhJowc_34NCE,8193
|
28
|
+
dao_scripts-1.4.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
29
|
+
dao_scripts-1.4.1.dist-info/entry_points.txt,sha256=dHhgA8pcQ2YbIlMuqPPSh7fiQkfHE8ioFPUcbBvXWDc,207
|
30
|
+
dao_scripts-1.4.1.dist-info/namespace_packages.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
31
|
+
dao_scripts-1.4.1.dist-info/top_level.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
32
|
+
dao_scripts-1.4.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|