Skip to content

Commit

Permalink
Merge pull request #25 from csdms/mdpiper/test-with-3.12
Browse files Browse the repository at this point in the history
Test with Python 3.12
  • Loading branch information
mdpiper authored Mar 22, 2024
2 parents 41f6a16 + 6ef6275 commit c2cc77c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
Expand All @@ -46,10 +46,10 @@ jobs:
nox -s test --python ${{ matrix.python-version }}
- name: Test BMI
if: ${{ matrix.python-version == '3.9' }}
if: ${{ matrix.python-version == '3.12' }}
run: |
nox -s test-bmi --python ${{ matrix.python-version }}
- name: Coveralls
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: AndreMiras/coveralls-python-action@develop
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: geotiff
channels:
- conda-forge
dependencies:
- python >=3.9
- python >=3.10
- pip
- pyyaml
- rioxarray
Expand Down
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
HERE = pathlib.Path(__file__)
ROOT = HERE.parent
PATHS = [PACKAGE, "docs", "examples", "tests", HERE.name]
PYTHON_VERSIONS = ["3.9", "3.10", "3.11"]
PYTHON_VERSIONS = ["3.10", "3.11", "3.12"]


@nox.session(python=PYTHON_VERSIONS)
Expand All @@ -36,15 +36,15 @@ def test(session: nox.Session) -> None:
@nox.session(name="test-bmi", python=PYTHON_VERSIONS, venv_backend="conda")
def test_bmi(session: nox.Session) -> None:
"""Test the Basic Model Interface."""
session.conda_install("bmi-tester", "pymt>=1.3")
session.install("bmi-tester>=0.5.9")
session.install(".")
session.run(
"bmi-test",
f"{PACKAGE}:BmiGeoTiff",
"--config-file",
"./examples/config.yaml",
f"{ROOT}/examples/config.yaml",
"--root-dir",
"./examples",
"examples",
"-vvv",
)

Expand Down
16 changes: 13 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ keywords = [
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.7"
requires-python = ">=3.10"
dependencies = [
"numpy",
"pyyaml",
Expand All @@ -36,7 +39,7 @@ dependencies = [
dynamic = ["readme", "version"]

[project.urls]
Homepage = "https://github.com/csdms/bmi-geotiff"
Homepage = "https://csdms.colorado.edu"
Documentation = "https://bmi-geotiff.readthedocs.io/"
Repository = "https://github.com/csdms/bmi-geotiff"
Changelog = "https://github.com/csdms/bmi-geotiff/blob/main/CHANGES.md"
Expand Down Expand Up @@ -88,7 +91,7 @@ norecursedirs = [".*", "*.egg*", "build", "dist"]
addopts = """
--ignore setup.py
--tb native
--strict
--strict-markers
--durations 16
--doctest-modules
-vvv
Expand All @@ -105,3 +108,10 @@ include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
line_length = 88

[tool.coverage.run]
relative_files = true

[tool.zest-releaser]
tag-format = "v{version}"
python-file-with-version = "bmi_geotiff/_version.py"
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
[coverage:run]
relative_files = True

[flake8]
exclude = docs
ignore =
E203
E501
W503
max-line-length = 88

[zest.releaser]
tag-format = v{version}
python-file-with-version = bmi_geotiff/_version.py

0 comments on commit c2cc77c

Please sign in to comment.