Skip to content

Commit

Permalink
test: back to tox.ini until tox issue 3457 is solved
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Dec 10, 2024
1 parent 8cddb40 commit f5c0e39
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 62 deletions.
62 changes: 0 additions & 62 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,65 +96,3 @@ convention = "numpy"

[tool.setuptools.packages.find]
include = ["pylandstats", "pylandstats.*"]

[tool.tox]
env_list = [
"lint",
"py39",
"py310",
"py311",
"py312",
"py313"
]
requires = [
"tox>=4.19"
]

[tool.tox.env.lint]
commands = [
[
["python", "-m", "build"],
["sphinx-build", "docs", "docs/_build"],
["twine", "check", "dist/*"]
]
]
extras = [
"dev",
"doc",
"test"
]
whitelist_externals = [
"build",
"sphinx-build",
"twine"
]

[tool.tox.env_run_base]
commands = [
[
"pytest",
"-s",
"--cov=pylandstats",
"--cov-append",
"--cov-report=xml",
"--cov-report",
"term-missing",
"tests"
]
]
conda_deps = [
"gdal>=3.3"
]
extras = [
"test"
]
whitelist_externals = [
"pytest"
]

[tool.tox.gh.python]
"3.13" = ["3.13", "lint"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]
35 changes: 35 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tox]
env_list = py38, py39, py310, py311, py312, py313, lint

[gh]
python =
3.13 = 3.13, lint
3.12 = 3.12
3.11 = 3.11
3.10 = 3.10
3.9 = 3.9
3.8 = 3.8

[testenv:lint]
allowlist_externals =
build
sphinx-build
twine
extras =
test
doc
dev
commands =
python -m build
sphinx-build docs docs/_build
twine check dist/*

[testenv]
conda_deps=
gdal>=3.3
allowlist_externals =
pytest
extras =
test
commands =
pytest -s --cov=pylandstats --cov-append --cov-report=xml --cov-report term-missing tests

0 comments on commit f5c0e39

Please sign in to comment.