Skip to content

Commit d329226

Browse files
committed
BLD: Move tests into package directory
1 parent dc672af commit d329226

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ py = import('python').find_installation(pure: false)
1616
py_dep = py.dependency()
1717

1818
subdir('numpy_financial')
19-
subdir('tests')

numpy_financial/_cfinancial.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from libc.math cimport NAN
22

33

4-
def _cnpv(const double[::1] rates, const double[:, ::1] values, double[:, ::1] out):
4+
def _npv(const double[::1] rates, const double[:, ::1] values, double[:, ::1] out):
55
cdef:
66
Py_ssize_t i, j, t
77
double acc

numpy_financial/_financial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from decimal import Decimal
1515

1616
import numpy as np
17-
from _cfinancial import _cnpv
17+
from _cfinancial import _npv
1818

1919
__all__ = ['fv', 'pmt', 'nper', 'ipmt', 'ppmt', 'pv', 'rate',
2020
'irr', 'npv', 'mirr',
@@ -934,7 +934,7 @@ def npv(rate, values):
934934

935935
output_shape = _get_output_array_shape(rate_inner, values_inner)
936936
out = np.empty(output_shape)
937-
_cnpv(rate_inner, values_inner, out)
937+
_npv(rate_inner, values_inner, out)
938938
return _ufunc_like(out)
939939

940940

numpy_financial/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ py.extension_module(
66
)
77

88
python_sources = [
9+
'__init__.py',
910
'_financial.py',
1011
]
1112

1213
py.install_sources(
1314
python_sources,
1415
subdir: 'numpy_financial',
15-
)
16+
)
17+
18+
install_subdir('tests', install_dir: py.get_install_dir() / 'numpy_financial')
File renamed without changes.
File renamed without changes.

tests/meson.build

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)