From 72da199e7cc08b18bccd161b33a023e64fdccbea7582b93c2dceebf25cf28125 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 8 Nov 2019 19:48:20 +0000 Subject: [PATCH] Accepting request 746678 from home:TheBlackCat:branches:devel:languages:python A Python library for creating LaTeX files and snippets OBS-URL: https://build.opensuse.org/request/show/746678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyLaTeX?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + PyLaTeX-1.3.1.tar.gz | 3 + python-PyLaTeX.changes | 4 ++ python-PyLaTeX.spec | 126 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 157 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PyLaTeX-1.3.1.tar.gz create mode 100644 python-PyLaTeX.changes create mode 100644 python-PyLaTeX.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyLaTeX-1.3.1.tar.gz b/PyLaTeX-1.3.1.tar.gz new file mode 100644 index 0000000..03f92a0 --- /dev/null +++ b/PyLaTeX-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50657df50688f994d4efcafa3f97d39b0061022ef8271f1f9ee43808d2f7a162 +size 300388 diff --git a/python-PyLaTeX.changes b/python-PyLaTeX.changes new file mode 100644 index 0000000..a8f2041 --- /dev/null +++ b/python-PyLaTeX.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 8 17:41:10 UTC 2019 - Todd R + +- Initial version diff --git a/python-PyLaTeX.spec b/python-PyLaTeX.spec new file mode 100644 index 0000000..63955b3 --- /dev/null +++ b/python-PyLaTeX.spec @@ -0,0 +1,126 @@ +# +# spec file for package python-PyLaTeX +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-PyLaTeX +Version: 1.3.1 +Release: 0 +Summary: A Python library for creating LaTeX files and snippets +License: MIT +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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-ordered-set +Requires: texlive-latex +Recommends: python-matplotlib +Recommends: python-numpy +Recommends: python-quantities +Recommends: tex(amsmath.sty) +Recommends: tex(booktabs.sty) +Recommends: tex(cleveref.sty) +Recommends: tex(color.sty) +Recommends: tex(enumitem.sty) +Recommends: tex(fancyhdr.sty) +Recommends: tex(fontenc.sty) +Recommends: tex(geometry.sty) +Recommends: tex(graphicx.sty) +Recommends: tex(hyperref.sty) +Recommends: tex(inputenc.sty) +Recommends: tex(lastpage.sty) +Recommends: tex(lmodern.sty) +Recommends: tex(longtable.sty) +Recommends: tex(ltablex.sty) +Recommends: tex(mdframed.sty) +Recommends: tex(microtype.sty) +Recommends: tex(multirow.sty) +Recommends: tex(parskip.sty) +Recommends: tex(pgfplots.sty) +Recommends: tex(ragged2e.sty) +Recommends: tex(siunitx.sty) +Recommends: tex(subcaption.sty) +Recommends: tex(tabu.sty) +Recommends: tex(tabularx.sty) +Recommends: tex(textcomp.sty) +Recommends: tex(textpos.sty) +Recommends: tex(tikz.sty) +Recommends: tex(xcolor.sty) +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module nose} +BuildRequires: %{python_module ordered-set} +BuildRequires: texlive-latex +BuildRequires: tex(amsmath.sty) +BuildRequires: tex(booktabs.sty) +BuildRequires: tex(cleveref.sty) +BuildRequires: tex(color.sty) +BuildRequires: tex(enumitem.sty) +BuildRequires: tex(fancyhdr.sty) +BuildRequires: tex(fontenc.sty) +BuildRequires: tex(geometry.sty) +BuildRequires: tex(graphicx.sty) +BuildRequires: tex(hyperref.sty) +BuildRequires: tex(inputenc.sty) +BuildRequires: tex(lastpage.sty) +BuildRequires: tex(lmodern.sty) +BuildRequires: tex(longtable.sty) +BuildRequires: tex(ltablex.sty) +BuildRequires: tex(mdframed.sty) +BuildRequires: tex(microtype.sty) +BuildRequires: tex(multirow.sty) +BuildRequires: tex(parskip.sty) +BuildRequires: tex(pgfplots.sty) +BuildRequires: tex(ragged2e.sty) +BuildRequires: tex(siunitx.sty) +BuildRequires: tex(subcaption.sty) +BuildRequires: tex(tabu.sty) +BuildRequires: tex(tabularx.sty) +BuildRequires: tex(textcomp.sty) +BuildRequires: tex(textpos.sty) +BuildRequires: tex(tikz.sty) +BuildRequires: tex(xcolor.sty) +# /SECTION +%python_subpackages + +%description +PyLaTeX is a Python library for creating and compiling LaTeX files. + +%prep +%setup -q -n PyLaTeX-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Quantities is an optional dependency that currently doesn't work +%python_expand nosetests-%{$python_bin_suffix} -v -e 'test_quantities' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog