Accepting request 656810 from devel:languages:python

- Update to 0.12.0:
    * `six.add_metaclass` now preserves `__qualname__` from the
      original class.
    * Add `six.ensure_binary`, `six.ensure_text`, and
      `six.ensure_str`.
- Because of cyclical dependencies between six and Sphinx, we
  need to to do multibuild.

OBS-URL: https://build.opensuse.org/request/show/656810
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-six?expand=0&rev=30
This commit is contained in:
Dominique Leuenberger 2018-12-14 19:47:59 +00:00 committed by Git OBS Bridge
commit 29aa571aa6
7 changed files with 73 additions and 141 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,62 +0,0 @@
-------------------------------------------------------------------
Fri Aug 10 13:07:30 UTC 2018 - tchvatal@suse.com
- Remove argparse dependency
-------------------------------------------------------------------
Thu Sep 28 07:47:18 UTC 2017 - tbechtold@suse.com
- Fix Source url
-------------------------------------------------------------------
Sat Sep 23 20:49:03 UTC 2017 - arun@gmx.de
- README->README.rst, add CHANGES
- update to version 1.11.0:
* Pull request #178: `with_metaclass` now properly proxies
`__prepare__` to the underlying metaclass.
* Pull request #191: Allow `with_metaclass` to work with metaclasses
implemented in C.
* Pull request #203: Add parse_http_list and parse_keqv_list to
moved urllib.request.
* Pull request #172 and issue #171: Add unquote_to_bytes to moved
urllib.parse.
* Pull request #167: Add `six.moves.getoutput`.
* Pull request #80: Add `six.moves.urllib_parse.splitvalue`.
* Pull request #75: Add `six.moves.email_mime_image`.
* Pull request #72: Avoid creating reference cycles through
tracebacks in `reraise`.
-------------------------------------------------------------------
Thu Feb 23 14:47:06 UTC 2017 - jmatejek@suse.com
- update for singlespec
- only use python3 version of Sphinx to build docs
- provide $flavor-doc for all pythons
-------------------------------------------------------------------
Tue Jan 19 09:07:19 UTC 2016 - toddrme2178@gmail.com
- Run tests in -doc package to avoid dependency loops
* python-setuptools -> python-six -> python-py -> python-setuptools
* python-setuptools -> python-six -> python-pytest -> python-setuptools
- Actually run the tests. They weren't previously being run.
-------------------------------------------------------------------
Fri Oct 9 08:17:49 UTC 2015 - mcihar@suse.cz
- Update to 1.10.0:
- Issue #122: Improve the performance of `six.int2byte` on Python 3.
- Pull request #55 and issue #99: Don't add the `winreg` module to `six.moves`
on non-Windows platforms.
- Pull request #60 and issue #108: Add `six.moves.getcwd` and
`six.moves.getcwdu`.
- Pull request #64: Add `create_unbound_method` to create unbound methods.
-------------------------------------------------------------------
Thu Apr 16 20:11:49 UTC 2015 - hpj@urpla.net
- first build of separated docs due to cyclic requirements of
six and Sphinx.

View File

@ -1,69 +0,0 @@
#
# spec file for package python-six-doc
#
# Copyright (c) 2018 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-%{**}}
Name: python-six-doc
Version: 1.11.0
Release: 0
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/six/
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
# Test requirements:
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module py}
BuildRequires: %{python_module six}
BuildRequires: python-rpm-macros
# require only one version of Sphinx
BuildRequires: python3-Sphinx
Provides: %{python_module six-doc = %{version}}
BuildArch: noarch
%description
Six is a Python 2 and 3 compatibility library. It provides utility
functions for smoothing over the differences between the Python
versions with the goal of writing Python code that is compatible on
both Python versions. See the documentation for more information on
what is provided.
%prep
%setup -q -n six-%{version}
%build
# due to cyclic requirements between Sphinx and six,
# documentation is build in its own package <hpj@urpla.net>
cd documentation && make html && rm _build/html/.buildinfo
%install
:
# Run tests here to avoid dependency loop
%check
mkdir test
cp test_six.py test
pushd test
%python_exec %{_bindir}/py.test test_six.py
popd
rm -rf test
%files
%license LICENSE
%doc README.rst CHANGES documentation/_build/html
%changelog

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Dec 10 09:20:52 CET 2018 - mcepl@suse.com
- Update to 0.12.0:
* `six.add_metaclass` now preserves `__qualname__` from the
original class.
* Add `six.ensure_binary`, `six.ensure_text`, and
`six.ensure_str`.
- Because of cyclical dependencies between six and Sphinx, we
need to to do multibuild.
-------------------------------------------------------------------
Mon Sep 3 15:37:13 UTC 2018 - Hans-Peter Jansen <hpj@urpla.net>

View File

@ -17,16 +17,36 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# This is not only because of dependency of testsuite, but mostly
# because of cyclical dependencies between six and Sphinx.
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define test 1
%bcond_without test
%else
%bcond_with test
%endif
%if %{with test}
Name: python-six-%{flavor}
%else
Name: python-six
Version: 1.11.0
%endif
Version: 1.12.0
Release: 0
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/six/
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2
BuildRequires: python3
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module py}
BuildRequires: python3-Sphinx
%endif
BuildArch: noarch
%python_subpackages
@ -37,20 +57,45 @@ versions with the goal of writing Python code that is compatible on
both Python versions. See the documentation for more information on
what is provided.
%package -n python-six-doc
Provides: %{python_module six-doc = %{version}}
Summary: Documentation files for %name
Group: Documentation/HTML
%description -n python-six-doc
Six is a Python 2 and 3 compatibility library. It provides utility
functions for smoothing over the differences between the Python
versions with the goal of writing Python code that is compatible on
both Python versions.
This package provides documentation for %{name}.
%prep
%setup -q -n six-%{version}
%build
%if ! %{with test}
%python_build
# due to cyclic requirements between Sphinx and six,
# documentation is build in its own package <hpj@urpla.net>
%else
cd documentation && make html && rm _build/html/.buildinfo
%endif
%install
%if ! %{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
# Run tests in -doc package to avoid dependency loop
# %check
# python test_six.py
%check
%if %{with test}
mkdir test
cp test_six.py test
pushd test
%python_exec %{_bindir}/py.test test_six.py
popd
rm -rf test
%endif
%pretrans
# bsc#1057496 - egg-info changed from directory to file
@ -61,8 +106,12 @@ fi
%files %{python_files}
%license LICENSE
%doc README.rst CHANGES
%if %{with test}
%doc documentation/_build/html
%else
%{python_sitelib}/six.py*
%pycache_only %{python3_sitelib}/__pycache__/*
%{python_sitelib}/six-%{version}-py*.egg-info
%endif
%changelog

View File

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

3
six-1.12.0.tar.gz Normal file
View File

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