14
0

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
This commit is contained in:
2021-01-11 15:06:07 +00:00
committed by Git OBS Bridge
parent 6433d6f0ec
commit a372d10700
5 changed files with 21 additions and 58 deletions

View File

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

3
PyLaTeX-1.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79f1c94ed7c251378d1a4008635b3123191dbe65bac79c9aaeb0eaefbdfcf13c
size 301482

View File

@@ -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}

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sun Jan 10 18:05:44 UTC 2021 - andy great <andythe_great@pm.me>
- 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 <steven.kowalik@suse.com>

View File

@@ -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