From a372d10700fbdb9e52078d73f68a46b7ecda36f23d67016974bf39a13150e9d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 11 Jan 2021 15:06:07 +0000 Subject: [PATCH] Accepting request 862143 from home:andythe_great:branches:devel:languages:python - Update to version 1.4.1. * Fixes regression in 1.4.0 where empty ``geometry_options`` would throw an error. - Updates for version 1.4.0 * Add ``Fragment`` class which is a ``Container`` without any LaTeX code surrounding its content. * Escape newlines in ``ContainerCommand`` * Fix bug where the geometry options were not applied in some cases * Remove denose.patch, fixed. OBS-URL: https://build.opensuse.org/request/show/862143 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyLaTeX?expand=0&rev=9 --- PyLaTeX-1.3.4.tar.gz | 3 --- PyLaTeX-1.4.1.tar.gz | 3 +++ denose.patch | 48 ------------------------------------------ python-PyLaTeX.changes | 14 ++++++++++++ python-PyLaTeX.spec | 11 ++++------ 5 files changed, 21 insertions(+), 58 deletions(-) delete mode 100644 PyLaTeX-1.3.4.tar.gz create mode 100644 PyLaTeX-1.4.1.tar.gz delete mode 100644 denose.patch diff --git a/PyLaTeX-1.3.4.tar.gz b/PyLaTeX-1.3.4.tar.gz deleted file mode 100644 index aeecda9..0000000 --- a/PyLaTeX-1.3.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccd28a9e195afcea07a121d74aac59eb52cd5d19b0650b698eb730b28f9d0ff7 -size 300679 diff --git a/PyLaTeX-1.4.1.tar.gz b/PyLaTeX-1.4.1.tar.gz new file mode 100644 index 0000000..f6705df --- /dev/null +++ b/PyLaTeX-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79f1c94ed7c251378d1a4008635b3123191dbe65bac79c9aaeb0eaefbdfcf13c +size 301482 diff --git a/denose.patch b/denose.patch deleted file mode 100644 index 33ebc6b..0000000 --- a/denose.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- a/tests/test_forced_dumps_implementation.py -+++ b/tests/test_forced_dumps_implementation.py -@@ -1,16 +1,16 @@ - from pylatex.base_classes import LatexObject --from nose.tools import raises -+from pytest import raises - - - class BadObject(LatexObject): - pass - - --@raises(TypeError) - def test_latex_object(): -- LatexObject() -+ with raises(TypeError): -+ LatexObject() - - --@raises(TypeError) - def test_bad_object(): -- BadObject() -+ with raises(TypeError): -+ BadObject() ---- a/setup.py -+++ b/setup.py -@@ -29,8 +29,8 @@ extras = { - 'quantities': ['quantities', 'numpy'], - 'testing': ['flake8<3.0.0', 'pep8-naming==0.8.2', - 'flake8_docstrings==1.3.0', 'pycodestyle==2.0.0', -- 'pydocstyle==3.0.0', 'pyflakes==1.2.3', 'nose', 'flake8-putty', -- 'coverage'], -+ 'pydocstyle==3.0.0', 'pyflakes==1.2.3', 'pytest', 'flake8-putty', -+ 'coverage', 'pytest-cov'], - 'convert_to_py2': ['3to2', 'future>=0.15.2'], - } - ---- a/testall.sh -+++ b/testall.sh -@@ -66,7 +66,7 @@ else - fi - - echo -e '\e[32mTesting tests directory\e[0m' --if ! $python "$(command -v nosetests)" --with-coverage tests/*; then -+if ! $python "$(command -v pytest)" --cov=pylatex tests/*; then - exit 1 - fi - mv .coverage{,.tests} diff --git a/python-PyLaTeX.changes b/python-PyLaTeX.changes index 9931a65..811d45a 100644 --- a/python-PyLaTeX.changes +++ b/python-PyLaTeX.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Jan 10 18:05:44 UTC 2021 - andy great + +- Update to version 1.4.1. + * Fixes regression in 1.4.0 where empty ``geometry_options`` + would throw an error. +- Updates for version 1.4.0 + * Add ``Fragment`` class which is a ``Container`` without any + LaTeX code surrounding its content. + * Escape newlines in ``ContainerCommand`` + * Fix bug where the geometry options were not applied in some + cases + * Remove denose.patch, fixed. + ------------------------------------------------------------------- Tue Sep 1 06:56:57 UTC 2020 - Steve Kowalik diff --git a/python-PyLaTeX.spec b/python-PyLaTeX.spec index e1dfa7b..0a66bab 100644 --- a/python-PyLaTeX.spec +++ b/python-PyLaTeX.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyLaTeX # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,15 +19,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-PyLaTeX -Version: 1.3.4 +Version: 1.4.1 Release: 0 Summary: A Python library for creating LaTeX files and snippets License: MIT URL: https://github.com/JelteF/PyLaTeX Source: https://github.com/JelteF/PyLaTeX/archive/v%{version}.tar.gz#/PyLaTeX-%{version}.tar.gz -# PATCH-FEATURE-UPSTREAM denose.patch gh#JelteF/PyLaTeX#294 mcepl@suse.com -# Remove nose dependency -Patch0: denose.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -111,7 +108,6 @@ PyLaTeX is a Python library for creating and compiling LaTeX files. %prep %setup -q -n PyLaTeX-%{version} -%autopatch -p1 %build %python_build @@ -128,6 +124,7 @@ PyLaTeX is a Python library for creating and compiling LaTeX files. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pylatex +%{python_sitelib}/*egg-info %changelog