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:
commit
29aa571aa6
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -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.
|
|
||||||
|
|
@ -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
|
|
@ -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>
|
Mon Sep 3 15:37:13 UTC 2018 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@ -17,16 +17,36 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!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
|
Name: python-six
|
||||||
Version: 1.11.0
|
%endif
|
||||||
|
Version: 1.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: http://pypi.python.org/pypi/six/
|
URL: http://pypi.python.org/pypi/six/
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%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
|
both Python versions. See the documentation for more information on
|
||||||
what is provided.
|
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
|
%prep
|
||||||
%setup -q -n six-%{version}
|
%setup -q -n six-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if ! %{with test}
|
||||||
%python_build
|
%python_build
|
||||||
# due to cyclic requirements between Sphinx and six,
|
%else
|
||||||
# documentation is build in its own package <hpj@urpla.net>
|
cd documentation && make html && rm _build/html/.buildinfo
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if ! %{with test}
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Run tests in -doc package to avoid dependency loop
|
%check
|
||||||
# %check
|
%if %{with test}
|
||||||
# python test_six.py
|
mkdir test
|
||||||
|
cp test_six.py test
|
||||||
|
pushd test
|
||||||
|
%python_exec %{_bindir}/py.test test_six.py
|
||||||
|
popd
|
||||||
|
rm -rf test
|
||||||
|
%endif
|
||||||
|
|
||||||
%pretrans
|
%pretrans
|
||||||
# bsc#1057496 - egg-info changed from directory to file
|
# bsc#1057496 - egg-info changed from directory to file
|
||||||
@ -61,8 +106,12 @@ fi
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst CHANGES
|
%doc README.rst CHANGES
|
||||||
|
%if %{with test}
|
||||||
|
%doc documentation/_build/html
|
||||||
|
%else
|
||||||
%{python_sitelib}/six.py*
|
%{python_sitelib}/six.py*
|
||||||
%pycache_only %{python3_sitelib}/__pycache__/*
|
%pycache_only %{python3_sitelib}/__pycache__/*
|
||||||
%{python_sitelib}/six-%{version}-py*.egg-info
|
%{python_sitelib}/six-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -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
3
six-1.12.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73
|
||||||
|
size 32725
|
Loading…
x
Reference in New Issue
Block a user