From 0d9acb1cb0eee409405954a253f09707eeb834dc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 4 May 2023 12:01:14 -0400 Subject: [PATCH 1/3] numpy: drop `numpy.float` in py311 --- piker/data/_sharedmem.py | 2 +- piker/ui/_interaction.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/data/_sharedmem.py b/piker/data/_sharedmem.py index bc1ded75..bd40ad7e 100644 --- a/piker/data/_sharedmem.py +++ b/piker/data/_sharedmem.py @@ -271,7 +271,7 @@ class ShmArray: # type that all field values will be cast to # in the returned view. - common_dtype: np.dtype = np.float, + common_dtype: np.dtype = float, ) -> np.ndarray: diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index b4a78931..1219e94e 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -620,7 +620,7 @@ class ChartView(ViewBox): # Ignore axes if mouse is disabled mouseEnabled = np.array( self.state['mouseEnabled'], - dtype=np.float, + dtype=float, ) mask = mouseEnabled.copy() if axis is not None: From 166f99b3d1c28c9a59e8b72db8a7648707931d82 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 26 Apr 2023 11:40:27 -0400 Subject: [PATCH 2/3] setup: reorg some deps drop unused ones --- requirements.txt | 5 ----- setup.py | 17 +++++++++-------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0f13d891..5e10a4ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,11 +11,6 @@ # our async client for ``marketstore`` (the tsdb) -e git+https://github.com/pikers/anyio-marketstore.git@master#egg=anyio-marketstore - -# ``trimeter`` for asysnc history fetching --e git+https://github.com/python-trio/trimeter.git@master#egg=trimeter - - # ``asyncvnc`` for sending interactions to ib-gw inside docker -e git+https://github.com/pikers/asyncvnc.git@main#egg=asyncvnc diff --git a/setup.py b/setup.py index 19729481..3252ff14 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from setuptools import setup, find_packages +from setuptools import ( + setup, + find_packages, +) with open('README.rst', encoding='utf-8') as f: readme = f.read() @@ -57,13 +60,14 @@ setup( 'async_generator', # from github currently (see requirements.txt) - # 'trimeter', # not released yet.. + # normally pinned to particular git hashes.. # 'tractor', - # asyncvnc, - # 'cryptofeed', + # 'asyncvnc', + # 'pyqtgraph', + # anyio-marketstore # mkts tsdb client # brokers - 'asks', + 'asks', # for non-ws rest apis 'ib_insync', # numerics @@ -78,9 +82,6 @@ setup( # 'pyqtgraph', from our fork see reqs.txt 'qdarkstyle >= 3.0.2', # themeing 'fuzzywuzzy[speedup]', # fuzzy search - - # tsdbs - # anyio-marketstore # from gh see reqs.txt ], extras_require={ 'tsdb': [ From 0a2187a73f57436738108c0119ff7dbb7e4a767f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 8 May 2023 19:35:45 -0400 Subject: [PATCH 3/3] Add 3.11 install tag --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 3252ff14..0cd9d3fb 100755 --- a/setup.py +++ b/setup.py @@ -108,6 +108,7 @@ setup( "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", 'Intended Audience :: Financial and Insurance Industry', 'Intended Audience :: Science/Research', 'Intended Audience :: Developers',