-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from csdms/mcflugen/use-argparse
Use argparse instead of click
- Loading branch information
Showing
23 changed files
with
279 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,17 +45,6 @@ jobs: | |
|
||
debug: true | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wntrblm/[email protected] | ||
with: | ||
python-versions: "3.12" | ||
- name: Lint | ||
run: nox --non-interactive --error-on-missing-interpreter --session "lint" | ||
|
||
|
||
coveralls_finish: | ||
needs: build-and-test | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,7 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.egg-info/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
.coverage | ||
.nox/ | ||
__pycache__/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.nox | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# BMI for Python | ||
|
||
Python bindings for the CSDMS [Basic Model Interface](https://bmi.readthedocs.io). | ||
|
||
![[Python][pypi-link]][python-badge] | ||
![[DOI][doi-link]][doi-badge] | ||
![[Build Status][build-link]][build-badge] | ||
![[PyPI][pypi-link]][pypi-badge] | ||
![[Build Status][anaconda-link]][anaconda-badge] | ||
|
||
[anaconda-badge]: https://anaconda.org/conda-forge/bmipy/badges/version.svg | ||
[anaconda-link]: https://anaconda.org/conda-forge/bmipy | ||
[build-badge]: https://github.com/csdms/bmi-python/actions/workflows/test.yml/badge.svg | ||
[build-link]: https://github.com/csdms/bmi-python/actions/workflows/test.yml | ||
[doi-badge]: https://zenodo.org/badge/179283861.svg | ||
[doi-link]: https://zenodo.org/badge/latestdoi/179283861 | ||
[pypi-badge]: https://badge.fury.io/py/bmipy.svg | ||
[pypi-link]: https://pypi.org/project/bmipy/ | ||
[python-badge]: https://img.shields.io/pypi/pyversions/bmipy.svg | ||
|
||
## Install | ||
|
||
Install *bmipy* with *pip*, | ||
|
||
```bash | ||
pip install bmipy | ||
``` | ||
|
||
If you're using Anaconda, you can also install *bmipy* | ||
with conda from the *conda-forge* channel, | ||
|
||
```bash | ||
conda install bmipy -c conda-forge | ||
``` | ||
|
||
To build and install *bmipy* from source, | ||
|
||
```bash | ||
pip install git+https://github.com/csdms/bmi-python.git | ||
``` | ||
|
||
## Usage | ||
|
||
```python | ||
from bmipy import Bmi | ||
|
||
|
||
class MyBmi(Bmi): | ||
|
||
def initialize(self, config_file): | ||
# Your implementation goes here | ||
``` | ||
|
||
A complete sample implementation is given in the | ||
<https://github.com/csdms/bmi-example-python> | ||
repository. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
import os | ||
import pathlib | ||
import shutil | ||
|
Oops, something went wrong.