Skip to content

Commit

Permalink
Fix tests for Python 3.12
Browse files Browse the repository at this point in the history
`distutils' have been removed from Python stdlib (nipy#1240).
  • Loading branch information
penguinpee committed Jul 17, 2023
1 parent 134d469 commit c549b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nisext/sexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import os
from configparser import ConfigParser
from distutils import log
from distutils.command.build_py import build_py
from distutils.command.install_scripts import install_scripts
from distutils.version import LooseVersion
import logging as log
from setuptools.command.build_py import build_py
from setuptools.command.install_scripts import install_scripts
from looseversion import LooseVersion
from os.path import join as pjoin
from os.path import split as psplit
from os.path import splitext
Expand Down Expand Up @@ -121,7 +121,7 @@ def package_check(
giving the feature name for the ``extras_require`` argument to setup.
checker : callable, optional
callable with which to return comparable thing from version
string. Default is ``distutils.version.LooseVersion``
string. Default is ``setuptools.version.LooseVersion``
version_getter : {None, callable}:
Callable that takes `pkg_name` as argument, and returns the
package version string - as in::
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test = [
"pytest-doctestplus",
"pytest-httpserver",
"pytest-xdist",
"looseversion",
]
typing = [
"mypy",
Expand Down

0 comments on commit c549b69

Please sign in to comment.