Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
Expand Down
10 changes: 6 additions & 4 deletions pyopa/backend/pyopa.pyx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# cython: language_level=3

import json
import logging
import math
import os
import pkgutil
import re
import sys
from math import log10
from subprocess import call

cimport cpyopa
from . cimport cpyopa
cimport numpy as np
import numpy as np





def matrix_dir():
default_matrix_dir = os.path.realpath(
os.path.join(os.path.dirname(__file__), '..', 'matrices', 'json'))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ requires = [
# setuptools, wheel and Cython are needed for the setup.py based build
"setuptools>=59.2.0",
"wheel>=0.37.0",
"Cython>=0.29.30,<3.0",
"Cython>=3.0",
"numpy",
]
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
sources=[os.path.join(package_name, 'backend', 'pyopa.pyx')] +
list(map(lambda c: os.path.join(c_dir, c), c_sources)),
extra_compile_args=['-O2', '-DSIMDE_ENABLE_NATIVE_ALIASES'], #, '-DPY_DEBUG'],
include_dirs=[c_dir, numpy.get_include(), '.']
)]
include_dirs=[c_dir, os.path.join(package_name, "backend"), numpy.get_include(), '.']
)],
compiler_directives={"language_level": "3"},
),
name=package_name,
version=__version__,
Expand Down
Loading