Accepting request 507291 from home:alois:branches:devel:languages:python
I actually need that %_python_use_flavor or %python_exec will rename the build directory. OBS-URL: https://build.opensuse.org/request/show/507291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=11
This commit is contained in:
parent
b4ea8dfb81
commit
2d9c8a2301
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>python-zope.exceptions-doc</package>
|
||||||
|
</multibuild>
|
||||||
|
|
3
pre_checkin.sh
Normal file
3
pre_checkin.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cp python-zope.exceptions.changes python-zope.exceptions-doc.changes
|
||||||
|
|
49
python-zope.exceptions-doc.changes
Normal file
49
python-zope.exceptions-doc.changes
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 23 09:02:36 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Update to version 4.1.0
|
||||||
|
* Drop support for Python 2.6 and 3.2.
|
||||||
|
* Make exceptionformatter.extract_stack signature comply with
|
||||||
|
traceback.extract_stack
|
||||||
|
* Add support for Python 3.5.
|
||||||
|
4.0.8:
|
||||||
|
* Fixes around TextExceptionFormatter limit: formatException
|
||||||
|
and extractStack was cutting the traceback at the bottom, at
|
||||||
|
the most interesting point. Now it will cut from the middle.
|
||||||
|
Some text about the missing entries will be inserted.
|
||||||
|
* Maybe fix for extractStack, it did not detect recursions in
|
||||||
|
the frames.
|
||||||
|
|
||||||
|
- Split -doc into separate package and put tests there
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 3 12:28:13 UTC 2015 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Disable tests to avoid dependency loop
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 15 11:55:03 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 4.0.7:
|
||||||
|
* Added explicit support for Python 3.4.
|
||||||
|
* Updated boostrap.py to version 2.2.
|
||||||
|
- switch the source archive to tar.gz (zip not available)
|
||||||
|
- remove unzip from BuildRequires
|
||||||
|
- pass -q to test to avoid spamming the build log
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 24 11:17:56 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Require python-setuptools instead of distribute (upstreams merged)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 14:04:41 UTC 2013 - hpj@urpla.net
|
||||||
|
|
||||||
|
- generate documentation in separate -doc file
|
||||||
|
- enable tests (run tests on source tree)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 15 14:01:12 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
63
python-zope.exceptions-doc.spec
Normal file
63
python-zope.exceptions-doc.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-zope.exceptions-doc
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-zope.exceptions-doc
|
||||||
|
Version: 4.1.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Documentation for python-zope.exceptions
|
||||||
|
License: ZPL-2.1
|
||||||
|
Group: Documentation/HTML
|
||||||
|
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
||||||
|
# SECTION Documentation requirements
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildRequires: python3-repoze.sphinx.autointerface
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
# SECTION Test requirements:
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module zope.exceptions} = %{version}
|
||||||
|
BuildRequires: %{python_module zope.testrunner}
|
||||||
|
# /SECTION
|
||||||
|
Requires: python-zope.exceptions = %{version}
|
||||||
|
Provides: %{python_module zope.exceptions-doc == %{version}}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains documentation files for python-zope.exceptions.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n zope.exceptions-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{_python_use_flavor python3}
|
||||||
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
|
%install
|
||||||
|
# Not needed
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_exec %{_bindir}/zope-testrunner -vvv --test-path src
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYRIGHT.txt LICENSE.txt
|
||||||
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
|
%changelog
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 23 09:02:36 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Update to version 4.1.0
|
||||||
|
* Drop support for Python 2.6 and 3.2.
|
||||||
|
* Make exceptionformatter.extract_stack signature comply with
|
||||||
|
traceback.extract_stack
|
||||||
|
* Add support for Python 3.5.
|
||||||
|
4.0.8:
|
||||||
|
* Fixes around TextExceptionFormatter limit: formatException
|
||||||
|
and extractStack was cutting the traceback at the bottom, at
|
||||||
|
the most interesting point. Now it will cut from the middle.
|
||||||
|
Some text about the missing entries will be inserted.
|
||||||
|
* Maybe fix for extractStack, it did not detect recursions in
|
||||||
|
the frames.
|
||||||
|
|
||||||
|
- Split -doc into separate package and put tests there
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 3 12:28:13 UTC 2015 - toddrme2178@gmail.com
|
Thu Sep 3 12:28:13 UTC 2015 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zope.exceptions
|
# spec file for package python-zope.exceptions
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,68 +16,41 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-zope.exceptions
|
Name: python-zope.exceptions
|
||||||
Version: 4.0.7
|
Version: 4.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Zope Exceptions
|
Summary: Zope Exceptions
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||||
Source: http://pypi.python.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
# Documentation requirements:
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-repoze.sphinx.autointerface
|
|
||||||
# Test result in a dependency loop
|
|
||||||
# Test requirements:
|
|
||||||
# BuildRequires: python-six
|
|
||||||
# BuildRequires: python-zope.interface
|
|
||||||
# BuildRequires: python-zope.testrunner
|
|
||||||
Requires: python-zope.interface
|
Requires: python-zope.interface
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains exception interfaces and implementations which are so
|
This package contains exception interfaces and implementations which are so
|
||||||
general purpose that they don't belong in Zope application-specific packages.
|
general purpose that they don't belong in Zope application-specific packages.
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Zope Exceptions
|
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %{name} = %{version}
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
This package contains documentation files for %{name}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zope.exceptions-%{version}
|
%setup -q -n zope.exceptions-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
PYTHONPATH=$(pwd)/build/lib python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
# Test result in a dependency loop
|
%files %{python_files}
|
||||||
#NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file
|
|
||||||
#NOTE(frispete): run tests against source in order to avoid the need for an
|
|
||||||
# external test package
|
|
||||||
# %check
|
|
||||||
# PYTHONPATH=$(pwd)/src python setup.py -q test
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files doc
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/sphinx/html/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:98235d1a119ec0134076c20a827393c739532560a08f5670553ebf9a735238b8
|
|
||||||
size 413151
|
|
3
zope.exceptions-4.1.0.tar.gz
Normal file
3
zope.exceptions-4.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f1c086abddc9f2050df5824ff7ab8ece3285c8e28453a29ee761effbc5e592ad
|
||||||
|
size 26605
|
Loading…
Reference in New Issue
Block a user