From 9d0c359fff2196ba0edc93b29792601fc07155716940a236e4725ea1ccc71770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 5 Apr 2019 11:20:27 +0000 Subject: [PATCH] - Update to 3.0.0: * Use pytest for testing * Many many changes in git but no readable changelog OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=6 --- cogapp-2.5.1.tar.gz | 3 --- cogapp-3.0.0.tar.gz | 3 +++ python-cogapp.changes | 7 +++++++ python-cogapp.spec | 17 +++++++---------- 4 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 cogapp-2.5.1.tar.gz create mode 100644 cogapp-3.0.0.tar.gz diff --git a/cogapp-2.5.1.tar.gz b/cogapp-2.5.1.tar.gz deleted file mode 100644 index 3b32957..0000000 --- a/cogapp-2.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8cf2288fb5a2087eb4a00d8b347ddc86e9058d4ab26b8c868433eb401adfe1c -size 22226 diff --git a/cogapp-3.0.0.tar.gz b/cogapp-3.0.0.tar.gz new file mode 100644 index 0000000..180588c --- /dev/null +++ b/cogapp-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e5da2bcfc4e4750c66cecb80ea4eaed1ef4fddd3787c989d4f5bfffb1152d6a +size 24638 diff --git a/python-cogapp.changes b/python-cogapp.changes index 1cc4999..523db92 100644 --- a/python-cogapp.changes +++ b/python-cogapp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Apr 5 11:14:30 UTC 2019 - Tomáš Chvátal + +- Update to 3.0.0: + * Use pytest for testing + * Many many changes in git but no readable changelog + ------------------------------------------------------------------- Tue Dec 4 12:46:44 UTC 2018 - Matej Cepl diff --git a/python-cogapp.spec b/python-cogapp.spec index dc19bf2..e8cbf2e 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -1,7 +1,7 @@ # # spec file for package python-cogapp # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -17,23 +17,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-cogapp -Version: 2.5.1 +Version: 3.0.0 Release: 0 Summary: A code generator for executing Python snippets in source files License: MIT Group: Development/Languages/Python URL: http://nedbatchelder.com/code/cog Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(preun): update-alternatives BuildArch: noarch -%if %{with test} -BuildRequires: %{python_module nose} -%endif %python_subpackages %description @@ -49,13 +47,12 @@ need. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog %python_clone -a %{buildroot}%{_bindir}/cog -%if %{with test} %check -%python_expand nosetests-%{$python_bin_suffix} -%endif +%pytest %post %python_install_alternative cog @@ -65,7 +62,7 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog %files %{python_files} %license LICENSE.txt -%doc README.txt +%doc README.rst %python_alternative %{_bindir}/cog %{python_sitelib}/*