emod-malaria 2.27.0__py3-none-any.whl → 2.29.12__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.
- emod_malaria/Eradication.zip +0 -0
- emod_malaria/bootstrap.py +38 -38
- emod_malaria/schema.zip +0 -0
- {emod_malaria-2.27.0.dist-info → emod_malaria-2.29.12.dist-info}/METADATA +15 -15
- emod_malaria-2.29.12.dist-info/RECORD +8 -0
- emod_malaria-2.27.0.dist-info/RECORD +0 -8
- {emod_malaria-2.27.0.dist-info → emod_malaria-2.29.12.dist-info}/WHEEL +0 -0
- {emod_malaria-2.27.0.dist-info → emod_malaria-2.29.12.dist-info}/top_level.txt +0 -0
emod_malaria/Eradication.zip
CHANGED
|
Binary file
|
emod_malaria/bootstrap.py
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import sys
|
|
3
|
-
import shutil
|
|
4
|
-
import zipfile
|
|
5
|
-
from glob import glob
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def extract(package_name, local_dir):
|
|
9
|
-
os.makedirs(local_dir, exist_ok=True)
|
|
10
|
-
os.chdir(local_dir)
|
|
11
|
-
|
|
12
|
-
pkgdir = sys.modules[package_name].__path__[0]
|
|
13
|
-
# extract all *.zip files in the package, preserve relative file paths
|
|
14
|
-
for fullpath in glob(os.path.join(pkgdir, "**/*.zip"), recursive=True):
|
|
15
|
-
# determine zip relative filepath
|
|
16
|
-
rel_filepath = os.path.relpath(fullpath, pkgdir)
|
|
17
|
-
rel_dir = os.path.dirname(rel_filepath)
|
|
18
|
-
if rel_dir and len(rel_dir) > 0:
|
|
19
|
-
os.makedirs(rel_dir, exist_ok=True)
|
|
20
|
-
# copy archive under current dir
|
|
21
|
-
temp_zip_path = os.path.join(os.getcwd(), rel_filepath)
|
|
22
|
-
shutil.copy(fullpath, temp_zip_path)
|
|
23
|
-
with zipfile.ZipFile(rel_filepath, 'r') as zip_ref:
|
|
24
|
-
zip_ref.extractall(rel_dir)
|
|
25
|
-
os.unlink(temp_zip_path)
|
|
26
|
-
|
|
27
|
-
os.chdir("..")
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def setup(local_dir="stash"):
|
|
31
|
-
"""
|
|
32
|
-
Extract binary and schema into a local directory.
|
|
33
|
-
"""
|
|
34
|
-
extract('emod_malaria', local_dir)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if __name__ == "__main__":
|
|
38
|
-
setup()
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
import shutil
|
|
4
|
+
import zipfile
|
|
5
|
+
from glob import glob
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def extract(package_name, local_dir):
|
|
9
|
+
os.makedirs(local_dir, exist_ok=True)
|
|
10
|
+
os.chdir(local_dir)
|
|
11
|
+
|
|
12
|
+
pkgdir = sys.modules[package_name].__path__[0]
|
|
13
|
+
# extract all *.zip files in the package, preserve relative file paths
|
|
14
|
+
for fullpath in glob(os.path.join(pkgdir, "**/*.zip"), recursive=True):
|
|
15
|
+
# determine zip relative filepath
|
|
16
|
+
rel_filepath = os.path.relpath(fullpath, pkgdir)
|
|
17
|
+
rel_dir = os.path.dirname(rel_filepath)
|
|
18
|
+
if rel_dir and len(rel_dir) > 0:
|
|
19
|
+
os.makedirs(rel_dir, exist_ok=True)
|
|
20
|
+
# copy archive under current dir
|
|
21
|
+
temp_zip_path = os.path.join(os.getcwd(), rel_filepath)
|
|
22
|
+
shutil.copy(fullpath, temp_zip_path)
|
|
23
|
+
with zipfile.ZipFile(rel_filepath, 'r') as zip_ref:
|
|
24
|
+
zip_ref.extractall(rel_dir)
|
|
25
|
+
os.unlink(temp_zip_path)
|
|
26
|
+
|
|
27
|
+
os.chdir("..")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def setup(local_dir="stash"):
|
|
31
|
+
"""
|
|
32
|
+
Extract binary and schema into a local directory.
|
|
33
|
+
"""
|
|
34
|
+
extract('emod_malaria', local_dir)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
setup()
|
emod_malaria/schema.zip
CHANGED
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: emod-malaria
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary: PyPI distribution of EMOD for the Malaria sim type
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Project-URL: Documentation, https://docs.idmod.org/projects/emod/en/latest/
|
|
7
|
-
Project-URL: Repository, https://github.com/EMOD-Hub/EMOD
|
|
8
|
-
Project-URL: Issues, https://github.com/EMOD-Hub/EMOD/issues
|
|
9
|
-
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
-
Classifier: Programming Language :: C++
|
|
11
|
-
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
12
|
-
Requires-Python: >=3.9
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
Provides-Extra: docs
|
|
15
|
-
Provides-Extra: tests
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: emod-malaria
|
|
3
|
+
Version: 2.29.12
|
|
4
|
+
Summary: PyPI distribution of EMOD for the Malaria sim type
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://docs.idmod.org/projects/emod/en/latest/
|
|
7
|
+
Project-URL: Repository, https://github.com/EMOD-Hub/EMOD
|
|
8
|
+
Project-URL: Issues, https://github.com/EMOD-Hub/EMOD/issues
|
|
9
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
10
|
+
Classifier: Programming Language :: C++
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: docs
|
|
15
|
+
Provides-Extra: tests
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
emod_malaria/Eradication.zip,sha256=jtVRsNCZ39Di1wr-MipFcbQ8NnzDBPGH9fZoX8y7VpY,3697434
|
|
2
|
+
emod_malaria/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
emod_malaria/bootstrap.py,sha256=LFRQbXbbBOg4ikEO--Es4rHVnceOt3OnoewxxW6ia-8,1106
|
|
4
|
+
emod_malaria/schema.zip,sha256=Qh62jsY5eIk9so7sWyTbRprO_jQF9UhG68zqUUxZKQI,95312
|
|
5
|
+
emod_malaria-2.29.12.dist-info/METADATA,sha256=gwFXDcYIexZMs-Tni0th_7LccLR3lhK-rDimwilC2MY,593
|
|
6
|
+
emod_malaria-2.29.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
emod_malaria-2.29.12.dist-info/top_level.txt,sha256=HjY1vjhSuhJeVv5pzWRW4FWR3vr0IOJfrvl8MlHOagA,13
|
|
8
|
+
emod_malaria-2.29.12.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
emod_malaria/Eradication.zip,sha256=miolU-rdpWmRO8DqggG5rOITbGe5P_e7nIm2nGq1l2w,3695118
|
|
2
|
-
emod_malaria/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
emod_malaria/bootstrap.py,sha256=PB3QnzGe_6is7ebbQNpxzLtv73q5WIUw8-q21bJuhAw,1144
|
|
4
|
-
emod_malaria/schema.zip,sha256=-hfm3RRYZLP27zlLES-HF9jPb62YI-bAUd5uA2ejbRs,91907
|
|
5
|
-
emod_malaria-2.27.0.dist-info/METADATA,sha256=zsOP_x8yOEHnFPK3qqgwQNu1zgf1QRM8nUQ8jHElrf8,607
|
|
6
|
-
emod_malaria-2.27.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
emod_malaria-2.27.0.dist-info/top_level.txt,sha256=HjY1vjhSuhJeVv5pzWRW4FWR3vr0IOJfrvl8MlHOagA,13
|
|
8
|
-
emod_malaria-2.27.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|