6 Commits

Author SHA256 Message Date
6b0dd59487 Accepting request 1301232 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1301232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=14
2025-08-25 18:36:20 +00:00
a5a353ecef - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygal?expand=0&rev=30
2025-08-25 09:51:46 +00:00
094e5e5092 Accepting request 1284636 from devel:languages:python
- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1284636
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=13
2025-06-11 14:19:08 +00:00
3597409f93 - Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygal?expand=0&rev=28
2025-06-11 06:18:51 +00:00
f246b6e2f1 Accepting request 1199358 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1199358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=12
2024-09-09 12:43:19 +00:00
a842743509 - update to 3.0.5:
* Get rid of the u() helper function
  * Get rid of the to_unicode() helper function
  * Get rid of the to_str() helper function
  * Get rid of _ellipsis and base
  * Always import Iterable from collections.abc

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygal?expand=0&rev=26
2024-08-31 11:59:00 +00:00
4 changed files with 48 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c5da33f1041e8b30cbc980f8a34910d9edc584b833240298f6a25df65425289
size 81840

BIN
pygal-3.0.5.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Aug 25 09:51:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Wed Jun 11 05:53:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Sat Aug 31 11:57:50 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.0.5:
* Get rid of the u() helper function
* Get rid of the to_unicode() helper function
* Get rid of the to_str() helper function
* Get rid of _ellipsis and base
* Always import Iterable from collections.abc
-------------------------------------------------------------------
Thu Dec 14 21:24:19 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pygal
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,29 +16,41 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-pygal
Version: 3.0.4
Version: 3.0.5
Release: 0
Summary: A python svg graph plotting library
License: LGPL-3.0-or-later
Group: Development/Languages/Python
URL: http://pygal.org/
URL: https://pygal.org/
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
BuildRequires: %{python_module CairoSVG}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyquery}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-importlib-metadata
Requires: python-lxml
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-CairoSVG
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
@@ -55,10 +67,10 @@ It supports various chart types and CSS styling.
sed -Ei 's:.pytest-runner.,?::' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen
@@ -73,10 +85,14 @@ mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen
%postun
%python_uninstall_alternative pygal_gen
%pre
%python_libalternatives_reset_alternative pygal_gen
%files %{python_files}
%doc README
%license COPYING
%python_alternative %{_bindir}/pygal_gen
%{python_sitelib}/*
%{python_sitelib}/pygal
%{python_sitelib}/pygal-%{version}.dist-info
%changelog