Skip to content

Commit

Permalink
Merge pull request #201 from xylar/fix-python-3.12
Browse files Browse the repository at this point in the history
Fix issues with python 3.12
  • Loading branch information
xylar authored May 16, 2024
2 parents 6d4bc1b + 51a71f5 commit 0538e7b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand Down
8 changes: 8 additions & 0 deletions ci/python3.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
channel_sources:
- conda-forge,defaults
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
4 changes: 2 additions & 2 deletions geometric_features/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from contextlib import contextmanager

import os
from distutils import dir_util
import shutil
from pytest import fixture

try:
Expand Down Expand Up @@ -51,7 +51,7 @@ def loaddatadir(request, tmpdir):
test_dir, _ = os.path.splitext(filename)

if os.path.isdir(test_dir):
dir_util.copy_tree(test_dir, bytes(tmpdir))
shutil.copy_tree(test_dir, str(tmpdir))

request.cls.datadir = tmpdir

Expand Down

0 comments on commit 0538e7b

Please sign in to comment.