Commit 0f074f70 authored by Simon Conseil's avatar Simon Conseil

Fix use of pyproject with tox

parent 69797b3d
Pipeline #3739 passed with stages
in 16 minutes and 46 seconds
......@@ -38,12 +38,9 @@ import re
import time
import warnings
from astropy.utils import minversion
from mpdaf.tools.util import (chdir, deprecated, broadcast_to_cube, timeit,
timer, isiter, progressbar)
PYTEST_LT_3_3 = not minversion('pytest', '3.3')
try:
import tqdm
except ImportError:
......@@ -88,7 +85,6 @@ def test_broadcast_to_cube():
broadcast_to_cube(np.zeros(s), shape)
@pytest.mark.skipif(PYTEST_LT_3_3, reason="caplog requires Pytest 3.3+")
def test_timeit(caplog):
@timeit
......@@ -101,7 +97,6 @@ def test_timeit(caplog):
caplog.text) is not None
@pytest.mark.skipif(PYTEST_LT_3_3, reason="caplog requires Pytest 3.3+")
def test_timer(caplog):
def func(foo, bar=0):
......
......@@ -3,3 +3,4 @@ requires = ["setuptools",
"wheel",
"oldest-supported-numpy",
"Cython"]
build-backend = 'setuptools.build_meta'
[tool:pytest]
minversion = 3.0.0
minversion = 3.3.0
addopts = --doctest-modules
norecursedirs = ".tox" "build" "docs[\/]build"
testpaths = lib
......
[tox]
envlist = py{36,37,38},check,doc
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
whitelist_externals = which
......@@ -24,6 +28,7 @@ commands =
[testenv:check]
skip_install = true
deps =
numpy
docutils
# check-manifest
flake8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment