vivarium-public-health 3.0.0__tar.gz → 3.0.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.github/workflows/build.yml +1 -32
  2. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/CHANGELOG.rst +4 -0
  3. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/Jenkinsfile +2 -2
  4. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/Makefile +6 -0
  5. {vivarium_public_health-3.0.0/src/vivarium_public_health.egg-info → vivarium_public_health-3.0.1}/PKG-INFO +1 -1
  6. vivarium_public_health-3.0.1/get_upstream_branch.sh +40 -0
  7. vivarium_public_health-3.0.1/src/vivarium_public_health/_version.py +1 -0
  8. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1/src/vivarium_public_health.egg-info}/PKG-INFO +1 -1
  9. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health.egg-info/SOURCES.txt +1 -0
  10. vivarium_public_health-3.0.0/src/vivarium_public_health/_version.py +0 -1
  11. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.bandit +0 -0
  12. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.flake8 +0 -0
  13. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.gitattributes +0 -0
  14. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.github/CODEOWNERS +0 -0
  15. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.github/pull_request_template.md +0 -0
  16. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.github/workflows/deploy.yml +0 -0
  17. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.gitignore +0 -0
  18. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.pylintrc +0 -0
  19. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.readthedocs.yml +0 -0
  20. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/.zenodo.json +0 -0
  21. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/CODE_OF_CONDUCT.rst +0 -0
  22. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/CONTRIBUTING.rst +0 -0
  23. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/LICENSE.txt +0 -0
  24. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/MANIFEST.in +0 -0
  25. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/README.rst +0 -0
  26. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/Makefile +0 -0
  27. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/nitpick-exceptions +0 -0
  28. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/_static/style.css +0 -0
  29. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/_templates/layout.html +0 -0
  30. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/index.rst +0 -0
  31. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/model.rst +0 -0
  32. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/models.rst +0 -0
  33. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/special_disease.rst +0 -0
  34. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/state.rst +0 -0
  35. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/disease/transition.rst +0 -0
  36. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/index.rst +0 -0
  37. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/delay.rst +0 -0
  38. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/disease.rst +0 -0
  39. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/index.rst +0 -0
  40. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/intervention.rst +0 -0
  41. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
  42. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/observer.rst +0 -0
  43. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/mslt/population.rst +0 -0
  44. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/plugins/index.rst +0 -0
  45. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/plugins/parser.rst +0 -0
  46. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
  47. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/population/base_population.rst +0 -0
  48. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/population/data_transformations.rst +0 -0
  49. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/population/index.rst +0 -0
  50. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/population/mortality.rst +0 -0
  51. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/disability.rst +0 -0
  52. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/disease.rst +0 -0
  53. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/index.rst +0 -0
  54. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/mortality.rst +0 -0
  55. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/observer.rst +0 -0
  56. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/risk.rst +0 -0
  57. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/results/stratification.rst +0 -0
  58. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/base_risk.rst +0 -0
  59. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/data_transformations.rst +0 -0
  60. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/distributions.rst +0 -0
  61. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/effect.rst +0 -0
  62. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/implementations/index.rst +0 -0
  63. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
  64. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/risks/index.rst +0 -0
  65. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/treatment/index.rst +0 -0
  66. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
  67. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/treatment/scale_up.rst +0 -0
  68. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
  69. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/api_reference/utilities.rst +0 -0
  70. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/conf.py +0 -0
  71. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/index.rst +0 -0
  72. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/tutorials/index.rst +0 -0
  73. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/docs/source/tutorials/risk_exposure.rst +0 -0
  74. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/pyproject.toml +0 -0
  75. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/setup.cfg +0 -0
  76. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/setup.py +0 -0
  77. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/__about__.py +0 -0
  78. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/__init__.py +0 -0
  79. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/__init__.py +0 -0
  80. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/model.py +0 -0
  81. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/models.py +0 -0
  82. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/special_disease.py +0 -0
  83. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/state.py +0 -0
  84. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/disease/transition.py +0 -0
  85. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/__init__.py +0 -0
  86. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/delay.py +0 -0
  87. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/disease.py +0 -0
  88. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/intervention.py +0 -0
  89. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
  90. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/observer.py +0 -0
  91. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/mslt/population.py +0 -0
  92. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/plugins/__init__.py +0 -0
  93. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/plugins/parser.py +0 -0
  94. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/population/__init__.py +0 -0
  95. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
  96. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/population/base_population.py +0 -0
  97. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/population/data_transformations.py +0 -0
  98. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/population/mortality.py +0 -0
  99. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/__init__.py +0 -0
  100. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/columns.py +0 -0
  101. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/disability.py +0 -0
  102. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/disease.py +0 -0
  103. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/mortality.py +0 -0
  104. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/observer.py +0 -0
  105. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/risk.py +0 -0
  106. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/simple_cause.py +0 -0
  107. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/results/stratification.py +0 -0
  108. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/__init__.py +0 -0
  109. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/base_risk.py +0 -0
  110. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/data_transformations.py +0 -0
  111. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/distributions.py +0 -0
  112. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/effect.py +0 -0
  113. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
  114. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
  115. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/treatment/__init__.py +0 -0
  116. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
  117. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/treatment/scale_up.py +0 -0
  118. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
  119. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health/utilities.py +0 -0
  120. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
  121. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
  122. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health.egg-info/requires.txt +0 -0
  123. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
  124. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/__init__.py +0 -0
  125. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/conftest.py +0 -0
  126. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/disease/__init__.py +0 -0
  127. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/disease/test_disease.py +0 -0
  128. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/disease/test_special_disease.py +0 -0
  129. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/mock_artifact.py +0 -0
  130. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/plugins/__init__.py +0 -0
  131. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/plugins/test_parser.py +0 -0
  132. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/__init__.py +0 -0
  133. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/conftest.py +0 -0
  134. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/test_add_new_birth_cohort.py +0 -0
  135. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/test_base_population.py +0 -0
  136. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/test_data_transformations.py +0 -0
  137. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/population/test_mortality.py +0 -0
  138. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/__init__.py +0 -0
  139. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_categorical_risk_observer.py +0 -0
  140. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_disability.py +0 -0
  141. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_disability_observer.py +0 -0
  142. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_disease_observer.py +0 -0
  143. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_mortality_observer.py +0 -0
  144. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/results/test_stratification.py +0 -0
  145. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/__init__.py +0 -0
  146. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/conftest.py +0 -0
  147. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/test_base_risk.py +0 -0
  148. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/test_data_transformations.py +0 -0
  149. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/test_distributions.py +0 -0
  150. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/test_effect.py +0 -0
  151. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
  152. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/test_utilities.py +0 -0
  153. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tests/treatment/__init__.py +0 -0
  154. {vivarium_public_health-3.0.0 → vivarium_public_health-3.0.1}/tox.ini +0 -0
@@ -43,38 +43,7 @@ jobs:
43
43
  git checkout ${branch_name}
44
44
  - name: check for upstream branch
45
45
  run: |
46
- vivarium_branch_name='main'
47
- branch_name_to_check=${branch_name}
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 get_upstream_branch.sh ${branch_name}
78
47
  - name: print environment values
79
48
  run: |
80
49
  cat $GITHUB_ENV
@@ -1,3 +1,7 @@
1
+ **3.0.1 - 08/19/24**
2
+
3
+ - Fix bug in build script when the upstream vivarium branch should be main
4
+
1
5
  **3.0.0 - 08/13/24**
2
6
 
3
7
  Breaking changes:
@@ -36,7 +36,7 @@ pipeline {
36
36
  )
37
37
  string(
38
38
  name: "SLACK_TO",
39
- defaultValue: "simsci-ci-status-test",
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.0
3
+ Version: 3.0.1
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,40 @@
1
+ #!/bin/bash
2
+
3
+ # Define variables
4
+ branch_name=$1
5
+
6
+ vivarium_branch_name='main'
7
+ branch_name_to_check=${branch_name}
8
+ iterations=0
9
+
10
+ while [ "$branch_name_to_check" != "$vivarium_branch_name" ] && [ $iterations -lt 20 ]
11
+ do
12
+ echo "Checking for vivarium branch: '${branch_name_to_check}'"
13
+ if
14
+ git ls-remote --exit-code \
15
+ --heads https://github.com/ihmeuw/vivarium.git ${branch_name_to_check} == "0"
16
+ then
17
+ vivarium_branch_name=${branch_name_to_check}
18
+ echo "Found matching branch: ${vivarium_branch_name}"
19
+ else
20
+ echo "Could not find upstream branch '${branch_name_to_check}'. Finding parent branch."
21
+ branch_name_to_check="$( \
22
+ git show-branch -a \
23
+ | grep '\*' \
24
+ | grep -v `git rev-parse --abbrev-ref HEAD` \
25
+ | head -n1 \
26
+ | sed 's/[^\[]*//' \
27
+ | awk 'match($0, /\[[a-zA-Z0-9\/.-]+\]/) { print substr( $0, RSTART+1, RLENGTH-2 )}' \
28
+ | sed 's/^origin\///' \
29
+ )"
30
+ if [ -z "$branch_name_to_check" ]; then
31
+ echo "Could not find upstream branch. Will use released version."
32
+ branch_name_to_check="main"
33
+ fi
34
+ echo "Checking out branch: ${branch_name_to_check}"
35
+ git checkout ${branch_name_to_check}
36
+ iterations=$((iterations+1))
37
+ fi
38
+ done
39
+ echo "vivarium_branch_name=${vivarium_branch_name}" >> $GITHUB_ENV
40
+ git checkout ${branch_name}
@@ -0,0 +1 @@
1
+ __version__ = "3.0.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vivarium_public_health
3
- Version: 3.0.0
3
+ Version: 3.0.1
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
@@ -13,6 +13,7 @@ LICENSE.txt
13
13
  MANIFEST.in
14
14
  Makefile
15
15
  README.rst
16
+ get_upstream_branch.sh
16
17
  pyproject.toml
17
18
  setup.py
18
19
  tox.ini
@@ -1 +0,0 @@
1
- __version__ = "3.0.0"