From 104e8d5d95794bbc16e71b71ece830d7679db6a7b9875e5a37a4354468784ad5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 8 Sep 2023 17:09:43 +0000 Subject: [PATCH] Accepting request 1109741 from home:badshah400:branches:devel:languages:python:numeric * Update to version 0.16: * Rename source tarball to PyX-%{version}.tar.gz. * Use pyproject macros to build; add BuildRequires: python-pip, python-wheel. OBS-URL: https://build.opensuse.org/request/show/1109741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-PyX?expand=0&rev=7 --- 0.15.tar.gz | 3 --- PyX-0.16.tar.gz | 3 +++ python-PyX.changes | 12 ++++++++++++ python-PyX.spec | 20 +++++++++++++------- 4 files changed, 28 insertions(+), 10 deletions(-) delete mode 100644 0.15.tar.gz create mode 100644 PyX-0.16.tar.gz diff --git a/0.15.tar.gz b/0.15.tar.gz deleted file mode 100644 index edc363c..0000000 --- a/0.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2048d6229f4880b6c8c5b26afa1aa857b668e6e6d6b850930cf5aafe72916cba -size 875286 diff --git a/PyX-0.16.tar.gz b/PyX-0.16.tar.gz new file mode 100644 index 0000000..21927ac --- /dev/null +++ b/PyX-0.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be2c0433cdb172d1d65c7f3bfe49d8a28b08a13c955562571a2e559a8fcc2050 +size 887486 diff --git a/python-PyX.changes b/python-PyX.changes index 49d93cd..a351d63 100644 --- a/python-PyX.changes +++ b/python-PyX.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri Sep 8 14:09:29 UTC 2023 - Atri Bhattacharya + +- Update to version 0.16: + * Enable a shortcut for accessing graph-component attributes, + simplifying the modification of default components. + * Small improvements and several bug fixes, especially for text + alignment with TeX Live 2020. +- Rename source tarball to PyX-%{version}.tar.gz. +- Use pyproject macros to build; add BuildRequires: python-pip, + python-wheel. + ------------------------------------------------------------------- Fri May 7 12:21:08 UTC 2021 - Ben Greiner diff --git a/python-PyX.spec b/python-PyX.spec index a33baae..339f58f 100644 --- a/python-PyX.spec +++ b/python-PyX.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyX # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,16 +20,18 @@ %define skip_python2 1 %bcond_without test Name: python-PyX -Version: 0.15 +Version: 0.16 Release: 0 Summary: Python package for the generation of PostScript, PDF, and SVG files License: GPL-2.0-or-later Group: Development/Languages/Python URL: https://pyx-project.org/ -Source: https://github.com/pyx-project/pyx/archive/%{version}.tar.gz +Source: https://github.com/pyx-project/pyx/archive/%{version}.tar.gz#/PyX-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testfixtures} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: texlive-latex-bin-bin @@ -55,11 +57,14 @@ built out of these primitives. sed -i 's/l.check/l.check_present/' test/unit/test_texmessageparser.py %build -%python_build +%pyproject_wheel %install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%pyproject_install +%{python_expand # Cleanups +chmod -x %{buildroot}%{$python_sitelib}/pyx/data/lfs/createlfs.py +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest test/unit @@ -67,6 +72,7 @@ sed -i 's/l.check/l.check_present/' test/unit/test_texmessageparser.py %files %{python_files} %license LICENSE %doc AUTHORS CHANGES README.md -%{python_sitelib}/* +%{python_sitelib}/pyx/ +%{python_sitelib}/PyX-%{version}*-info/ %changelog