Skip to content

Commit f07d2d7

Browse files
committed
Requirements: drop NumPy to 1.19.5 so it works with Python 3.6; add extras
We still recommend `numpy>=1.21` for typing support. Use DSS C-API 0.12.0b9
1 parent 3bb209c commit f07d2d7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Builds
33
# TODO: generalize steps
44

55
env:
6-
DSS_CAPI_TAG: 0.12.0b8
6+
DSS_CAPI_TAG: 0.12.0b9
77
ARTIFACTS_FOLDER: '${{ github.workspace }}/artifacts'
88

99
on:

dss/IObj.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@
77
'''
88
from typing import Union, List, AnyStr
99
import numpy as np
10-
import numpy.typing as npt
1110
from .enums import DSSJSONFlags
1211

1312
try:
1413
from enum import IntEnum
1514
except:
1615
from aenum import IntEnum
1716

17+
try:
18+
import numpy.typing as npt
19+
npt.NDArray[np.float64]
20+
except:
21+
class npt:
22+
NDArray = List
23+
24+
1825
from ._cffi_api_util import Base
1926

2027
class BatchFloat64ArrayProxy:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
#'dss_build.py:ffi_builder_CapUserControl'
105105
],
106106
ext_package="dss",
107-
install_requires=["cffi>=1.11.2", "numpy>=1.21"],
107+
install_requires=["cffi>=1.11.2", "numpy>=1.19.5"],
108+
extras_require={'plot': ["matplotlib", "scipy"]}, #TODO: test which versions should work
108109
tests_require=["zstandard", "scipy"],
109110
zip_safe=False,
110111
classifiers=[

0 commit comments

Comments
 (0)