From aa6c85f05aebfaca49228898c94dbb5d38a2596ba3ff3074c72d2f55eb8b9b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 14 Nov 2025 09:51:25 +0000 Subject: [PATCH] - Update to 0.8.2 * Pre-commit: disable autofix PR's, ignore E203, W503 * Make id generation customizable OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-branca?expand=0&rev=31 --- .gitattributes | 23 ++++++++ .gitignore | 1 + branca-0.8.1.tar.gz | 3 ++ branca-0.8.2.tar.gz | 3 ++ python-branca.changes | 121 ++++++++++++++++++++++++++++++++++++++++++ python-branca.spec | 74 ++++++++++++++++++++++++++ 6 files changed, 225 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 branca-0.8.1.tar.gz create mode 100644 branca-0.8.2.tar.gz create mode 100644 python-branca.changes create mode 100644 python-branca.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/branca-0.8.1.tar.gz b/branca-0.8.1.tar.gz new file mode 100644 index 0000000..53f4dc7 --- /dev/null +++ b/branca-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6ec0bc22418198f8ef1ad1b1bc459472120aa1199acf077cab763cf9265436e +size 43109 diff --git a/branca-0.8.2.tar.gz b/branca-0.8.2.tar.gz new file mode 100644 index 0000000..8669bdb --- /dev/null +++ b/branca-0.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37fe385f14ad40610ec69b245a8640f0449c8eb96b9f764930e7c11c3d979898 +size 43154 diff --git a/python-branca.changes b/python-branca.changes new file mode 100644 index 0000000..e84499f --- /dev/null +++ b/python-branca.changes @@ -0,0 +1,121 @@ +------------------------------------------------------------------- +Fri Nov 14 09:28:02 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.8.2 + * Pre-commit: disable autofix PR's, ignore E203, W503 + * Make id generation customizable + +------------------------------------------------------------------- +Mon Jan 6 18:30:27 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.8.1 + * Add py.typed file + +------------------------------------------------------------------- +Thu Sep 5 06:56:55 UTC 2024 - Dirk Müller + +- update to 0.8.0: + * ColorMap text color + * Add type hints + +------------------------------------------------------------------- +Sat Apr 27 09:01:30 UTC 2024 - Dirk Müller + +- update to 0.7.2: + * Remove `split_six` utility function + * COMPAT: explictly cast numpy floats to native floats + * Remove empty plugins folder + * Drop Py3.7, add Py3.12 + +------------------------------------------------------------------- +Mon Mar 18 10:49:10 UTC 2024 - Dirk Müller + +- update to 0.7.1: + * Remove _env instance attribute from Element + * Add jinja2 version constraint + +------------------------------------------------------------------- +Wed Mar 13 10:12:54 UTC 2024 - Dirk Müller + +- skip build on python 3.9 due to missing ipython + +------------------------------------------------------------------- +Thu Dec 14 09:16:56 UTC 2023 - Petr Gajdos + +- update to 0.7.0: + * Make all Element with Template pickable natively + * Make _parse_size robust to already parsed values + * StepColormap: inclusive lower bound + * Add color schemes: plasma, inferno, magma + * Allow branca ColorMap in write_png + * More flexible _parse_size + +------------------------------------------------------------------- +Wed Dec 21 21:59:34 UTC 2022 - Ben Greiner + +- Fix build requirements and version metadata + +------------------------------------------------------------------- +Fri Dec 2 00:53:30 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.6.0 + - Properly escape colormap caption (@Conengmo #117) + - Multiple fixes in color_brewer (@ajabep #115) + - Expose colorbar size variables (@Conengmo #77) + - Proper html tags in Figure template (@desrod #67) + - Make Element class pickleable (@bwest2397 #99) + - Improve colorbar representation in notebooks (@HaudinFlorence #110) + - Allow custom ticks on colorbar (@kota7 #113) + +------------------------------------------------------------------- +Fri Sep 23 09:51:27 UTC 2022 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Fri Sep 23 02:40:27 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.5.0: + * Support for Pathlib when saving an `Element` (@wd60622 #103) + * Faster UUID generation for `Element` id (@bwest2397 #101) + * Store html content in `srcdoc` instead of `data-html` (@dstein64 #96) + * Add `max_labels` argument to color maps (@martinfleis #90) + * Pass caption when converting colormap to steps (@ndswaef #87) + +- Update to version 0.4.2 + * Fix special char encoding in notebooks, store as percent-encoded (@conengmo #76) + +------------------------------------------------------------------- +Tue Jun 28 08:51:59 UTC 2022 - Daniel García Moreno + +- New BuildRequires for tests: ipykernel + +------------------------------------------------------------------- +Sun Jan 10 17:31:08 UTC 2021 - Atri Bhattacharya + +- Update to version 0.4.2: + * Fix special char encoding in notebooks, store as + percent-encoded (gh#python-visualization/branca#76). +- New BuildRequires for tests: python-nbconvert. +- Disable an additional test that also requires 'geckodriver'. +- Use source name in the format branca-%{version}. + +------------------------------------------------------------------- +Thu Mar 5 09:12:06 UTC 2020 - pgajdos@suse.com + +- version update to 0.4.0 + - Dropped Python 2 support + - Store html content in a data-html attribute (#66) + - Colormap alpha #64 + - Fix caption being propagated in scale functions #62 + - Assert color type in color_brewer #52 + +------------------------------------------------------------------- +Thu Jun 6 08:25:54 UTC 2019 - pgajdos@suse.com + +- run the testsuite + +------------------------------------------------------------------- +Mon Jan 21 03:42:16 UTC 2019 - Todd R + +- Initial version diff --git a/python-branca.spec b/python-branca.spec new file mode 100644 index 0000000..5e68db5 --- /dev/null +++ b/python-branca.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-branca +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +# no ipython +%global skip_python39 1 +Name: python-branca +Version: 0.8.2 +Release: 0 +Summary: HTML+JS page generator +License: MIT +Group: Development/Languages/Python +URL: https://github.com/python-visualization/branca +# Only the Github archive has the tests. Requires manually setting the version for setuptools_scm below +Source: https://github.com/python-visualization/branca/archive/v%{version}.tar.gz#/branca-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 41.2} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Jinja2 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module ipykernel} +BuildRequires: %{python_module nbconvert} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module selenium} +# /SECTION +%python_subpackages + +%description +Generate HTML+JS pages with Python. + +%prep +%autosetup -p1 -n branca-%{version} + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_rendering_utf8_iframe and test_rendering_figure_notebook require geckodriver +%pytest -k 'not (test_rendering_utf8_iframe or test_rendering_figure_notebook)' + +%files %{python_files} +%doc CHANGES.txt README.md +%license LICENSE.txt +%{python_sitelib}/branca +%{python_sitelib}/branca-%{version}.dist-info + +%changelog