Skip to content

Commit f451de0

Browse files
committed
merge main
Signed-off-by: Tim Paine <[email protected]>
2 parents a0e8bf4 + a2ddfa0 commit f451de0

File tree

97 files changed

+587
-438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+587
-438
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Project Configuration #
33
#########################
44
cmake_minimum_required(VERSION 3.20.0)
5-
project(csp VERSION "0.0.9")
5+
project(csp VERSION "0.0.11")
66
set(CMAKE_CXX_STANDARD 20)
77

88
###################################################################################################################################################

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ install: ## install library
3535
.PHONY: lint-py lint-cpp lint lints fix-py fix-cpp fix format check checks
3636

3737
lint-py:
38-
python -m isort --check csp/ examples/ setup.py
3938
python -m ruff check csp/ examples/ setup.py
4039
python -m ruff format --check csp/ examples/ setup.py
4140

@@ -54,7 +53,7 @@ lint: lint-py lint-docs ## run lints
5453
lints: lint
5554

5655
fix-py:
57-
python -m isort csp/ examples/ setup.py
56+
python -m ruff check --fix csp/ examples/ setup.py
5857
python -m ruff format csp/ examples/ setup.py
5958

6059
fix-cpp:

conda/dev-environment-unix.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- brotli
88
- bump-my-version
99
- cmake
10-
- codespell>=2.2.6,<2.3
10+
- codespell>=2.4,<2.5
1111
- compilers
1212
- cyrus-sasl
1313
- deprecated
@@ -16,21 +16,22 @@ dependencies:
1616
- graphviz
1717
- gtest
1818
- httpx>=0.20,<1
19-
- isort>=5,<6
2019
- libarrow=16
2120
- libboost>=1.80.0
2221
- libboost-headers>=1.80.0
2322
- librdkafka
2423
- lz4-c
24+
- make
2525
- mamba
26-
- mdformat=0.7.17
26+
- mdformat>=0.7.19,<0.8
27+
- mdformat-tables>=1,<1.1
2728
- ninja
2829
- numpy<2
2930
- pandas
3031
- pillow
3132
- polars
3233
- psutil
33-
- pyarrow>=7,<19
34+
- pyarrow>=15,<19
3435
- pydantic>=2
3536
- pytest
3637
- pytest-asyncio
@@ -44,7 +45,7 @@ dependencies:
4445
- rapidjson
4546
- requests
4647
- ruamel.yaml
47-
- ruff>=0.3,<0.4
48+
- ruff>=0.9,<0.10
4849
- scikit-build
4950
- setuptools>=69,<74
5051
- sqlalchemy

conda/dev-environment-win.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6+
# - bison # not available on windows
67
- brotli
78
- bump-my-version
89
- cmake
9-
- codespell>=2.2.6,<2.3
10+
- codespell>=2.4,<2.5
1011
- compilers
1112
- cyrus-sasl
1213
- deprecated
1314
- exprtk
15+
# - flex # not available on windows
1416
- graphviz
1517
- gtest
1618
- httpx>=0.20,<1
17-
- isort>=5,<6
1819
- libarrow=16
1920
- libboost>=1.80.0
2021
- libboost-headers>=1.80.0
2122
- librdkafka
2223
- lz4-c
2324
- make
2425
- mamba
25-
- mdformat=0.7.17
26+
- mdformat>=0.7.19,<0.8
27+
- mdformat-tables>=1,<1.1
2628
- ninja
2729
- numpy<2
2830
- pandas
@@ -43,13 +45,16 @@ dependencies:
4345
- rapidjson
4446
- requests
4547
- ruamel.yaml
46-
- ruff>=0.3,<0.4
48+
- ruff>=0.9,<0.10
4749
- scikit-build
4850
- setuptools>=69,<74
4951
- sqlalchemy
52+
# - tar # not available on windows
5053
- threadpoolctl
5154
- tornado
5255
- twine
5356
- typing-extensions
57+
# - unzip # not available on windows
5458
- wheel
59+
# - zip # not available on windows
5560
- zlib

cpp/csp/adapters/websocket/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set(WS_CLIENT_SOURCE_FILES
2020
)
2121

2222
add_library(csp_websocket_client_adapter STATIC ${WS_CLIENT_SOURCE_FILES})
23-
set_target_properties(csp_websocket_client_adapter PROPERTIES PUBLIC_HEADER "${WS_CLIENT_SOURCE_FILES}")
23+
set_target_properties(csp_websocket_client_adapter PROPERTIES PUBLIC_HEADER "${WS_CLIENT_HEADER_FILES}")
2424

2525
find_package(Boost REQUIRED)
2626
find_package(OpenSSL REQUIRED)

csp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
from . import stats
3333

34-
__version__ = "0.0.9"
34+
__version__ = "0.0.11"
3535

3636

3737
def get_include_path():

csp/adapters/db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
except ImportError:
99
from backports import zoneinfo
1010

11-
import pytz
1211
from importlib.metadata import PackageNotFoundError, version as get_package_version
12+
13+
import pytz
1314
from packaging import version
1415

1516
from csp import PushMode, ts

csp/adapters/output_adapters/parquet.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import numpy
21
import os
32
from importlib.metadata import PackageNotFoundError, version as get_package_version
4-
from packaging import version
53
from typing import Callable, Dict, Optional, TypeVar
64

5+
import numpy
6+
from packaging import version
7+
78
import csp
89
from csp.impl.struct import Struct
910
from csp.impl.types.container_type_normalizer import ContainerTypeNormalizer
@@ -85,13 +86,13 @@ def __init__(
8586

8687
if file_name and os.path.exists(file_name):
8788
if split_columns_to_files:
88-
assert os.path.isdir(
89-
file_name
90-
), f"split_columns_to_files is True, but existing past {file_name} is file, not folder"
89+
assert os.path.isdir(file_name), (
90+
f"split_columns_to_files is True, but existing past {file_name} is file, not folder"
91+
)
9192
else:
92-
assert os.path.isfile(
93-
file_name
94-
), f"split_columns_to_files is False, but existing past {file_name} is folder, not file"
93+
assert os.path.isfile(file_name), (
94+
f"split_columns_to_files is False, but existing past {file_name} is folder, not file"
95+
)
9596

9697
self._all_column_names = set()
9798
self._properties = {

csp/adapters/output_adapters/parquet_utility_nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import numpy
21
import typing
32

3+
import numpy
4+
45
import csp
56

67
T = typing.TypeVar("T")

csp/adapters/parquet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import datetime
22
import io
3+
from importlib.metadata import PackageNotFoundError, version as get_package_version
4+
from typing import TypeVar
5+
36
import numpy
47
import pyarrow
58
import pyarrow.parquet
6-
from importlib.metadata import PackageNotFoundError, version as get_package_version
79
from packaging import version
8-
from typing import TypeVar
910

1011
import csp
1112
from csp.adapters.output_adapters.parquet import ParquetOutputConfig, ParquetWriter, resolve_array_shape_column_name

0 commit comments

Comments
 (0)