Hello community, here is the log from the commit of package python-PyLaTeX for openSUSE:Factory checked in at 2020-08-03 14:18:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyLaTeX (Old) and /work/SRC/openSUSE:Factory/.python-PyLaTeX.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyLaTeX" Mon Aug 3 14:18:32 2020 rev:3 rq:824073 version:1.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyLaTeX/python-PyLaTeX.changes 2020-06-10 00:47:39.142825095 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyLaTeX.new.3592/python-PyLaTeX.changes 2020-08-03 14:19:16.800733383 +0200 @@ -1,0 +2,5 @@ +Mon Aug 3 06:35:01 UTC 2020 - Matej Cepl <[email protected]> + +- Add denose.patch removing nose dependency (gh#JelteF/PyLaTeX#294). + +------------------------------------------------------------------- New: ---- denose.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyLaTeX.spec ++++++ --- /var/tmp/diff_new_pack.i4bD3G/_old 2020-08-03 14:19:18.876735464 +0200 +++ /var/tmp/diff_new_pack.i4bD3G/_new 2020-08-03 14:19:18.876735464 +0200 @@ -26,6 +26,9 @@ Group: Development/Languages/Python 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 [email protected] +# Remove nose dependency +Patch0: denose.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -66,8 +69,11 @@ Recommends: tex(xcolor.sty) BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module nose} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module ordered-set} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module quantities} BuildRequires: texlive-latex BuildRequires: tex(amsmath.sty) BuildRequires: tex(booktabs.sty) @@ -106,6 +112,7 @@ %prep %setup -q -n PyLaTeX-%{version} +%autopatch -p1 %build %python_build @@ -116,7 +123,8 @@ %check # Quantities is an optional dependency that currently doesn't work -%python_expand nosetests-%{$python_bin_suffix} -v -e 'test_quantities' +# %%python_expand nosetests-%%{$python_bin_suffix} -v -e 'test_quantities' +%pytest %files %{python_files} %doc README.rst ++++++ denose.patch ++++++ --- 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}
