vivarium-testing-utils 0.1.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.
Files changed (35) hide show
  1. vivarium_testing_utils-0.1.1/.gitattributes +1 -0
  2. vivarium_testing_utils-0.1.1/.github/CODEOWNERS +2 -0
  3. vivarium_testing_utils-0.1.1/.github/pull_request_template.md +23 -0
  4. vivarium_testing_utils-0.1.1/.github/workflows/build.yml +71 -0
  5. vivarium_testing_utils-0.1.1/.github/workflows/deploy.yml +50 -0
  6. vivarium_testing_utils-0.1.1/.github/workflows/pr_metrics.yml +59 -0
  7. vivarium_testing_utils-0.1.1/.gitignore +117 -0
  8. vivarium_testing_utils-0.1.1/.readthedocs.yml +21 -0
  9. vivarium_testing_utils-0.1.1/CHANGELOG.rst +7 -0
  10. vivarium_testing_utils-0.1.1/CODE_OF_CONDUCT.rst +81 -0
  11. vivarium_testing_utils-0.1.1/CONTRIBUTING.rst +19 -0
  12. vivarium_testing_utils-0.1.1/LICENSE +28 -0
  13. vivarium_testing_utils-0.1.1/MANIFEST.in +12 -0
  14. vivarium_testing_utils-0.1.1/PKG-INFO +83 -0
  15. vivarium_testing_utils-0.1.1/README.rst +22 -0
  16. vivarium_testing_utils-0.1.1/docs/Makefile +22 -0
  17. vivarium_testing_utils-0.1.1/docs/nitpick-exceptions +26 -0
  18. vivarium_testing_utils-0.1.1/docs/source/conf.py +254 -0
  19. vivarium_testing_utils-0.1.1/pyproject.toml +5 -0
  20. vivarium_testing_utils-0.1.1/setup.cfg +4 -0
  21. vivarium_testing_utils-0.1.1/setup.py +116 -0
  22. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils/__about__.py +19 -0
  23. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils/__init__.py +15 -0
  24. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils/_version.py +1 -0
  25. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils/fuzzy_checker.py +382 -0
  26. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/PKG-INFO +83 -0
  27. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/SOURCES.txt +33 -0
  28. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/dependency_links.txt +1 -0
  29. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/not-zip-safe +1 -0
  30. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/requires.txt +35 -0
  31. vivarium_testing_utils-0.1.1/src/vivarium_testing_utils.egg-info/top_level.txt +1 -0
  32. vivarium_testing_utils-0.1.1/tests/__init__.py +0 -0
  33. vivarium_testing_utils-0.1.1/tests/conftest.py +19 -0
  34. vivarium_testing_utils-0.1.1/tests/test_fuzzy_checker.py +7 -0
  35. vivarium_testing_utils-0.1.1/tox.ini +7 -0
@@ -0,0 +1 @@
1
+ * text=auto
@@ -0,0 +1,2 @@
1
+ # default owners
2
+ * @albrja @collijk @hussain-jafari @patricktnast @rmudambi @stevebachmeier
@@ -0,0 +1,23 @@
1
+ ## Title: Summary, imperative, start upper case, don't end with a period
2
+ <!-- Ideally, <=50 chars. 50 chars is here..: -->
3
+
4
+ ### Description
5
+ <!-- For use in commit message, wrap at 72 chars. 72 chars is here: -->
6
+ - *Category*: <!-- one of bugfix, feature, refactor, POC, CI/infrastructure, documentation,
7
+ revert, test, release, other/misc -->
8
+ - *JIRA issue*: https://jira.ihme.washington.edu/browse/MIC-XYZ
9
+
10
+ ### Changes and notes
11
+ <!--
12
+ Change description – why, what, anything unexplained by the above.
13
+ Include guidance to reviewers if changes are complex.
14
+ -->
15
+
16
+ ### Testing
17
+ <!--
18
+ Details on how code was verified, any unit tests local for the
19
+ repo, regression testing, etc. At a minimum, this should include an
20
+ integration test for a framework change. Consider: plots, images,
21
+ (small) csv file.
22
+ -->
23
+
@@ -0,0 +1,71 @@
1
+ # -----------------------------------------------------------------------------
2
+ # - invoked on push, pull_request, manual trigger, or schedule
3
+ # - test under at least 3 versions of python
4
+ # -----------------------------------------------------------------------------
5
+ name: build
6
+ on:
7
+ push:
8
+ pull_request:
9
+ workflow_dispatch:
10
+ schedule:
11
+ - cron: "0 8 * * *"
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ matrix:
18
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v4
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+ - name: Print environment values
26
+ run: |
27
+ python --version
28
+ cat $GITHUB_ENV
29
+ - name: Update pip
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ - name: Install dependencies
33
+ run: |
34
+ pip install .[dev]
35
+ - name: Lint
36
+ run: |
37
+ pip install black==22.3.0 isort
38
+ black . --check --diff
39
+ isort . --check --verbose --only-modified --diff
40
+ - name: Test
41
+ run: |
42
+ if "${{ github.event_name == 'schedule' }}"; then
43
+ pytest --runslow ./tests
44
+ else
45
+ pytest ./tests
46
+ fi
47
+ # - name: Doc build
48
+ # run: |
49
+ # make html -C docs/ SPHINXOPTS="-W --keep-going -n"
50
+ # - name: Doctest
51
+ # run: |
52
+ # make doctest -C docs/
53
+ - name: Send mail
54
+ # Notify when cron job fails
55
+ if: (github.event_name == 'schedule' && failure())
56
+ uses: dawidd6/action-send-mail@v2
57
+ with:
58
+ # mail server settings
59
+ server_address: smtp.gmail.com
60
+ server_port: 465
61
+ # user credentials
62
+ username: ${{ secrets.NOTIFY_EMAIL }}
63
+ password: ${{ secrets.NOTIFY_PASSWORD }}
64
+ # email subject
65
+ subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
66
+ # email body as text
67
+ body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
68
+ # comma-separated string, send email to
69
+ to: uw_ihme_simulationscience@uw.edu
70
+ # from email name
71
+ from: Vivarium Notifications
@@ -0,0 +1,50 @@
1
+ name: deploy
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v4
16
+ with:
17
+ python-version: "3.11"
18
+ - name: Install dependencies
19
+ run: |
20
+ python --version
21
+ python -m pip install --upgrade pip
22
+ pip install setuptools wheel build
23
+ # - name: Test
24
+ # run: |
25
+ # pip install .[test]
26
+ # pytest --runslow ./tests
27
+ - name: Build
28
+ run: python -m build
29
+ - name: Publish
30
+ uses: pypa/gh-action-pypi-publish@release/v1
31
+ - name: Send mail
32
+ # Notify when cron job fails
33
+ if: failure()
34
+ uses: dawidd6/action-send-mail@v2
35
+ with:
36
+ # mail server settings
37
+ server_address: smtp.gmail.com
38
+ server_port: 465
39
+ # user credentials
40
+ username: ${{ secrets.NOTIFY_EMAIL }}
41
+ password: ${{ secrets.NOTIFY_PASSWORD }}
42
+ # email subject
43
+ subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
44
+ # email body as text
45
+ body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
46
+ # comma-separated string, send email to
47
+ to: uw_ihme_simulationscience@uw.edu
48
+ # from email name
49
+ from: Vivarium Notifications
50
+
@@ -0,0 +1,59 @@
1
+ name: Post-Sprint PR metrics
2
+ on:
3
+ workflow_dispatch:
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ jobs:
9
+ build:
10
+ name: issue metrics
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ issues: write
14
+ pull-requests: read
15
+
16
+ steps:
17
+ - name: Set REPO_LIST environment variable
18
+ run: |
19
+ echo "REPO_LIST=repo:ihmeuw/vivarium repo:ihmeuw/vivarium_public_health repo:ihmeuw/vivarium_inputs repo:ihmeuw/vivarium_cluster_tools repo:ihmeuw/risk_distributions" >> $GITHUB_ENV
20
+ - name: Get dates for previous sprint
21
+ shell: bash
22
+ run: |
23
+ # Calculate the date two weeks ago
24
+ fourteen_days_ago=$(date -d "14 days ago" +%Y-%m-%d)
25
+
26
+ # Calculate yesterday's date
27
+ yesterday=$(date -d "today" +%Y-%m-%d)
28
+
29
+ # Set an environment variable with the date range
30
+ echo "$fourteen_days_ago..$yesterday"
31
+ echo "last_two_weeks=$fourteen_days_ago..$yesterday" >> "$GITHUB_ENV"
32
+
33
+ - name: Get issue metrics for PRs closed in last sprint
34
+ uses: github/issue-metrics@v3
35
+ env:
36
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
+ SEARCH_QUERY: $${{ env.REPO_LIST }} is:pr closed:${{ env.last_two_weeks }}
38
+
39
+ - name: Create issue for PRs closed in last sprint
40
+ uses: peter-evans/create-issue-from-file@v4
41
+ with:
42
+ title: Post-Sprint Closed Pull Request Metrics Report (dev)
43
+ token: ${{ secrets.GITHUB_TOKEN }}
44
+ content-filepath: ./issue_metrics.md
45
+ assignees: patricktnast
46
+
47
+ - name: Get issue metrics for currently open PRs
48
+ uses: github/issue-metrics@v3
49
+ env:
50
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
+ SEARCH_QUERY: '$${{ env.REPO_LIST }} is:pr is:open'
52
+
53
+ - name: Create issue for currently open PRs
54
+ uses: peter-evans/create-issue-from-file@v4
55
+ with:
56
+ title: Post-Sprint Open Pull Request Metrics Report (dev)
57
+ token: ${{ secrets.GITHUB_TOKEN }}
58
+ content-filepath: ./issue_metrics.md
59
+ assignees: patricktnast
@@ -0,0 +1,117 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ *.pyc
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+
51
+ # Translations
52
+ *.mo
53
+ *.pot
54
+
55
+ # Django stuff:
56
+ *.log
57
+ local_settings.py
58
+ db.sqlite3
59
+
60
+ # Flask stuff:
61
+ instance/
62
+ .webassets-cache
63
+
64
+ # Scrapy stuff:
65
+ .scrapy
66
+
67
+ # Sphinx documentation
68
+ docs/_build/
69
+
70
+ # PyBuilder
71
+ target/
72
+
73
+ # Jupyter Notebook
74
+ .ipynb_checkpoints
75
+
76
+ # pyenv
77
+ .python-version
78
+
79
+ # celery beat schedule file
80
+ celerybeat-schedule
81
+
82
+ # SageMath parsed files
83
+ *.sage.py
84
+
85
+ # Environments
86
+ .env
87
+ .venv
88
+ env/
89
+ venv/
90
+ ENV/
91
+ env.bak/
92
+ venv.bak/
93
+
94
+ # Spyder project settings
95
+ .spyderproject
96
+ .spyproject
97
+
98
+ # Rope project settings
99
+ .ropeproject
100
+
101
+ # mkdocs documentation
102
+ /site
103
+
104
+ # mypy
105
+ .mypy_cache/
106
+
107
+ # Pycharm project settings
108
+ .idea/
109
+
110
+ # Visual Studio Code project settings
111
+ .vscode/
112
+
113
+ # Local user jupyter notebooks directory
114
+ notebooks/
115
+
116
+ # Version file
117
+ src/vivarium_testing_utils/_version.py
@@ -0,0 +1,21 @@
1
+ # This is the version for the readthedocs configuration. Version 2 ignores
2
+ # web-based configuration and uses everything from this file.
3
+ version: 2
4
+
5
+ # Configure the python version and environment construction run before
6
+ # docs are built.
7
+ build:
8
+ os: ubuntu-22.04
9
+ tools:
10
+ python: "3.11"
11
+ python:
12
+ install:
13
+ # This runs pip install .[docs] from the project root.
14
+ - method: pip
15
+ path: .
16
+ extra_requirements:
17
+ - docs
18
+
19
+ # Doc builds will fail if there are any warnings
20
+ sphinx:
21
+ fail_on_warning: true
@@ -0,0 +1,7 @@
1
+ **0.1.1 - 10/14/24**
2
+
3
+ - Make name an optional parameter to fuzzy_assert_proportion
4
+
5
+ **0.1.0 - 03/01/24**
6
+
7
+ - Repository creation
@@ -0,0 +1,81 @@
1
+ Code of Conduct
2
+ ===============
3
+
4
+ Our Pledge
5
+ ----------
6
+
7
+ In the interest of fostering an open and welcoming environment, we as
8
+ contributors and maintainers pledge to making participation in our project and
9
+ our community a harassment-free experience for everyone, regardless of age, body
10
+ size, disability, ethnicity, gender identity and expression, level of experience,
11
+ nationality, personal appearance, race, religion, or sexual identity and
12
+ orientation.
13
+
14
+ Our Standards
15
+ -------------
16
+
17
+ Examples of behavior that contributes to creating a positive environment
18
+ include:
19
+
20
+ - Using welcoming and inclusive language
21
+ - Being respectful of differing viewpoints and experiences
22
+ - Gracefully accepting constructive criticism
23
+ - Focusing on what is best for the community
24
+ - Showing empathy towards other community members
25
+
26
+ Examples of unacceptable behavior by participants include:
27
+
28
+ - The use of sexualized language or imagery and unwelcome sexual attention or
29
+ advances
30
+ - Trolling, insulting/derogatory comments, and personal or political attacks
31
+ - Public or private harassment
32
+ - Publishing others' private information, such as a physical or electronic
33
+ address, without explicit permission
34
+ - Other conduct which could reasonably be considered inappropriate in a
35
+ professional setting
36
+
37
+ Our Responsibilities
38
+ --------------------
39
+
40
+ Project maintainers are responsible for clarifying the standards of acceptable
41
+ behavior and are expected to take appropriate and fair corrective action in
42
+ response to any instances of unacceptable behavior.
43
+
44
+ Project maintainers have the right and responsibility to remove, edit, or
45
+ reject comments, commits, code, wiki edits, issues, and other contributions
46
+ that are not aligned to this Code of Conduct, or to ban temporarily or
47
+ permanently any contributor for other behaviors that they deem inappropriate,
48
+ threatening, offensive, or harmful.
49
+
50
+ Scope
51
+ -----
52
+
53
+ This Code of Conduct applies both within project spaces and in public spaces
54
+ when an individual is representing the project or its community. Examples of
55
+ representing a project or community include using an official project e-mail
56
+ address, posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event. Representation of a project may be
58
+ further defined and clarified by project maintainers.
59
+
60
+ Enforcement
61
+ -----------
62
+
63
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
64
+ reported by contacting the current maintainer (found in this repositories AUTHORS.md). All
65
+ complaints will be reviewed and investigated and will result in a response that
66
+ is deemed necessary and appropriate to the circumstances. The project team is
67
+ obligated to maintain confidentiality with regard to the reporter of an incident.
68
+ Further details of specific enforcement policies may be posted separately.
69
+
70
+ Project maintainers who do not follow or enforce the Code of Conduct in good
71
+ faith may face temporary or permanent repercussions as determined by other
72
+ members of the project's leadership.
73
+
74
+ Attribution
75
+ -----------
76
+
77
+ This Code of Conduct is adapted from the `Contributor Covenant`_, version 1.4,
78
+ available at `version`_.
79
+
80
+ .. _Contributor Covenant: http://contributor-covenant.org
81
+ .. _version: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,19 @@
1
+ Contributing
2
+ ============
3
+
4
+ When contributing to this repository, please first discuss the change you wish to make via issue,
5
+ email, or any other method with the owners of this repository before making a change.
6
+
7
+ Please note we have a code of conduct, please follow it in all your interactions with the project.
8
+
9
+ Submitting Changes
10
+ ------------------
11
+
12
+ - Always make a new branch for your work.
13
+ - Patches should be small to facilitate easier review. Sometimes this will result in many small
14
+ PRs to land a single large feature.
15
+ - Larger changes should be discussed in the project's GitHub issues page.
16
+ - New features and significant bug fixes should be documented in the changelog.
17
+ - You must have legal permission to distribute any code you contribute to ``vivarium_testing_utils``, and it
18
+ must be available under both the GNU GPLv3 license.
19
+
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, Institute for Health Metrics and Evaluation
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,12 @@
1
+ include AUTHORS.rst
2
+ include CHANGELOG.rst
3
+ include CODE_OF_CONDUCT.rst
4
+ include CONTRIBUTING.rst
5
+ include LICENSE.txt
6
+ include README.rst
7
+
8
+ recursive-include docs *
9
+ prune docs/_build
10
+
11
+ recursive-include src/vivarium_testing_utils *.py *.yaml
12
+ recursive-include tests *.py *txt *.yaml
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.1
2
+ Name: vivarium_testing_utils
3
+ Version: 0.1.1
4
+ Summary: Project to store testing utilities for Vivarium software.
5
+ Home-page: https://github.com/ihmeuw/vivarium_testing_utils
6
+ Author: The vivarium developers
7
+ Author-email: vivarium.dev@gmail.com
8
+ License: BSD-3-Clause
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Education
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
13
+ Classifier: Natural Language :: English
14
+ Classifier: Operating System :: MacOS :: MacOS X
15
+ Classifier: Operating System :: POSIX
16
+ Classifier: Operating System :: POSIX :: BSD
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Operating System :: Microsoft :: Windows
19
+ Classifier: Programming Language :: Python
20
+ Classifier: Programming Language :: Python :: Implementation :: CPython
21
+ Classifier: Topic :: Education
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Life
24
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
25
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
26
+ Classifier: Topic :: Scientific/Engineering :: Physics
27
+ Classifier: Topic :: Software Development :: Libraries
28
+ License-File: LICENSE
29
+ Requires-Dist: numpy
30
+ Requires-Dist: pandas
31
+ Requires-Dist: pyyaml>=5.1
32
+ Requires-Dist: scipy
33
+ Requires-Dist: click
34
+ Requires-Dist: tables
35
+ Requires-Dist: networkx
36
+ Requires-Dist: loguru
37
+ Provides-Extra: docs
38
+ Requires-Dist: sphinx>=4.0; extra == "docs"
39
+ Requires-Dist: sphinx-rtd-theme; extra == "docs"
40
+ Requires-Dist: sphinx-click; extra == "docs"
41
+ Requires-Dist: IPython; extra == "docs"
42
+ Requires-Dist: matplotlib; extra == "docs"
43
+ Provides-Extra: test
44
+ Requires-Dist: pytest; extra == "test"
45
+ Requires-Dist: pytest-mock; extra == "test"
46
+ Provides-Extra: interactive
47
+ Requires-Dist: IPython; extra == "interactive"
48
+ Requires-Dist: ipywidgets; extra == "interactive"
49
+ Requires-Dist: jupyter; extra == "interactive"
50
+ Provides-Extra: dev
51
+ Requires-Dist: sphinx>=4.0; extra == "dev"
52
+ Requires-Dist: sphinx-rtd-theme; extra == "dev"
53
+ Requires-Dist: sphinx-click; extra == "dev"
54
+ Requires-Dist: IPython; extra == "dev"
55
+ Requires-Dist: matplotlib; extra == "dev"
56
+ Requires-Dist: pytest; extra == "dev"
57
+ Requires-Dist: pytest-mock; extra == "dev"
58
+ Requires-Dist: IPython; extra == "dev"
59
+ Requires-Dist: ipywidgets; extra == "dev"
60
+ Requires-Dist: jupyter; extra == "dev"
61
+
62
+ ======================
63
+ Vivarium Testing Utils
64
+ ======================
65
+
66
+ This is a repository that will store utility features to help test
67
+ Vivarium software.
68
+
69
+ **Vivarium Testing Utils requires Python 3.8-3.11 to run**
70
+
71
+ You can install ``vivarium_testing_utils`` from PyPI with pip:
72
+
73
+ ``> pip install vivarium_testing_utils``
74
+
75
+ or build it from source with
76
+
77
+ ``> git clone https://github.com/ihmeuw/vivarium_testing_utils.git``
78
+
79
+ ``> cd vivarium_testing_utils``
80
+
81
+ ``> conda create -n ENVIRONMENT_NAME python=3.11``
82
+
83
+ ``> pip install -e .[dev]``
@@ -0,0 +1,22 @@
1
+ ======================
2
+ Vivarium Testing Utils
3
+ ======================
4
+
5
+ This is a repository that will store utility features to help test
6
+ Vivarium software.
7
+
8
+ **Vivarium Testing Utils requires Python 3.8-3.11 to run**
9
+
10
+ You can install ``vivarium_testing_utils`` from PyPI with pip:
11
+
12
+ ``> pip install vivarium_testing_utils``
13
+
14
+ or build it from source with
15
+
16
+ ``> git clone https://github.com/ihmeuw/vivarium_testing_utils.git``
17
+
18
+ ``> cd vivarium_testing_utils``
19
+
20
+ ``> conda create -n ENVIRONMENT_NAME python=3.11``
21
+
22
+ ``> pip install -e .[dev]``
@@ -0,0 +1,22 @@
1
+ # Minimal makefile for Sphinx documentation
2
+
3
+ # You can set these variables from the command line.
4
+ SPHINXOPTS =
5
+ SPHINXBUILD = sphinx-build
6
+ SPHINXPROJ = vivarium_testing_utils
7
+ SOURCEDIR = source
8
+ BUILDDIR = build
9
+
10
+ # Put it first so that "make" without argument is like "make help".
11
+ help:
12
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13
+
14
+ .PHONY: help Makefile
15
+
16
+ # Catch-all target: route all unknown targets to Sphinx using the new
17
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18
+ %: Makefile
19
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20
+
21
+ clean:
22
+ rm -rf build/*
@@ -0,0 +1,26 @@
1
+ # pandas
2
+ py:class pandas.core.indexes.base.Index
3
+ py:class pandas.core.indexes.multi.MultiIndex
4
+ py:class pandas._libs.tslibs.timestamps.Timestamp
5
+ py:class pandas._libs.tslibs.timedeltas.Timedelta
6
+ py:class pandas.core.frame.DataFrame
7
+ py:class pandas.core.series.Series
8
+ py:class pandas.core.generic.PandasObject
9
+
10
+ #scipy
11
+ py:class scipy.stats._distn_infrastructure.rv_continuous
12
+
13
+ # loguru
14
+ py:class loguru._logger.Logger
15
+
16
+ # vivarium
17
+ # Type aliases don't play nicely with sphinx when you import them
18
+ # elsewhere. Works fine for static type checker though. I think this
19
+ # is cause sphinx does runtime checks.
20
+ py:class Time
21
+ py:class vivarium.framework.time.Time
22
+ py:class Timedelta
23
+ py:class vivarium.framework.time.Timedelta
24
+
25
+ # TODO: Need to revisit this. Nitpicking here to avoid failing builds on 3.8 and 3.9 in state_machine and testing_utils
26
+ py:class Logger