vivarium-public-health 3.2.0__tar.gz → 3.2.1__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.
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.readthedocs.yml +4 -4
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/CHANGELOG.rst +4 -0
- vivarium_public_health-3.2.1/Jenkinsfile +4 -0
- vivarium_public_health-3.2.1/Makefile +13 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/PKG-INFO +2 -2
- vivarium_public_health-3.2.1/python_versions.json +1 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/setup.py +28 -1
- vivarium_public_health-3.2.1/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/PKG-INFO +2 -2
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/SOURCES.txt +1 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/requires.txt +1 -1
- vivarium_public_health-3.2.0/Jenkinsfile +0 -2
- vivarium_public_health-3.2.0/Makefile +0 -104
- vivarium_public_health-3.2.0/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.bandit +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.flake8 +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.gitattributes +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.gitignore +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.pylintrc +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.zenodo.json +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/LICENSE.txt +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/MANIFEST.in +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/README.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/Makefile +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/simple_cause.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/pyproject.toml +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/setup.cfg +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/exceptions.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/disability.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/conftest.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/data/rr_interpolator.csv +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/treatment/test_scale_up.py +0 -0
- {vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tox.ini +0 -0
@@ -1,6 +1,10 @@
|
|
1
1
|
# This is the version for the readthedocs configuration. Version 2 ignores
|
2
2
|
# web-based configuration and uses everything from this file.
|
3
3
|
version: 2
|
4
|
+
# Doc builds will fail if there are any warnings
|
5
|
+
sphinx:
|
6
|
+
configuration: docs/source/conf.py
|
7
|
+
fail_on_warning: true
|
4
8
|
|
5
9
|
# Configure the python version and environment construction run before
|
6
10
|
# docs are built.
|
@@ -15,7 +19,3 @@ python:
|
|
15
19
|
path: .
|
16
20
|
extra_requirements:
|
17
21
|
- docs
|
18
|
-
|
19
|
-
# Doc builds will fail if there are any warnings
|
20
|
-
sphinx:
|
21
|
-
fail_on_warning: true
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Check if we're running in Jenkins
|
2
|
+
ifdef JENKINS_URL
|
3
|
+
# Files are already in workspace from shared library
|
4
|
+
MAKE_INCLUDES := .
|
5
|
+
else
|
6
|
+
# For local dev, search in parent directory
|
7
|
+
MAKE_INCLUDES := ../vivarium_build_utils/resources/makefiles
|
8
|
+
endif
|
9
|
+
|
10
|
+
PACKAGE_NAME = vivarium_public_health
|
11
|
+
|
12
|
+
include $(MAKE_INCLUDES)/base.mk
|
13
|
+
include $(MAKE_INCLUDES)/test.mk
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.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
|
@@ -63,7 +63,7 @@ Requires-Dist: pytest-mock; extra == "dev"
|
|
63
63
|
Requires-Dist: hypothesis; extra == "dev"
|
64
64
|
Requires-Dist: pyyaml; extra == "dev"
|
65
65
|
Requires-Dist: black==22.3.0; extra == "dev"
|
66
|
-
Requires-Dist: isort; extra == "dev"
|
66
|
+
Requires-Dist: isort==5.13.2; extra == "dev"
|
67
67
|
Dynamic: author
|
68
68
|
Dynamic: author-email
|
69
69
|
Dynamic: classifier
|
@@ -0,0 +1 @@
|
|
1
|
+
["3.10", "3.11"]
|
@@ -1,8 +1,35 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
|
+
import json
|
2
3
|
import os
|
4
|
+
import sys
|
3
5
|
|
6
|
+
from packaging.version import parse
|
4
7
|
from setuptools import find_packages, setup
|
5
8
|
|
9
|
+
with open("python_versions.json", "r") as f:
|
10
|
+
supported_python_versions = json.load(f)
|
11
|
+
|
12
|
+
python_versions = [parse(v) for v in supported_python_versions]
|
13
|
+
min_version = min(python_versions)
|
14
|
+
max_version = max(python_versions)
|
15
|
+
if not (
|
16
|
+
min_version <= parse(".".join([str(v) for v in sys.version_info[:2]])) <= max_version
|
17
|
+
):
|
18
|
+
py_version = ".".join([str(v) for v in sys.version_info[:3]])
|
19
|
+
# NOTE: Python 3.5 does not support f-strings
|
20
|
+
error = (
|
21
|
+
"\n--------------------------------------------\n"
|
22
|
+
"Error: Vivarium Public Health runs under python {min_version}-{max_version}.\n"
|
23
|
+
"You are running python {py_version}.\n".format(
|
24
|
+
min_version=min_version.base_version,
|
25
|
+
max_version=max_version.base_version,
|
26
|
+
py_version=py_version,
|
27
|
+
)
|
28
|
+
+ "--------------------------------------------\n"
|
29
|
+
)
|
30
|
+
print(error, file=sys.stderr)
|
31
|
+
sys.exit(1)
|
32
|
+
|
6
33
|
if __name__ == "__main__":
|
7
34
|
base_dir = os.path.dirname(__file__)
|
8
35
|
src_dir = os.path.join(base_dir, "src")
|
@@ -48,7 +75,7 @@ if __name__ == "__main__":
|
|
48
75
|
|
49
76
|
lint_requirements = [
|
50
77
|
"black==22.3.0",
|
51
|
-
"isort",
|
78
|
+
"isort==5.13.2",
|
52
79
|
]
|
53
80
|
|
54
81
|
setup(
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.2.1"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.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
|
@@ -63,7 +63,7 @@ Requires-Dist: pytest-mock; extra == "dev"
|
|
63
63
|
Requires-Dist: hypothesis; extra == "dev"
|
64
64
|
Requires-Dist: pyyaml; extra == "dev"
|
65
65
|
Requires-Dist: black==22.3.0; extra == "dev"
|
66
|
-
Requires-Dist: isort; extra == "dev"
|
66
|
+
Requires-Dist: isort==5.13.2; extra == "dev"
|
67
67
|
Dynamic: author
|
68
68
|
Dynamic: author-email
|
69
69
|
Dynamic: classifier
|
@@ -1,104 +0,0 @@
|
|
1
|
-
SHELL := /bin/bash
|
2
|
-
this_makefile := $(lastword $(MAKEFILE_LIST)) # Used to automatically list targets
|
3
|
-
.DEFAULT_GOAL := list # If someone runs "make", run "make list"
|
4
|
-
|
5
|
-
# Source files to format, lint, and type check.
|
6
|
-
LOCATIONS=src tests
|
7
|
-
|
8
|
-
# Unless overridden, build conda environment using the package name.
|
9
|
-
PACKAGE_NAME = vivarium_public_health
|
10
|
-
SAFE_NAME = $(shell python -c "from pkg_resources import safe_name; print(safe_name(\"$(PACKAGE_NAME)\"))")
|
11
|
-
|
12
|
-
setup_file = $(shell find -name setup.py)
|
13
|
-
version_line = $(shell grep "version = " ${setup_file})
|
14
|
-
PACKAGE_VERSION = $(shell echo ${version_line} | cut -d "=" -f 2 | xargs)
|
15
|
-
|
16
|
-
# Use this URL to pull IHME Python packages and deploy this package to PyPi.
|
17
|
-
IHME_PYPI := https://artifactory.ihme.washington.edu/artifactory/api/pypi/pypi-shared/
|
18
|
-
|
19
|
-
# If CONDA_ENV_PATH is set (from a Jenkins build), use the -p flag when making Conda env in
|
20
|
-
# order to make env at specific path. Otherwise, make a named env at the default path using
|
21
|
-
# the -n flag.
|
22
|
-
PYTHON_VERSION ?= 3.11
|
23
|
-
CONDA_ENV_NAME ?= ${PACKAGE_NAME}_py${PYTHON_VERSION}
|
24
|
-
CONDA_ENV_CREATION_FLAG = $(if $(CONDA_ENV_PATH),-p ${CONDA_ENV_PATH},-n ${CONDA_ENV_NAME})
|
25
|
-
|
26
|
-
# These are the doc and source code files in this repo.
|
27
|
-
# When one of these files changes, it means that Make targets need to run again.
|
28
|
-
MAKE_SOURCES := $(shell find . -type d -name "*" ! -path "./.git*" ! -path "./.vscode" ! -path "./output" ! -path "./output/*" ! -path "./archive" ! -path "./dist" ! -path "./output/htmlcov*" ! -path "**/.pytest_cache*" ! -path "**/__pycache__" ! -path "./output/docs_build*" ! -path "./.pytype*" ! -path "." ! -path "./src/${PACKAGE_NAME}/legacy*" ! -path ./.history ! -path "./.history/*" ! -path "./src/${PACKAGE_NAME}.egg-info" ! -path ./.idea ! -path "./.idea/*" )
|
29
|
-
|
30
|
-
|
31
|
-
# Phony targets don't produce artifacts.
|
32
|
-
.PHONY: .list-targets build-env clean debug deploy-doc deploy-package full help install list quick
|
33
|
-
|
34
|
-
# List of Make targets is generated dynamically. To add description of target, use a # on the target definition.
|
35
|
-
list help: debug .list-targets
|
36
|
-
|
37
|
-
.list-targets: # Print available Make targets
|
38
|
-
@echo
|
39
|
-
@echo "Make targets:"
|
40
|
-
@grep -i "^[a-zA-Z][a-zA-Z0-9_ \.\-]*: .*[#].*" ${this_makefile} | sort | sed 's/:.*#/ : /g' | column -t -s:
|
41
|
-
@echo
|
42
|
-
|
43
|
-
debug: # Print debug information (environment variables)
|
44
|
-
@echo "'make' invoked with these environment variables:"
|
45
|
-
@echo "CONDA_ENV_NAME: ${CONDA_ENV_NAME}"
|
46
|
-
@echo "IHME_PYPI: ${IHME_PYPI}"
|
47
|
-
@echo "LOCATIONS: ${LOCATIONS}"
|
48
|
-
@echo "PACKAGE_NAME: ${PACKAGE_NAME}"
|
49
|
-
@echo "PACKAGE_VERSION: ${PACKAGE_VERSION}"
|
50
|
-
@echo "PYPI_ARTIFACTORY_CREDENTIALS_USR: ${PYPI_ARTIFACTORY_CREDENTIALS_USR} "
|
51
|
-
@echo "Make sources: ${MAKE_SOURCES}"
|
52
|
-
|
53
|
-
build-env: # Make a new conda environment
|
54
|
-
@[ "${CONDA_ENV_NAME}" ] && echo "" > /dev/null || ( echo "CONDA_ENV_NAME is not set"; exit 1 )
|
55
|
-
conda create ${CONDA_ENV_CREATION_FLAG} python=${PYTHON_VERSION} --yes
|
56
|
-
|
57
|
-
install: # Install setuptools, install this package in editable mode
|
58
|
-
pip install --upgrade pip setuptools
|
59
|
-
pip install -e .[DEV]
|
60
|
-
@cd ..
|
61
|
-
@echo "----------------------------------------"
|
62
|
-
@if [ ! -d "vivarium_build_utils" ]; then \
|
63
|
-
# Clone the build utils repo if it doesn't exist. \
|
64
|
-
git clone https://github.com/ihmeuw/vivarium_build_utils.git; \
|
65
|
-
else \
|
66
|
-
echo "vivarium_build_utils already exists. Skipping clone."; \
|
67
|
-
fi
|
68
|
-
@echo "Contents of install_dependency_branch.sh"
|
69
|
-
@echo "----------------------------------------"
|
70
|
-
@cat vivarium_build_utils/install_dependency_branch.sh
|
71
|
-
@echo ""
|
72
|
-
@echo "----------------------------------------"
|
73
|
-
@sh vivarium_build_utils/install_dependency_branch.sh vivarium ${GIT_BRANCH} jenkins
|
74
|
-
@sh vivarium_build_utils/install_dependency_branch.sh layered_config_tree ${GIT_BRANCH} jenkins
|
75
|
-
@sh vivarium_build_utils/install_dependency_branch.sh risk_distributions ${GIT_BRANCH} jenkins
|
76
|
-
|
77
|
-
format: setup.py pyproject.toml $(MAKE_SOURCES) # Run the code formatter and import sorter
|
78
|
-
black $(LOCATIONS)
|
79
|
-
isort $(LOCATIONS)
|
80
|
-
@echo "Ignore, Created by Makefile, `date`" > $@
|
81
|
-
|
82
|
-
lint: .flake8 .bandit $(MAKE_SOURCES) # Run the code linter and package security vulnerability checker
|
83
|
-
-flake8 $(LOCATIONS)
|
84
|
-
-safety check
|
85
|
-
@echo "Ignore, Created by Makefile, `date`" > $@
|
86
|
-
|
87
|
-
integration: $(MAKE_SOURCES) # Run the end-to-end tests
|
88
|
-
export COVERAGE_FILE=./output/.coverage.integration
|
89
|
-
pytest --runslow tests --cov --cov-report term --cov-report html:./output/htmlcov_integration
|
90
|
-
@echo "Ignore, Created by Makefile, `date`" > $@
|
91
|
-
|
92
|
-
build-doc: $(MAKE_SOURCES) # Build the Sphinx docs
|
93
|
-
$(MAKE) -C docs/ html
|
94
|
-
@echo "Ignore, Created by Makefile, `date`" > $@
|
95
|
-
|
96
|
-
build-package: $(MAKE_SOURCES) # Build the package as a pip wheel
|
97
|
-
pip install build
|
98
|
-
python -m build
|
99
|
-
@echo "Ignore, Created by Makefile, `date`" > $@
|
100
|
-
|
101
|
-
clean: # Delete build artifacts and do any custom cleanup such as spinning down services
|
102
|
-
@rm -rf format lint build-doc build-package integration .pytest_cache
|
103
|
-
@rm -rf dist output
|
104
|
-
$(shell find . -type f -name '*py[co]' -delete -o -type d -name __pycache__ -delete)
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.2.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/.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.2.0 → vivarium_public_health-3.2.1}/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.2.0 → vivarium_public_health-3.2.1}/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
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/docs/source/tutorials/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/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
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/data/rr_interpolator.csv
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/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.2.0 → vivarium_public_health-3.2.1}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/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.2.0 → vivarium_public_health-3.2.1}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.0 → vivarium_public_health-3.2.1}/tests/treatment/test_scale_up.py
RENAMED
File without changes
|
File without changes
|