Skip to main content

Python tools for MODFLOW development

Project description

MODFLOW developer tools

CI Documentation Status GitHub contributors GitHub tag

PyPI License PyPI Status PyPI Format PyPI Version PyPI Versions

Anaconda License Anaconda Version Anaconda Updated

Python development tools for MODFLOW 6.

Use cases

This is a small toolkit for developing MODFLOW 6, FloPy, and related projects. It includes standalone utilities and optional Pytest extensions.

Utilities include:

  • a minimal GitHub API client for retrieving release information and downloading assets
  • a ZipFile subclass that preserves file permissions (workaround for Python #15795)
  • other release/distribution-related tools

Pytest features include:

  • --keep <path> tempdir fixtures for each scope
  • a --smoke test (abbrev. -S) CLI option shortcut
  • markers to skip test cases conditional on
    • operating system
    • Python packages installed
    • executables available on the PATH
  • test fixtures for example / test models in
    • MODFLOW-USGS/modflow6-examples
    • MODFLOW-USGS/modflow6-testmodels
    • MODFLOW-USGS/modflow6-largetestmodels

Requirements

Python3.8+, dependency-free, but pairs well with pytest and select plugins, e.g.

Installation

modflow-devtools is available on PyPI and can be installed with pip:

pip install modflow-devtools

Pytest, pytest plugins, and other testing-related dependencies can be installed with:

pip install "modflow-devtools[test]"

To install from source and set up a development environment please see the developer documentation.

To import pytest fixtures in a project consuming modflow-devtools, add the following to a test file or conftest.py file:

pytest_plugins = [ "modflow_devtools.fixtures" ]

Note: this must be a top-level conftest.py, which nested conftest.py files may then override or extend.

Documentation

Docs are available at modflow-devtools.readthedocs.io.

For more info on MODFLOW 6 see the USGS overview.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modflow_devtools-1.6.0.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

modflow_devtools-1.6.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file modflow_devtools-1.6.0.tar.gz.

File metadata

  • Download URL: modflow_devtools-1.6.0.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for modflow_devtools-1.6.0.tar.gz
Algorithm Hash digest
SHA256 a3aaee876eb54b7a84b48477034666c3a1438f23baa84b96367c7ddddc84c663
MD5 2af85b938e0aac1576c41704bc75e01b
BLAKE2b-256 c63f029608199cc7bb15775d44cc6657409ffae7206fd3f7ee44c7884ca2b42c

See more details on using hashes here.

File details

Details for the file modflow_devtools-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for modflow_devtools-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9ddd6d3b0c9d35de3fd0c6591fd8ba851e33c19ddaadc2a4a77e10577ce156
MD5 c7346c6a203ec94c3fbd257e11c2c5b6
BLAKE2b-256 f556d75ff7cfec6208196a059341d8f21438a90fbfac4cc8e52fe1318d61cf84

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page