Skip to content

Commit 952c018

Browse files
committed
Removes deprecated C API funcs
1 parent 6099f6c commit 952c018

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ devs of `exhale <https://pypi.org/project/exhale/>`__ for making the beautiful C
258258

259259
Changelog
260260
---------
261+
- 1.3.0:
262+
- Remove deprecated C API functions from the Python wrapper, `_pyoscode.cpp`.
261263
- 1.2.0:
262264
- Update the version of Eigen to 3.4.0
263265
- 1.1.2:

pyoscode/_pyoscode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static std::complex<double> wfun(double t){
3333

3434
std::complex<double> result = 0;
3535
PyObject *arglist = Py_BuildValue("(d)", t);
36-
PyObject *py_result = PyEval_CallObject(w_callback, arglist);
36+
PyObject *py_result = PyObject_CallObject(w_callback, arglist);
3737
Py_DECREF(arglist);
3838
// Check whether Python w(t) returned an exception
3939
if(py_result == NULL)
@@ -50,7 +50,7 @@ static std::complex<double> gfun(double t){
5050

5151
std::complex<double> result = 0;
5252
PyObject *arglist = Py_BuildValue("(d)", t);
53-
PyObject *py_result = PyEval_CallObject(g_callback, arglist);
53+
PyObject *py_result = PyObject_CallObject(g_callback, arglist);
5454
Py_DECREF(arglist);
5555
double real, imag;
5656
// Check whether Python w(t) returned an exception

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ def readme(short=False):
2020

2121
setup(
2222
name="pyoscode",
23-
version="1.2.0",
23+
version="1.3.0",
2424
description=readme(short=True),
2525
long_description=readme(),
2626
url="https://github.com/fruzsinaagocs/oscode",
2727
project_urls={"Documentation":"https://oscode.readthedocs.io"},
2828
author="Fruzsina Agocs",
29-
author_email="[email protected]",
29+
author_email="[email protected]",
3030
packages=find_packages(),
3131
install_requires=["numpy"],
3232
extras_require={"examples:":["matplotlib", "scipy", "jupyter"],
@@ -43,10 +43,7 @@ def readme(short=False):
4343
'Intended Audience :: Developers',
4444
'Intended Audience :: Science/Research',
4545
'Natural Language :: English',
46-
'Programming Language :: Python :: 3.4',
47-
'Programming Language :: Python :: 3.5',
48-
'Programming Language :: Python :: 3.6',
49-
'Programming Language :: Python :: 3.7',
46+
'Programming Language :: Python :: 3.x',
5047
'Topic :: Scientific/Engineering',
5148
'Topic :: Scientific/Engineering :: Astronomy',
5249
'Topic :: Scientific/Engineering :: Physics',

0 commit comments

Comments
 (0)