15
0
forked from pool/python-cogapp

- 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
This commit is contained in:
Tomáš Chvátal
2019-04-05 11:20:27 +00:00
committed by Git OBS Bridge
parent d5b641a19e
commit 9d0c359fff
4 changed files with 17 additions and 13 deletions

View File

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

3
cogapp-3.0.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Apr 5 11:14:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <mcepl@suse.com>

View File

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