From b6a54ca32b404ecc973d7cdfa015bd4a99321839 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 9 Jul 2023 23:04:50 -0700 Subject: [PATCH] Remove unneeded parts of tox.ini (#246) --- pyproject.toml | 8 ++++---- sunraster/spectrogram.py | 2 +- tox.ini | 8 ++------ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0e6e22d2..72ecb2c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] requires = [ - "setuptools>=56,!=61.0.0", - "setuptools_scm[toml]>=6.2", - "wheel", + "extension-helpers", "oldest-supported-numpy", - "extension-helpers" + "setuptools_scm[toml]", + "setuptools", + "wheel", ] build-backend = 'setuptools.build_meta' diff --git a/sunraster/spectrogram.py b/sunraster/spectrogram.py index 43320280..f967446f 100644 --- a/sunraster/spectrogram.py +++ b/sunraster/spectrogram.py @@ -518,7 +518,7 @@ def _find_axis_name(supported_names, world_axis_physical_types, extra_coords, me def _find_name_in_array(supported_names, names_array): name_index = np.isin(names_array, supported_names) if name_index.sum() > 0: - name_index = int(np.arange(len(names_array))[name_index]) + name_index = np.arange(len(names_array))[name_index][0] return names_array[name_index] return None diff --git a/tox.ini b/tox.ini index f98171f1..3e7ae280 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,9 @@ [tox] +min_version = 4.0 envlist = - py{38,39,310,311}{,-oldestdeps,-devdeps,-online} + py{39,310,311}{,-oldestdeps,-devdeps,-online} build_docs codestyle -isolated_build = true -requires = - setuptools >=56, !=61.0.0 - pip >= 19.3.1 - tox-pypi-filter >= 0.12 [testenv] pypi_filter = https://raw.githubusercontent.com/sunpy/sunpy/main/.test_package_pins.txt