Skip to content

Commit

Permalink
Remove unneeded parts of tox.ini (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil Freij authored Jul 10, 2023
1 parent 4284354 commit b6a54ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion sunraster/spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 2 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b6a54ca

Please sign in to comment.