diff --git a/packages/p/python-anyjson/.files b/packages/p/python-anyjson/.files deleted file mode 100644 index 43c10025732..00000000000 Binary files a/packages/p/python-anyjson/.files and /dev/null differ diff --git a/packages/p/python-anyjson/.meta b/packages/p/python-anyjson/.meta deleted file mode 100644 index 7ea5bd7b574..00000000000 --- a/packages/p/python-anyjson/.meta +++ /dev/null @@ -1,9 +0,0 @@ - - Wraps the best available JSON implementation available in a common interface - Anyjson loads whichever is the fastest JSON module installed and provides -a uniform API regardless of which JSON implementation is used. - -Originally part of carrot (http://github.com/ask/carrot/) - - http://bitbucket.org/runeh/anyjson - diff --git a/packages/p/python-anyjson/.rev b/packages/p/python-anyjson/.rev deleted file mode 100644 index 4e83aa3534d..00000000000 --- a/packages/p/python-anyjson/.rev +++ /dev/null @@ -1,184 +0,0 @@ - - - 6acc08fbab5b3e7b5e4a9d24d324a334 - 0.3.1 - - saschpe - Forwarding Python packages to Factory... - 67547 - - - f16754c5649cc78996f48160a0d7c135 - 0.3.1 - - saschpe - Autobuild autoformatter for 67547 - - - - f16754c5649cc78996f48160a0d7c135 - 0.3.1 - - adrianSuSE - - - d260960c877bc8901ec4d8a4e8fa526f - 0.3.1 - - coolo - - 106726 - - - 94f85c20320fd11849668c69b9f9568a - 0.3.1 - - coolo - - Use upstream tarball -- Simplify macro usage -- Buildrequire python-distribute instead of setuptools - 108732 - - - 94f85c20320fd11849668c69b9f9568a - 0.3.1 - - adrianSuSE - branched from openSUSE:Factory - - - 9b782c4bb40fb3060861cfe6c72561b8 - 0.3.3 - - coolo - - 126125 - - - 2816fa995dce6527e66ac4027d1bb72b - 0.3.3 - - namtrac - python3 package added (forwarded request 130832 from HighwayStar) - 131004 - - - 581d7b2a552aa2bad99b52d97856648b - 0.3.3 - - coolo - Restore BuildRequires: python3 This package depends on hash algorithms that are only available if python3 is installed, python3-devel will not pull them in. Building will fail if BuildRequires: python3 is removed. (forwarded request 132960 from TheBlackCat) - 132961 - - - f7c8c89e0ae245df7a69b5c79cb40776 - 0.3.3 - - coolo - Removed openSUSE 11.4 spec file workarounds (forwarded request 142742 from TheBlackCat) (forwarded request 142764 from TheBlackCat) - 142782 - - - f7c8c89e0ae245df7a69b5c79cb40776 - 0.3.3 - - adrianSuSE - Split 12.3 from Factory - - - 6d8dd5e1e1461e4db30b6ab908f8542d - 0.3.3 - - coolo - housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory. - 179727 - - - 1c0f68f09c5a5dcb050471f5d2656666 - 0.3.3 - - coolo - - Add LICENSE to %doc section (forwarded request 181870 from babelworx) - 181912 - - - 1c0f68f09c5a5dcb050471f5d2656666 - 0.3.3 - - adrianSuSE - Split 13.1 from Factory - - - 31832d004573867b4f2393031f3c7cf3 - 0.3.3 - - scarabeus_factory - - 204519 - - - 31832d004573867b4f2393031f3c7cf3 - 0.3.3 - - adrianSuSE - Split 13.2 from Factory - - - 094e6ec7d1529654890bbe6a59a36440 - 0.3.3 - - dimstar_suse - - Use pypi download URL and source -- Misc auto-conversion cleanups - -- singlespec auto-conversion - 520812 - - - 1b7b93152f7a60cdd7e1bf14890a839f - 0.3.3 - - dimstar_suse - - 654398 - - - e67eef9cd04cbe70ee80df292d49547e - 0.3.3 - - dimstar_suse - - Format with spec-cleaner - 745408 - - - 1541bbedb6a47137f056b4be6e8cd824 - 0.3.3 - - dimstar_suse - - Shorten the Summary to silence rpmlint. - 938984 - - - 89db8aa21c232cf30ae489ecec00ee67 - 0.3.3+git.1298315003.7bb1d18 - - dimstar_suse - - Update to version 0.3.3+git.1298315003.7bb1d18: - * GitHub-like readmes - * Added tag 0.3 for changeset b5d33ab23b8f - * Bumped version number - * Added python3 support (Thanks asksol) - * Added tag 0.2.5 for changeset 40150de124d6 - * Bumped version, updated changelog - * Added dumps/loads as aliases for serializ/deserialize so it's - in line with the stdlib json module - * Removed a newline in desc that caused problems when building - RPMs (thanks csears) - * Added tag 0.2.4 for changeset 6a0a193e51e4 - * Bumped version and updated changelog -- Add port_to_py3k.patch (gh#kennethreitz-archive/anyjson#2) - which ports whole package to py3k and removes dependency on nose. - - 952682 - - diff --git a/packages/p/python-anyjson/.servicemark b/packages/p/python-anyjson/.servicemark deleted file mode 100644 index 48009716735..00000000000 --- a/packages/p/python-anyjson/.servicemark +++ /dev/null @@ -1 +0,0 @@ -ba6a12cf67d6ccc185a2872c322d88f8 diff --git a/packages/p/python-anyjson/_service b/packages/p/python-anyjson/_service deleted file mode 100644 index c421e50b300..00000000000 --- a/packages/p/python-anyjson/_service +++ /dev/null @@ -1,15 +0,0 @@ - - - 0.3.3+git - https://github.com/kennethreitz-archive/anyjson.git - git - .git* - enable - mcepl@cepl.eu - - - *.tar - gz - - - diff --git a/packages/p/python-anyjson/_servicedata b/packages/p/python-anyjson/_servicedata deleted file mode 100644 index 250b2774640..00000000000 --- a/packages/p/python-anyjson/_servicedata +++ /dev/null @@ -1,4 +0,0 @@ - - - https://github.com/kennethreitz-archive/anyjson.git - 7bb1d1808c42bbb20db2e095d566a881f7bcffef \ No newline at end of file diff --git a/packages/p/python-anyjson/anyjson-0.3.3+git.1298315003.7bb1d18.tar.gz b/packages/p/python-anyjson/anyjson-0.3.3+git.1298315003.7bb1d18.tar.gz deleted file mode 120000 index f3ddeac06f2..00000000000 --- a/packages/p/python-anyjson/anyjson-0.3.3+git.1298315003.7bb1d18.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafkreigm42b5hrihtytdfyfmn5uqhyrcyspcs6raq5iwzcmr2fak5cimdi \ No newline at end of file diff --git a/packages/p/python-anyjson/port_to_py3k.patch b/packages/p/python-anyjson/port_to_py3k.patch deleted file mode 100644 index 242cfccf090..00000000000 --- a/packages/p/python-anyjson/port_to_py3k.patch +++ /dev/null @@ -1,166 +0,0 @@ ---- - anyjson/__init__.py | 12 ++++++------ - setup.py | 7 +------ - tests/benchmark.py | 20 ++++++++++---------- - tests/test_implementations.py | 15 +++++++++------ - 4 files changed, 26 insertions(+), 28 deletions(-) - ---- a/anyjson/__init__.py -+++ b/anyjson/__init__.py -@@ -50,7 +50,7 @@ class _JsonImplementation(object): - """Incapsulates a JSON implementation""" - - def __init__(self, modspec): -- modinfo = dict(zip(_fields, modspec)) -+ modinfo = dict(list(zip(_fields, modspec))) - - # No try block. We want importerror to end up at caller - module = self._attempt_load(modinfo["modname"]) -@@ -61,9 +61,9 @@ class _JsonImplementation(object): - self._encode_error = modinfo["encerror"] - self._decode_error = modinfo["decerror"] - -- if isinstance(modinfo["encerror"], basestring): -+ if isinstance(modinfo["encerror"], str): - self._encode_error = getattr(module, modinfo["encerror"]) -- if isinstance(modinfo["decerror"], basestring): -+ if isinstance(modinfo["decerror"], str): - self._decode_error = getattr(module, modinfo["decerror"]) - - self.name = modinfo["modname"] -@@ -82,7 +82,7 @@ class _JsonImplementation(object): - TypeError if the object could not be serialized.""" - try: - return self._encode(data) -- except self._encode_error, exc: -+ except self._encode_error as exc: - raise TypeError(*exc.args) - - def deserialize(self, s): -@@ -90,7 +90,7 @@ class _JsonImplementation(object): - ValueError if the string vould not be parsed.""" - try: - return self._decode(s) -- except self._decode_error, exc: -+ except self._decode_error as exc: - raise ValueError(*exc.args) - - -@@ -109,7 +109,7 @@ if __name__ == "__main__": - # We do NOT try to load a compatible module because that may throw an - # exception, which renders the package uninstallable with easy_install - # (It trys to execfile the script when installing, to make sure it works) -- print "Running anyjson as a stand alone script is not supported" -+ print("Running anyjson as a stand alone script is not supported") - sys.exit(1) - else: - for modspec in _modules: ---- a/setup.py -+++ b/setup.py -@@ -1,8 +1,4 @@ --import sys -- - extra = {} --if sys.version_info >= (3, 0): -- extra.update(use_2to3=True) - - try: - from setuptools import setup, find_packages -@@ -12,7 +8,7 @@ except ImportError: - author = "Rune Halvorsen" - email = "runefh@gmail.com" - version = "0.3" --desc = """Wraps the best available JSON implementation available in a common interface""" -+desc = """Wraps the best JSON implementation available in a common interface""" - - setup(name='anyjson', - version=version, -@@ -38,6 +34,5 @@ setup(name='anyjson', - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), - zip_safe=False, - platforms=["any"], -- test_suite = 'nose.collector', - **extra - ) ---- a/tests/benchmark.py -+++ b/tests/benchmark.py -@@ -4,7 +4,7 @@ Simple benchmark script to do some basic - - import sys - import time --import urllib -+import urllib.request, urllib.parse, urllib.error - - _small = """ - { -@@ -77,8 +77,8 @@ _twitter = "[]" - - def load_external_json(): - global _reddit, _twitter -- _reddit = urllib.urlopen("http://reddit.com/.json").read() -- _twitter = urllib.urlopen("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitterapi&count=200").read() -+ _reddit = urllib.request.urlopen("http://reddit.com/.json").read() -+ _twitter = urllib.request.urlopen("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitterapi&count=200").read() - - - def do_benchmark(impspec, json, runs=10): -@@ -93,13 +93,13 @@ def do_benchmark(impspec, json, runs=10) - return None - - start = time.time() -- for n in xrange(runs): -+ for n in range(runs): - data = reads(json) - - readtime = time.time() - start - - start = time.time() -- for n in xrange(runs): -+ for n in range(runs): - devnull = dumps(data) - - return readtime, time.time() - start # tuple (readtime, writetime) -@@ -131,13 +131,13 @@ for e in modules: - - no_res = set([e for e in res if e[1] is None]) - res = list(set(res) - no_res) --res = [(e[0], sum(map(lambda x:x[0], e[1:])), sum(map(lambda x:x[1], e[1:]))) for e in res] -+res = [(e[0], sum([x[0] for x in e[1:]]), sum([x[1] for x in e[1:]])) for e in res] - - res.sort(lambda a,b: cmp((a[1]+a[2]), b[1]+b[2])) - --print "Total Read Write Implementation" --print "-----------------------------------" -+print("Total Read Write Implementation") -+print("-----------------------------------") - for e in res: -- print "%.3f %.3f %.3f %s" % (e[1]+e[2], e[1], e[2], e[0]) -+ print("%.3f %.3f %.3f %s" % (e[1]+e[2], e[1], e[2], e[0])) - for e in no_res: -- print "Not installed:", e[0] -+ print("Not installed:", e[0]) ---- a/tests/test_implementations.py -+++ b/tests/test_implementations.py -@@ -1,4 +1,4 @@ --from nose.tools import assert_raises -+import pytest - import anyjson - - modnames = [e[0] for e in anyjson._modules] -@@ -42,8 +42,11 @@ def test_exceptions(): - except ImportError: - continue # module can't be tested, try next - -- assert_raises(TypeError, anyjson.serialize, [object()]) -- assert_raises(TypeError, anyjson.dumps, [object()]) -- assert_raises(ValueError, anyjson.deserialize, "[") -- assert_raises(ValueError, anyjson.loads, "[") -- -+ with pytest.raises(TypeError): -+ anyjson.serialize([object()]) -+ with pytest.raises(TypeError): -+ anyjson.dumps([object()]) -+ with pytest.raises(ValueError): -+ anyjson.deserialize("[") -+ with pytest.raises(ValueError): -+ anyjson.loads("[") diff --git a/packages/p/python-anyjson/python-anyjson.changes b/packages/p/python-anyjson/python-anyjson.changes deleted file mode 100644 index af43bee67f4..00000000000 --- a/packages/p/python-anyjson/python-anyjson.changes +++ /dev/null @@ -1,133 +0,0 @@ -------------------------------------------------------------------- -Tue Feb 08 11:14:08 UTC 2022 - mcepl@cepl.eu - -- Update to version 0.3.3+git.1298315003.7bb1d18: - * GitHub-like readmes - * Added tag 0.3 for changeset b5d33ab23b8f - * Bumped version number - * Added python3 support (Thanks asksol) - * Added tag 0.2.5 for changeset 40150de124d6 - * Bumped version, updated changelog - * Added dumps/loads as aliases for serializ/deserialize so it's - in line with the stdlib json module - * Removed a newline in desc that caused problems when building - RPMs (thanks csears) - * Added tag 0.2.4 for changeset 6a0a193e51e4 - * Bumped version and updated changelog -- Add port_to_py3k.patch (gh#kennethreitz-archive/anyjson#2) - which ports whole package to py3k and removes dependency on nose. - -------------------------------------------------------------------- -Fri Dec 10 05:51:24 UTC 2021 - Steve Kowalik - -- Shorten the Summary to silence rpmlint. - -------------------------------------------------------------------- -Tue Nov 5 09:54:24 UTC 2019 - Tomáš Chvátal - -- Format with spec-cleaner - -------------------------------------------------------------------- -Wed Dec 5 01:52:11 UTC 2018 - Jan Engelhardt - -- Use noun phrase in summary. - -------------------------------------------------------------------- -Tue Dec 4 12:45:36 UTC 2018 - Matej Cepl - -- Remove superfluous devel dependency for noarch package - -------------------------------------------------------------------- -Wed Aug 30 21:16:00 UTC 2017 - toddrme2178@gmail.com - -- Use pypi download URL and source -- Misc auto-conversion cleanups - -------------------------------------------------------------------- -Thu Aug 24 13:32:45 UTC 2017 - jmatejek@suse.com - -- singlespec auto-conversion - -------------------------------------------------------------------- -Thu Oct 24 10:58:41 UTC 2013 - speilicke@suse.com - -- Require python-setuptools instead of distribute (upstreams merged) - -------------------------------------------------------------------- -Wed Jul 3 13:30:28 UTC 2013 - cfarrell@suse.com - -- Add LICENSE to %doc section - -------------------------------------------------------------------- -Wed Aug 15 02:38:27 UTC 2012 - highwaystar.ru@gmail.com - -- python3 package added -- spec improved (files section) - -------------------------------------------------------------------- -Fri Jun 22 17:16:37 UTC 2012 - alexandre@exatati.com.br - -- Update to 0.3.3: - * Fixed bug in buffer object support related to differences between - stringIO and cStringIO -- Aditional changes from 0.3.2: - * Added support for buffer objects - -------------------------------------------------------------------- -Sat Mar 10 16:58:20 UTC 2012 - saschpe@gmx.de - -- Use upstream tarball -- Simplify macro usage -- Buildrequire python-distribute instead of setuptools - -------------------------------------------------------------------- -Wed Dec 28 22:10:24 UTC 2011 - alexandre@exatati.com.br - -- Standard in spec file. - -------------------------------------------------------------------- -Fri Dec 9 08:43:35 UTC 2011 - coolo@suse.com - -- fix license to be in spdx.org format - -------------------------------------------------------------------- -Sat Mar 26 01:05:09 UTC 2011 - alexandre@exatati.com.br - -- Add CHANGELOG and README file as documentation. - -------------------------------------------------------------------- -Tue Mar 22 16:53:07 UTC 2011 - alexandre@exatati.com.br - -- Update to 0.3.1: - * Added deprecation warning for cjson and made it the least preferred - implementation. See: http://pypi.python.org/pypi/python-cjson/1.0.5 -- Regenerates spec file with py2pack. - -------------------------------------------------------------------- -Sat Dec 4 09:15:31 UTC 2010 - alexandre@exatati.com.br - -- Update to 0.3: - * Added support for python3 - -------------------------------------------------------------------- -Fri Sep 10 05:25:20 UTC 2010 - alexandre@exatati.com.br - -- Update to 0.2.5; -- Spec file cleaned with spec-cleaner. - -------------------------------------------------------------------- -Thu Jan 28 13:53:20 UTC 2010 - alexandre@exatati.com.br - -- Update to 0.2.3. - -------------------------------------------------------------------- -Sat Sep 26 17:50:59 UTC 2009 - alexandre@exatati.com.br - -- Update to 0.2.2; -- Building as noarch for openSUSE >= 11.2. - -------------------------------------------------------------------- -Tue Sep 22 13:49:10 UTC 2009 - alexandre@exatati.com.br - -- Initial package (0.2.1) for openSUSE. - diff --git a/packages/p/python-anyjson/python-anyjson.spec b/packages/p/python-anyjson/python-anyjson.spec deleted file mode 100644 index dd59bf77979..00000000000 --- a/packages/p/python-anyjson/python-anyjson.spec +++ /dev/null @@ -1,66 +0,0 @@ -# -# spec file for package python-anyjson -# -# Copyright (c) 2022 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/ -# - - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define maj_version 0.3 -Name: python-anyjson -Version: 0.3.3+git.1298315003.7bb1d18 -Release: 0 -Summary: Provide the best available JSON implementation available -License: BSD-3-Clause -URL: https://bitbucket.org/runeh/anyjson -# Currently the official upstream is dead, trying to send patches to -# https://github.com/kennethreitz-archive/anyjson -Source: anyjson-%{version}.tar.gz -# PATCH-FIX-UPSTREAM port_to_py3k.patch gh#kennethreitz-archive/anyjson#2 mcepl@suse.com -# port to py3k and avoid nose (replace with pytest) -Patch0: port_to_py3k.patch -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} -BuildRequires: fdupes -BuildRequires: python-rpm-macros -BuildArch: noarch -%python_subpackages - -%description -Anyjson loads whichever is the fastest JSON module installed and provides -a uniform API regardless of which JSON implementation is used. - -Originally part of carrot (http://github.com/ask/carrot/) - -%prep -%setup -q -n anyjson-%{version} -%autopatch -p1 - -%build -%python_build - -%install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} - -%check -%pytest - -%files %{python_files} -%license LICENSE -%doc CHANGELOG README -%{python_sitelib}/anyjson/ -%{python_sitelib}/anyjson-%{maj_version}-py*.egg-info - -%changelog