From 3b87f19f1df4b42f8533fd51029cbac03c03b9de Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Tue, 12 Sep 2023 16:55:23 +1000 Subject: [PATCH] Python package ready to release --- DESCRIPTION | 2 +- NEWS.md | 3 ++- README.md | 4 ++++ inst/htmlwidgets/langevitour.yaml | 2 +- package.json | 2 +- py/examples/langevitour.ipynb | 36 ++++++++++++------------------- py/langevitour/__about__.py | 2 +- pyproject.toml | 3 +++ 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c846bd0..bb1f070 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: langevitour Title: Langevin Tour -Version: 0.5.5 +Version: 0.6 Authors@R: person("Paul", "Harrison", , "pfh@logarithmic.net", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3980-268X")) diff --git a/NEWS.md b/NEWS.md index f05a972..6944353 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,5 @@ -# langevitour 0.5.2 +# langevitour 0.6 * Use TypeScript and webpack. * Support crosstalk. @@ -8,6 +8,7 @@ * Line colors. * Ignore width and height provided by htmlwidgets if we seem to be scaled, as they are based on getBoundingClientRect. * Directly manipulate projection with right drag. +* Python package. # langevitour 0.5 diff --git a/README.md b/README.md index 11c8d4a..fe18229 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,10 @@ tour.write_html("langevitour_plot.html") langevitour also works in [jupyter notebooks](https://colab.research.google.com/github/pfh/langevitour/blob/main/py/examples/langevitour.ipynb). +## Authors + +The Javascript and R package are written by Paul Harrison. The Python package was kindly contributed by Wytamma Wirth. + ## Copyright Langevitour is free software made available under the [MIT license](https://github.com/pfh/langevitour/blob/main/LICENSE.md). Included libraries [jStat](https://github.com/jstat/jstat) and [SVD-JS](https://github.com/danilosalvati/svd-js) are also provided under the MIT license. Included library [D3](https://github.com/d3/d3) is provided under the [ISC license](https://github.com/d3/d3/blob/main/LICENSE). \ No newline at end of file diff --git a/inst/htmlwidgets/langevitour.yaml b/inst/htmlwidgets/langevitour.yaml index 0a65f86..a9a8b4d 100644 --- a/inst/htmlwidgets/langevitour.yaml +++ b/inst/htmlwidgets/langevitour.yaml @@ -1,6 +1,6 @@ dependencies: - name: langevitour - version: "0.5.5" + version: "0.6" src: htmlwidgets/lib/ script: - langevitour-pack.js diff --git a/package.json b/package.json index 976e181..958d5b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "langevitour", - "version": "0.5.5", + "version": "0.6", "description": "An HTML widget that randomly tours 2D projections of numerical data.", "type": "module", "main": "lib/langevitour.js", diff --git a/py/examples/langevitour.ipynb b/py/examples/langevitour.ipynb index d7de094..a39f647 100644 --- a/py/examples/langevitour.ipynb +++ b/py/examples/langevitour.ipynb @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "id": "c4e5d57f-6eae-40a4-8287-de1826412ca5", "metadata": {}, "outputs": [ @@ -123,7 +123,7 @@ "4 3450.0 female 2007 " ] }, - "execution_count": 1, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -139,7 +139,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "id": "f9cfb930-9416-4687-bfd4-511c44a6d90b", "metadata": {}, "outputs": [ @@ -147,28 +147,28 @@ "data": { "text/html": [ "\n", - "
\n", + "
\n", " \n", " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 2, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -195,14 +195,6 @@ " point_size=2, # pointSize\n", " )" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "e336bf81-c352-47c9-a518-db1abc89828f", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { @@ -221,7 +213,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.5" + "version": "3.10.12" } }, "nbformat": 4, diff --git a/py/langevitour/__about__.py b/py/langevitour/__about__.py index bca515d..fe320a0 100644 --- a/py/langevitour/__about__.py +++ b/py/langevitour/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2023-present Wytamma Wirth # # SPDX-License-Identifier: MIT -__version__ = "0.5.5" +__version__ = "0.6" diff --git a/pyproject.toml b/pyproject.toml index e22be23..26ee072 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ Source = "https://github.com/pfh/langevitour" [tool.hatch.version] path = "py/langevitour/__about__.py" +validate-bump = false [tool.hatch.build] include = [ @@ -47,12 +48,14 @@ packages = ["py/langevitour"] [tool.hatch.envs.default] +python = "python3" dependencies = [ "coverage[toml]>=6.5", "pytest", "jupyter", "pandas", ] + [tool.hatch.envs.default.scripts] test = "pytest {args:py/tests}" test-cov = "coverage run -m pytest {args:py/tests}"