vivarium-public-health 3.0.0__tar.gz → 3.0.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.github/workflows/build.yml +3 -42
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/CHANGELOG.rst +8 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/Jenkinsfile +2 -2
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/Makefile +6 -0
- {vivarium_public_health-3.0.0/src/vivarium_public_health.egg-info → vivarium_public_health-3.0.2}/PKG-INFO +1 -1
- vivarium_public_health-3.0.2/install_dependency_branch.sh +52 -0
- vivarium_public_health-3.0.2/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2/src/vivarium_public_health.egg-info}/PKG-INFO +1 -1
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health.egg-info/SOURCES.txt +1 -0
- vivarium_public_health-3.0.0/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.bandit +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.flake8 +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.gitattributes +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.gitignore +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.pylintrc +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.zenodo.json +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/LICENSE.txt +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/MANIFEST.in +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/README.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/Makefile +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/pyproject.toml +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/setup.cfg +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/setup.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/disability.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/conftest.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tox.ini +0 -0
@@ -41,52 +41,13 @@ jobs:
|
|
41
41
|
run: |
|
42
42
|
pip install .[dev]
|
43
43
|
git checkout ${branch_name}
|
44
|
-
- name: check for
|
44
|
+
- name: check for dependency branches and install if needed
|
45
45
|
run: |
|
46
|
-
|
47
|
-
|
48
|
-
iterations=0
|
49
|
-
while [ "$branch_name_to_check" != "$vivarium_branch_name" ]
|
50
|
-
do
|
51
|
-
echo "Checking for vivarium branch: ${branch_name_to_check}"
|
52
|
-
if [ $iterations -gt 20 ]; then
|
53
|
-
echo "Could not find upstream branch"
|
54
|
-
exit 1
|
55
|
-
fi
|
56
|
-
if
|
57
|
-
git ls-remote --exit-code \
|
58
|
-
--heads https://github.com/ihmeuw/vivarium.git ${branch_name_to_check} == "0"
|
59
|
-
then
|
60
|
-
vivarium_branch_name=${branch_name_to_check}
|
61
|
-
echo "Found matching branch: ${vivarium_branch_name}"
|
62
|
-
echo "vivarium_branch_name=${branch_name_to_check}" >> $GITHUB_ENV
|
63
|
-
else
|
64
|
-
branch_name_to_check="$( \
|
65
|
-
git show-branch -a \
|
66
|
-
| grep '\*' \
|
67
|
-
| grep -v `git rev-parse --abbrev-ref HEAD` \
|
68
|
-
| head -n1 \
|
69
|
-
| sed 's/[^\[]*//' \
|
70
|
-
| awk 'match($0, /\[[a-zA-Z0-9\/.-]+\]/) { print substr( $0, RSTART+1, RLENGTH-2 )}' \
|
71
|
-
| sed 's/^origin\///' \
|
72
|
-
)"
|
73
|
-
git checkout ${branch_name_to_check}
|
74
|
-
iterations=$((iterations+1))
|
75
|
-
fi
|
76
|
-
done
|
77
|
-
git checkout ${branch_name}
|
46
|
+
sh install_dependency_branch.sh layered_config_tree ${branch_name}
|
47
|
+
sh install_dependency_branch.sh vivarium ${branch_name}
|
78
48
|
- name: print environment values
|
79
49
|
run: |
|
80
50
|
cat $GITHUB_ENV
|
81
|
-
- name: Retrieve vivarium branch
|
82
|
-
if: env.vivarium_branch_name != 'main'
|
83
|
-
run: |
|
84
|
-
echo "Cloning upstream branch: ${vivarium_branch_name}"
|
85
|
-
pushd ..
|
86
|
-
git clone --branch=${vivarium_branch_name} https://github.com/ihmeuw/vivarium.git
|
87
|
-
pushd vivarium
|
88
|
-
pip install .
|
89
|
-
popd && popd
|
90
51
|
- name: Lint
|
91
52
|
run: |
|
92
53
|
pip install black==22.3.0 isort
|
@@ -36,7 +36,7 @@ pipeline {
|
|
36
36
|
)
|
37
37
|
string(
|
38
38
|
name: "SLACK_TO",
|
39
|
-
defaultValue: "simsci-ci-status
|
39
|
+
defaultValue: "simsci-ci-status",
|
40
40
|
description: "The Slack channel to send messages to."
|
41
41
|
)
|
42
42
|
booleanParam(
|
@@ -139,7 +139,7 @@ pipeline {
|
|
139
139
|
|
140
140
|
stage("Install Package") {
|
141
141
|
steps {
|
142
|
-
sh "${ACTIVATE} && make install"
|
142
|
+
sh "${ACTIVATE} && make install \"ARGS=${GIT_BRANCH}\""
|
143
143
|
}
|
144
144
|
}
|
145
145
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
SHELL := /bin/bash
|
1
2
|
this_makefile := $(lastword $(MAKEFILE_LIST)) # Used to automatically list targets
|
2
3
|
.DEFAULT_GOAL := list # If someone runs "make", run "make list"
|
3
4
|
|
@@ -56,6 +57,11 @@ build-env: # Make a new conda environment
|
|
56
57
|
install: # Install setuptools, install this package in editable mode
|
57
58
|
pip install --upgrade pip setuptools
|
58
59
|
pip install -e .[DEV]
|
60
|
+
@echo "Checking if the vivarium repository has the branch $(GIT_BRANCH)..."
|
61
|
+
@$(eval BRANCH_EXISTS=$(shell curl -s https://api.github.com/repos/ihmeuw/vivarium/branches | grep -q '"name": "$(GIT_BRANCH)"' && echo "yes" || echo "no"))
|
62
|
+
@if [ "$(BRANCH_EXISTS)" = "yes" ]; then \
|
63
|
+
pip install git+https://github.com/ihmeuw/vivarium@${GIT_BRANCH}; \
|
64
|
+
fi
|
59
65
|
|
60
66
|
format: setup.py pyproject.toml $(MAKE_SOURCES) # Run the code formatter and import sorter
|
61
67
|
black $(LOCATIONS)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.2
|
4
4
|
Summary: Components for modelling diseases, risks, and interventions with ``vivarium``
|
5
5
|
Home-page: https://github.com/ihmeuw/vivarium_public_health
|
6
6
|
Author: The vivarium developers
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Define variables
|
4
|
+
dependency_name=$1
|
5
|
+
branch_name=$2
|
6
|
+
|
7
|
+
root_dir=$(pwd)
|
8
|
+
dependency_branch_name='main'
|
9
|
+
branch_name_to_check=${branch_name}
|
10
|
+
iterations=0
|
11
|
+
|
12
|
+
while [ "$branch_name_to_check" != "$dependency_branch_name" ] && [ $iterations -lt 20 ]
|
13
|
+
do
|
14
|
+
echo "Checking for ${dependency_name} branch: '${branch_name_to_check}'"
|
15
|
+
if
|
16
|
+
git ls-remote --exit-code \
|
17
|
+
--heads https://github.com/ihmeuw/"${dependency_name}".git "${branch_name_to_check}" == "0"
|
18
|
+
then
|
19
|
+
dependency_branch_name=${branch_name_to_check}
|
20
|
+
echo "Found matching branch: ${dependency_branch_name}"
|
21
|
+
else
|
22
|
+
echo "Could not find ${dependency_name} branch '${branch_name_to_check}'. Finding parent branch."
|
23
|
+
branch_name_to_check="$( \
|
24
|
+
git show-branch -a \
|
25
|
+
| grep '\*' \
|
26
|
+
| grep -v "${branch_name_to_check}" \
|
27
|
+
| head -n1 \
|
28
|
+
| sed 's/[^\[]*//' \
|
29
|
+
| awk 'match($0, /\[[a-zA-Z0-9\/.-]+\]/) { print substr( $0, RSTART+1, RLENGTH-2 )}' \
|
30
|
+
| sed 's/^origin\///' \
|
31
|
+
)"
|
32
|
+
if [ -z "$branch_name_to_check" ]; then
|
33
|
+
echo "Could not find parent branch. Will use released version of ${dependency_name}."
|
34
|
+
branch_name_to_check="main"
|
35
|
+
fi
|
36
|
+
echo "Checking out branch: ${branch_name_to_check}"
|
37
|
+
git checkout "${branch_name_to_check}"
|
38
|
+
iterations=$((iterations+1))
|
39
|
+
fi
|
40
|
+
done
|
41
|
+
git checkout "${branch_name}"
|
42
|
+
|
43
|
+
echo "${dependency_name}_branch_name=${dependency_branch_name}" >> "$GITHUB_ENV"
|
44
|
+
|
45
|
+
if [ "$dependency_branch_name" != "main" ]; then
|
46
|
+
echo "Cloning ${dependency_name} branch: ${dependency_branch_name}"
|
47
|
+
cd ..
|
48
|
+
git clone --branch="${dependency_branch_name}" https://github.com/ihmeuw/"${dependency_name}".git
|
49
|
+
cd "${dependency_name}" || exit
|
50
|
+
pip install .
|
51
|
+
cd "$root_dir" || exit
|
52
|
+
fi
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.0.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.2
|
4
4
|
Summary: Components for modelling diseases, risks, and interventions with ``vivarium``
|
5
5
|
Home-page: https://github.com/ihmeuw/vivarium_public_health
|
6
6
|
Author: The vivarium developers
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.0.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/.github/pull_request_template.md
RENAMED
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
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/_templates/layout.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/api_reference/index.rst
RENAMED
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
|
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
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/docs/source/tutorials/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/src/vivarium_public_health/__init__.py
RENAMED
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/disease/test_special_disease.py
RENAMED
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
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/results/test_stratification.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.0 → vivarium_public_health-3.0.2}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|