Sync from SUSE:SLFO:Main python-six revision 5c9eb638318c32afcb09be68f6619f9e

This commit is contained in:
Adrian Schröter 2024-05-03 23:01:37 +02:00
commit 30a9397384
5 changed files with 504 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

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

352
python-six.changes Normal file
View File

@ -0,0 +1,352 @@
-------------------------------------------------------------------
Sun Apr 23 23:24:03 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch documentation to be within the main package.
-------------------------------------------------------------------
Fri Apr 21 12:34:10 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Jun 17 16:58:25 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- provide python3*dist(six): work around boo#1186870
-------------------------------------------------------------------
Sun May 9 17:19:05 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.16.0:
- Port _SixMetaPathImporter to Python 3.10.
-------------------------------------------------------------------
Fri Oct 23 14:35:46 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Use %pycache_only %python_sitelib instead of %python3_sitelib
* fixes gh#openSUSE/python-rpm-macros#64#issuecomment-715373348
-------------------------------------------------------------------
Tue Jun 2 17:11:49 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 1.15.0:
- Pull request #331: Optimize `six.ensure_str` and `six.ensure_binary`.
-------------------------------------------------------------------
Tue Mar 10 07:53:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not cause buildcycle with previous change but rather
install the egg-info prepared metadata from the tarball
-------------------------------------------------------------------
Mon Mar 9 20:54:38 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- use setuptools for building to support pip 10.x (bsc#1166139)
-------------------------------------------------------------------
Tue Jan 21 11:17:01 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 1.14.0
* Add `six.assertNotRegex`
* `six.moves._dummy_thread` now points to the `_thread` module on
Python 3.9+. Python 3.7 and later requires threading and deprecated the
`_dummy_thread` module
* Remove support for Python 2.6 and Python 3.2
* `six.wraps` now ignores missing attributes
-------------------------------------------------------------------
Thu Jan 2 10:36:00 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Pull in dbm/gdbm module from python for testing
-------------------------------------------------------------------
Fri Dec 20 19:06:13 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- update to 0.13.0:
- Issue #298, pull request #299: Add `six.moves.dbm_ndbm`.
- Issue #155: Add `six.moves.collections_abc`, which aliases the `collections`
module on Python 2-3.2 and the `collections.abc` on Python 3.3 and greater.
- Pull request #304: Re-add distutils fallback in `setup.py`.
- Pull request #305: On Python 3.7, `with_metaclass` supports classes using PEP
-------------------------------------------------------------------
Thu Jul 18 09:15:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Simplify the pytest call
-------------------------------------------------------------------
Tue Jun 11 06:58:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix pytest call
- Fixdocumentation package generating
-------------------------------------------------------------------
Fri Jan 25 19:43:33 UTC 2019 - Neal Gompa <ngompa13@gmail.com>
- Change %pretrans back to %pre to fix bootstrap issue
boo#1123064 bsc#1143893
-------------------------------------------------------------------
Thu Jan 17 11:31:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Require just base python module, even full python is too much
and it is not required here
-------------------------------------------------------------------
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>
- remove egg-info directory in %pretrans
- fix egg-info directory pattern
- match any version of egg-info for a certain python version
-------------------------------------------------------------------
Sat Aug 18 09:08:38 UTC 2018 - Matěj Cepl <mcepl@suse.com>
- Break the cycilical dependency on python-setuptools.
-------------------------------------------------------------------
Fri Aug 10 13:07:30 UTC 2018 - tchvatal@suse.com
- Remove argparse dependency
-------------------------------------------------------------------
Mon Oct 16 16:49:50 UTC 2017 - jmatejek@suse.com
- remove egg-info directory before installation if it exists,
because setuptools produce directory and six switched to distutils
that produce a file
(and because rpm can't handle that by itself)
fixes bsc#1057496
-------------------------------------------------------------------
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`.
-------------------------------------------------------------------
Wed Oct 5 14:33:14 UTC 2016 - jmatejek@suse.com
- update for multipython build
-------------------------------------------------------------------
Tue Feb 9 07:45:20 UTC 2016 - olaf@aepfle.de
- Restore buildarch for SLE_11 to fix build
-------------------------------------------------------------------
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.
-------------------------------------------------------------------
Tue Aug 4 07:50:17 UTC 2015 - dimstar@opensuse.org
- Delete the system egg-info during pre phase: older versions of
the package installed it as a directory, the latest update
creates a file, and rpm has known issues with replacing this.
-------------------------------------------------------------------
Wed Jul 29 13:01:56 UTC 2015 - toddrme2178@gmail.com
- Make tests conditional to avoid dependency loop.
-------------------------------------------------------------------
Thu Apr 16 10:41:33 UTC 2015 - hpj@urpla.net
- don't build/package documentation here: it breaks due to cyclic
requirements between six and Sphinx, move doc in its own package
-------------------------------------------------------------------
Sat Jan 24 13:45:42 UTC 2015 - mailaender@opensuse.org
- update to version 1.9.0
- Issue #106: Support the `flush` parameter to `six.print_`.
- Pull request #48 and issue #15: Add the `python_2_unicode_compatible`
decorator.
- Pull request #57 and issue #50: Add several compatibility methods for
unittest assertions that were renamed between Python 2 and 3.
- Issue #105 and pull request #58: Ensure `six.wraps` respects the
*updated* and *assigned* arguments.
- Issue #102: Add `raise_from` to abstract out Python 3's raise from
syntax.
- Issue #97: Optimize `six.iterbytes` on Python 2.
- Issue #98: Fix `six.moves` race condition in multi-threaded code.
- Pull request #51: Add `six.view(keys|values|itmes)`, which provide
dictionary views on Python 2.7+.
-------------------------------------------------------------------
Tue Sep 16 06:32:25 UTC 2014 - tbechtold@suse.com
- update to version 1.8.0:
* Issue #90: Add six.moves.shlex_quote.
* Issue #59: Add six.moves.intern.
* Add six.urllib.parse.uses_(fragment|netloc|params|query|relative).
* Issue #88: Fix add_metaclass when the class has __slots__ containing
"__weakref__" or "__dict__".
* Issue #89: Make six use absolute imports.
* Issue #85: Always accept *updated* and *assigned* arguments for wraps().
* Issue #86: In reraise(), instantiate the exception if the second argument is
None.
* Pull request #45: Add six.moves.email_mime_nonmultipart.
* Issue #81: Add six.urllib.request.splittag mapping.
* Issue #80: Add six.urllib.request.splituser mapping.
-------------------------------------------------------------------
Wed Aug 13 07:44:30 UTC 2014 - mcihar@suse.cz
- update to 1.7.3:
- Issue #77: Fix import six on Python 3.4 with a custom loader.
- Issue #74: six.moves.xmlrpc_server should map to SimpleXMLRPCServer on Python
2 as documented not xmlrpclib.
-------------------------------------------------------------------
Mon Jun 23 08:28:39 UTC 2014 - dmueller@suse.com
- update to 1.7.2:
- Issue #72: Fix installing on Python 2.
- Issue #71: Make the six.moves meta path importer handle reloading of the six
module gracefully.
- Pull request #30: Implement six.moves with a PEP 302 meta path hook.
- Pull request #32: Add six.wraps, which is like functools.wraps but always sets
the __wrapped__ attribute.
- Pull request #35: Improve add_metaclass, so that it doesn't end up inserting
another class into the hierarchy.
- Pull request #34: Add import mappings for dummy_thread.
- Pull request #33: Add import mappings for UserDict and UserList.
- Pull request #31: Select the implementations of dictionary iterator routines
at import time for a 20% speed boost.
-------------------------------------------------------------------
Thu Apr 24 11:20:32 UTC 2014 - dmueller@suse.com
- update to 1.6.1:
- Raise an AttributeError for six.moves.X when X is a module not available in
the current interpreter.
- Raise an AttributeError for every attribute of unimportable modules.
- Issue #56: Make the fake modules six.moves puts into sys.modules appear not to
have a __path__ unless they are loaded.
- Pull request #28: Add support for SplitResult.
- Issue #55: Add move mapping for xmlrpc.server.
- Pull request #29: Add move for urllib.parse.splitquery.
-------------------------------------------------------------------
Wed Feb 26 16:44:10 UTC 2014 - rschweikert@suse.com
- Include in SLE 12 (FATE #315990)
-------------------------------------------------------------------
Sun Feb 9 17:06:59 UTC 2014 - toms@opensuse.org
- update to 1.5.2:
- Issue #53: Make the fake modules six.moves puts into sys.modules
appear not to have a __name__ unless they are loaded.
Changes of older releases, see CHANGES files in the Bitbucket repo at
https://bitbucket.org/gutworth/six/src/758cacd651f3ee8c9eb2253ca3905a1d46f88786/CHANGES?at=default
-------------------------------------------------------------------
Tue Jan 7 14:52:36 UTC 2014 - speilicke@suse.com
- Bring back argparse requirement for SP3
-------------------------------------------------------------------
Mon Sep 2 15:34:12 UTC 2013 - dmueller@suse.com
- update to 1.4.1:
- Issue #31: Add six.moves mapping for UserString.
- Pull request #12: Add six.add_metaclass, a decorator for adding a metaclass to
a class.
- Add six.moves.zip_longest and six.moves.filterfalse, which correspond
respectively to itertools.izip_longest and itertools.ifilterfalse on Python 2
and itertools.zip_longest and itertools.filterfalse on Python 3.
- Issue #25: Add the unichr function, which returns a string for a Unicode
codepoint.
- Issue #26: Add byte2int function, which complements int2byte.
- Issue #23: Allow multiple base classes to be passed to with_metaclass.
- Issue #24: Add six.moves.range alias. This exactly the same as the current
xrange alias.
- Pull request #5: Create six.moves.urllib, which contains abstractions for a
bunch of things which are in urllib in Python 3 and spread out across urllib,
urllib2, and urlparse in Python 2.
-------------------------------------------------------------------
Tue Jul 30 07:41:52 UTC 2013 - speilicke@suse.com
- Run testsuite
- Build and package HTML documentation
-------------------------------------------------------------------
Mon Apr 29 11:14:05 UTC 2013 - dmueller@suse.com
- update to 1.3.0:
- In six.iter(items/keys/values/lists), passed keyword arguments through to the
underlying method.
- Add six.iterlists().
- Fix Jython detection.
-------------------------------------------------------------------
Thu Nov 22 14:18:55 UTC 2012 - toddrme2178@gmail.com
- Removed openSUSE 11.4 spec file workarounds
-------------------------------------------------------------------
Wed Sep 12 03:01:59 UTC 2012 - os-dev@jacraig.com
- Update to 1.2.0:
* Issue #13: Make iterkeys/itervalues/iteritems return iterators on Python 3
instead of iterables.
* Issue #11: Fix maxsize support on Jython.
* Add six.next() as an alias for six.advance_iterator().
* Use the builtin next() function for advance_iterator() where is available
(2.6+), not just Python 3.
* Add the Iterator class for writing portable iterators.
-------------------------------------------------------------------
Tue Jun 5 11:30:58 UTC 2012 - toddrme2178@gmail.com
- Initial spec file

123
python-six.spec Normal file
View File

@ -0,0 +1,123 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
# 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"
%bcond_without test
%define psuffix -test
%else
%bcond_with test
%define psuffix %{nil}
%endif
# in order to avoid rewriting for subpackage generator
%define mypython python
%{?sle15_python_module_pythons}
Name: python-six%{psuffix}
Version: 1.16.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: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module py}
BuildRequires: python3-Sphinx
%endif
# work around boo#1186870
Provides: %{mypython}%{python_version}dist(six) = %{version}
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides: %{mypython}3dist(six) = %{version}
%endif
%python_subpackages
%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.
%if 0%{?suse_version} > 1500
%package -n python-six-doc
Summary: Documentation files for %{name}
Group: Documentation/HTML
Provides: %{python_module six-doc = %{version}}
%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}.
%endif
%prep
%setup -q -n six-%{version}
%build
%pyproject_wheel
%if %{with test}
cd documentation && make html && rm _build/html/.buildinfo
%endif
%install
%if ! %{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest test_six.py
%endif
%pre
# handle distutils (file) to setuptools transition (directory)
if [ -f %{python_sitelib}/six-*-py%{python_version}.egg-info ]; then
rm -vf %{python_sitelib}/six-*-py%{python_version}.egg-info
fi
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst CHANGES
%{python_sitelib}/six.py
%pycache_only %{python_sitelib}/__pycache__/six*.pyc
%{python_sitelib}/six-%{version}*-info
%else
%if 0%{?suse_version} > 1500
%files -n python-six-doc
%license LICENSE
%endif
%doc documentation/_build/html
%endif
%changelog

BIN
six-1.16.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.