Skip to content

Commit

Permalink
v3.1.5
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <[email protected]>
  • Loading branch information
texodus committed Nov 16, 2024
1 parent 126a6a1 commit efec1b0
Show file tree
Hide file tree
Showing 48 changed files with 116 additions and 80 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,12 @@ jobs:
- name: Verify licenses are installed
shell: bash
run: |
pip show -f perspective-python > wheel_installed_files.txt
grep licenses/LICENSE.md wheel_installed_files.txt
grep licenses/LICENSE_THIRDPARTY_cargo.yml wheel_installed_files.txt
pip show -f perspective-python | tee wheel_installed_files.txt
# Maturin got this wrong: the packages should be in .dist-info/licenses/
# Newer versions of Maturin will fix it, so search for either location.
# https://github.com/PyO3/maturin/pull/862 https://github.com/PyO3/maturin/pull/2181
grep -E '.dist-info/(license|license_files)/LICENSE.md' wheel_installed_files.txt
grep -E '.dist-info/(license|license_files)/LICENSE_THIRDPARTY_cargo.yml' wheel_installed_files.txt
- name: Verify labextension
shell: bash
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# [v3.1.5](https://github.com/finos/perspective/releases/tag/v3.1.5)

_15 November 2024_ ([Full changelog](https://github.com/finos/perspective/compare/v3.1.5-test1...v3.1.5))

Features

- Relax `Table` schema constructor [#2850](https://github.com/finos/perspective/pull/2850)

Fixes

- Fix `perspective-workspace` restore call on errored table [#2851](https://github.com/finos/perspective/pull/2851)
- Fix `integer` cast expression function [#2842](https://github.com/finos/perspective/pull/2842)
- Import importlib metadata submodule [#2841](https://github.com/finos/perspective/pull/2841)

Misc

- Update ExprTk [#2825](https://github.com/finos/perspective/pull/2825)
- sdist licensing follow ups [#2843](https://github.com/finos/perspective/pull/2843)

# [v3.1.4](https://github.com/finos/perspective/releases/tag/v3.1.4)

_7 November 2024_ ([Full changelog](https://github.com/finos/perspective/compare/v3.1.4-test8...v3.1.4))
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ and/or [Jupyterlab](https://jupyterlab.readthedocs.io/en/stable/).
<tr>
<td><a href="https://www.youtube.com/watch?v=v5Y5ftlGNhU"><img width="240" src="https://img.youtube.com/vi/v5Y5ftlGNhU/0.jpg" /></a></td>
<td><a href="https://www.youtube.com/watch?v=lDpIu4dnp78"><img width="240" src="https://img.youtube.com/vi/lDpIu4dnp78/0.jpg" /></a></td>
<td><a href="https://www.youtube.com/watch?v=0ut-ynvBpGI"><img width="240" src="https://img.youtube.com/vi/0ut-ynvBpGI/0.jpg" /></a></td>
<td><a href="https://www.youtube.com/watch?v=IO-HJsGdleE"><img width="240" src="https://img.youtube.com/vi/IO-HJsGdleE/0.jpg" /></a></td>

</tr>
<tr>
<td><a href="https://github.com/texodus"><code>@texodus</code></a></td>
Expand All @@ -84,7 +85,7 @@ and/or [Jupyterlab](https://jupyterlab.readthedocs.io/en/stable/).
</tr>
<tr>
<td><a href="https://www.youtube.com/watch?v=no0qChjvdgQ"><img width="240" src="https://img.youtube.com/vi/no0qChjvdgQ/0.jpg" /></a></td>
<td><a href="https://www.youtube.com/watch?v=IO-HJsGdleE"><img width="240" src="https://img.youtube.com/vi/IO-HJsGdleE/0.jpg" /></a></td>
<td><a href="https://www.youtube.com/watch?v=0ut-ynvBpGI"><img width="240" src="https://img.youtube.com/vi/0ut-ynvBpGI/0.jpg" /></a></td>
<td></td>
</tr>
</tbody></table>
2 changes: 1 addition & 1 deletion cpp/perspective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"author": "The Perspective Authors",
"license": "Apache-2.0",
"version": "3.1.4",
"version": "3.1.5",
"main": "./dist/esm/perspective.cpp.js",
"files": [
"dist/esm/**/*",
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/src/cpp/scalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ t_tscalar::operator%=(const t_tscalar& rhs) {
return *this;
}

t_tscalar::operator std::size_t () const {
t_tscalar::operator std::size_t() const {
switch (get_dtype()) {
case perspective::t_dtype::DTYPE_INT64:
return static_cast<std::size_t>(get<std::int64_t>());
Expand Down
47 changes: 30 additions & 17 deletions cpp/perspective/src/include/perspective/exprtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ namespace details {
template <typename T>
inline std::uint64_t to_uint64_impl(const T& v, t_tscalar_type_tag);


#define define_unary_function_impl_header(FunctionName) \
template <typename T> \
inline T FunctionName##_impl(const T v, t_tscalar_type_tag);
Expand Down Expand Up @@ -115,12 +114,13 @@ namespace details {
define_binary_function_impl_header(nand )
define_binary_function_impl_header(nor )
define_binary_function_impl_header(xnor )
// clang-format on
// clang-format on

#undef define_binary_function_impl_header

template <typename T>
inline T and_impl(const T v0, const T v1, t_tscalar_type_tag);
template <typename T>
inline T
and_impl(const T v0, const T v1, t_tscalar_type_tag);

template <typename T>
inline T or_impl(const T v0, const T v1, t_tscalar_type_tag);
Expand Down Expand Up @@ -281,11 +281,14 @@ namespace details {
case perspective::t_dtype::DTYPE_INT8:
return static_cast<std::int32_t>(v.get<std::int8_t>());
case perspective::t_dtype::DTYPE_UINT64:
return static_cast<std::int32_t>(v.get<std::uint64_t>());
return static_cast<std::int32_t>(v.get<std::uint64_t>()
);
case perspective::t_dtype::DTYPE_UINT32:
return static_cast<std::int32_t>(v.get<std::uint32_t>());
return static_cast<std::int32_t>(v.get<std::uint32_t>()
);
case perspective::t_dtype::DTYPE_UINT16:
return static_cast<std::int32_t>(v.get<std::uint16_t>());
return static_cast<std::int32_t>(v.get<std::uint16_t>()
);
case perspective::t_dtype::DTYPE_UINT8:
return static_cast<std::int32_t>(v.get<std::uint8_t>());
case perspective::t_dtype::DTYPE_FLOAT64:
Expand Down Expand Up @@ -313,11 +316,14 @@ namespace details {
case perspective::t_dtype::DTYPE_INT8:
return static_cast<std::int64_t>(v.get<std::int8_t>());
case perspective::t_dtype::DTYPE_UINT64:
return static_cast<std::int64_t>(v.get<std::uint64_t>());
return static_cast<std::int64_t>(v.get<std::uint64_t>()
);
case perspective::t_dtype::DTYPE_UINT32:
return static_cast<std::int64_t>(v.get<std::uint32_t>());
return static_cast<std::int64_t>(v.get<std::uint32_t>()
);
case perspective::t_dtype::DTYPE_UINT16:
return static_cast<std::int64_t>(v.get<std::uint16_t>());
return static_cast<std::int64_t>(v.get<std::uint16_t>()
);
case perspective::t_dtype::DTYPE_UINT8:
return static_cast<std::int64_t>(v.get<std::uint8_t>());
case perspective::t_dtype::DTYPE_FLOAT64:
Expand All @@ -337,21 +343,28 @@ namespace details {
}
switch (v.get_dtype()) {
case perspective::t_dtype::DTYPE_INT64:
return static_cast<std::uint64_t>(v.get<std::int64_t>());
return static_cast<std::uint64_t>(v.get<std::int64_t>()
);
case perspective::t_dtype::DTYPE_INT32:
return static_cast<std::uint64_t>(v.get<std::int32_t>());
return static_cast<std::uint64_t>(v.get<std::int32_t>()
);
case perspective::t_dtype::DTYPE_INT16:
return static_cast<std::uint64_t>(v.get<std::int16_t>());
return static_cast<std::uint64_t>(v.get<std::int16_t>()
);
case perspective::t_dtype::DTYPE_INT8:
return static_cast<std::uint64_t>(v.get<std::int8_t>());
case perspective::t_dtype::DTYPE_UINT64:
return static_cast<std::uint64_t>(v.get<std::uint64_t>());
return static_cast<std::uint64_t>(v.get<std::uint64_t>()
);
case perspective::t_dtype::DTYPE_UINT32:
return static_cast<std::uint64_t>(v.get<std::uint32_t>());
return static_cast<std::uint64_t>(v.get<std::uint32_t>()
);
case perspective::t_dtype::DTYPE_UINT16:
return static_cast<std::uint64_t>(v.get<std::uint16_t>());
return static_cast<std::uint64_t>(v.get<std::uint16_t>()
);
case perspective::t_dtype::DTYPE_UINT8:
return static_cast<std::uint64_t>(v.get<std::uint8_t>());
return static_cast<std::uint64_t>(v.get<std::uint8_t>()
);
case perspective::t_dtype::DTYPE_FLOAT64:
return static_cast<std::uint64_t>(v.get<double>());
case perspective::t_dtype::DTYPE_FLOAT32:
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/src/include/perspective/scalar.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct PERSPECTIVE_EXPORT t_tscalar {
t_tscalar& operator/=(const t_tscalar& rhs);
t_tscalar& operator%=(const t_tscalar& rhs);

operator std::size_t () const;
operator std::size_t() const;

t_tscalar add_typesafe(const t_tscalar& rhs) const;
t_tscalar sub_typesafe(const t_tscalar& rhs) const;
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-docs",
"version": "3.1.4",
"version": "3.1.5",
"private": true,
"scripts": {
"build": "node build.js && docusaurus build",
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blocks",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "A collection of simple client-side Perspective examples for `http://bl.ocks.org`.",
"scripts": {
"start": "mkdirp dist && node --experimental-modules server.mjs",
Expand Down
2 changes: 1 addition & 1 deletion examples/esbuild-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esbuild-example",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An esbuild example app built using `@finos/perspective-viewer`.",
"scripts": {
"build": "node build.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/esbuild-remote/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esbuild-remote",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of 2 Perspectives, one client and one server, streaming via Apache Arrow.",
"scripts": {
"start": "node build.js && node server/index.mjs"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-aiohttp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-aiohttp",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-starlette/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-starlette",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-tornado-streaming/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-tornado-streaming",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of streaming a `perspective-python` server to the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-tornado/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-tornado",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/react-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-example",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example app built using `@finos/perspective-viewer`.",
"scripts": {
"start": "webpack serve --open",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
publish = false

[dependencies]
perspective = { version = "3.1.4", path = "../../rust/perspective" }
perspective = { version = "3.1.5", path = "../../rust/perspective" }
axum = { version = ">=0.7,<2", features = ["ws"] }
futures = "0.3"
tokio = { version = "1.0", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-axum/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rust-axum",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example of a Rust/Axum virtual Perspective server",
"scripts": {
"start": "cargo run"
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webpack-example",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example app built using `@finos/perspective-viewer`.",
"scripts": {
"webpack_build": "webpack",
Expand Down
2 changes: 1 addition & 1 deletion examples/workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace",
"private": true,
"version": "3.1.4",
"version": "3.1.5",
"description": "An example app built using `@finos/perspective-workspace`.",
"scripts": {
"start": "webpack serve --open",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/finos/perspective"
},
"version": "3.1.4",
"version": "3.1.5",
"changelog": {
"labels": {
"enhancement": "Added",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-cli",
"version": "3.1.4",
"version": "3.1.5",
"description": "Perspective.js CLI",
"main": "src/js/index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-esbuild-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-esbuild-plugin",
"version": "3.1.4",
"version": "3.1.5",
"description": "esbuild plugin for Perspective",
"author": "",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-jupyterlab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-jupyterlab",
"version": "3.1.4",
"version": "3.1.5",
"description": "A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.",
"files": [
"dist/**/*",
Expand Down
Loading

0 comments on commit efec1b0

Please sign in to comment.