forked from pool/python-mwclient
Accepting request 1245345 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1245345 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mwclient?expand=0&rev=2
This commit is contained in:
63
demock.patch
63
demock.patch
@@ -1,63 +0,0 @@
|
||||
---
|
||||
setup.py | 2 +-
|
||||
test/test_client.py | 2 +-
|
||||
test/test_listing.py | 2 +-
|
||||
test/test_page.py | 2 +-
|
||||
test/test_sleep.py | 2 +-
|
||||
5 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -32,7 +32,7 @@ setup(name='mwclient',
|
||||
packages=['mwclient'],
|
||||
install_requires=['requests-oauthlib', 'six'],
|
||||
setup_requires=pytest_runner,
|
||||
- tests_require=['pytest', 'pytest-cov', 'mock',
|
||||
+ tests_require=['pytest', 'pytest-cov',
|
||||
'responses>=0.3.0', 'responses!=0.6.0'],
|
||||
zip_safe=True
|
||||
)
|
||||
--- a/test/test_client.py
|
||||
+++ b/test/test_client.py
|
||||
@@ -9,7 +9,7 @@ import logging
|
||||
import requests
|
||||
import responses
|
||||
import pkg_resources # part of setuptools
|
||||
-import mock
|
||||
+import unittest.mock as mock
|
||||
import time
|
||||
import json
|
||||
from requests_oauthlib import OAuth1
|
||||
--- a/test/test_listing.py
|
||||
+++ b/test/test_listing.py
|
||||
@@ -6,7 +6,7 @@ import pytest
|
||||
import logging
|
||||
import requests
|
||||
import responses
|
||||
-import mock
|
||||
+import unittest.mock as mock
|
||||
import json
|
||||
import mwclient
|
||||
from mwclient.listing import List, GeneratorList
|
||||
--- a/test/test_page.py
|
||||
+++ b/test/test_page.py
|
||||
@@ -6,7 +6,7 @@ import pytest
|
||||
import logging
|
||||
import requests
|
||||
import responses
|
||||
-import mock
|
||||
+import unittest.mock as mock
|
||||
import json
|
||||
import mwclient
|
||||
from mwclient.page import Page
|
||||
--- a/test/test_sleep.py
|
||||
+++ b/test/test_sleep.py
|
||||
@@ -2,7 +2,7 @@
|
||||
from __future__ import print_function
|
||||
import unittest
|
||||
import time
|
||||
-import mock
|
||||
+import unittest.mock as mock
|
||||
import pytest
|
||||
from mwclient.sleep import Sleepers
|
||||
from mwclient.sleep import Sleeper
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:79363dd8d12f5e3b91b92b63152bf9dfef27da786c076a244e1f148c8dd67139
|
||||
size 34923
|
3
mwclient-0.11.0.tar.gz
Normal file
3
mwclient-0.11.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2bb7696f3703243eb33514ab162d7f6076dcedd011be90682936046c5e34fd06
|
||||
size 71978
|
@@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 10:38:29 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- six is actually not needed anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 07:20:49 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.11.0
|
||||
* The Site.writeapi attribute is removed. It has been hardcoded to
|
||||
True and deprecated in upstream mediawiki since 1.32, so code that
|
||||
uses it isn't doing anything useful.
|
||||
* The limit argument to various methods and generators is deprecated.
|
||||
Its name is misleading: it does not limit the total number of items
|
||||
returned, but sets the chunk size in which items are retrieved from
|
||||
the API. It is replaced by two other arguments: api_chunk_size does
|
||||
the same thing as limit but is more accurately named, and max_items
|
||||
does what limit sounds like it should do (caps the number of items
|
||||
that will be returned). limit still works, but will generate a
|
||||
deprecation warning.
|
||||
* The reqs argument to Site.__init__ was renamed to connection_options,
|
||||
which is a clearer name. The old name still works but will generate a
|
||||
deprecation warning.
|
||||
* Support for the clientlogin login method is added. See upstream documentation.
|
||||
* A new Site.patrol method has been added, to patrol a page or revision.
|
||||
* Support for Python 3.5 and earlier has been dropped. These versions of
|
||||
Python are obsolete and not used in any significant supported operating
|
||||
system.
|
||||
- Add python-pytest-cov to BuildRequires
|
||||
- Drop demock.patch, fixed upstream
|
||||
- Update Github project page in URL field
|
||||
- Switch package to modern Python Stack on SLE-15
|
||||
* Use Python 3.11 on SLE-15 by default
|
||||
* Drop support for older Python versions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 2 20:59:51 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mwclient
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,31 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-mwclient
|
||||
Version: 0.10.1
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
Summary: MediaWiki API client
|
||||
License: MIT
|
||||
URL: https://github.com/btongminh/mwclient
|
||||
URL: https://github.com/mwclient/mwclient
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mwclient/mwclient-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM demock.patch gh#mwclient/mwclient#276 mcepl@suse.com
|
||||
# Remove dependency on mock
|
||||
Patch0: demock.patch
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module requests-oauthlib}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module responses >= 0.3.0}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-requests-oauthlib
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
|
Reference in New Issue
Block a user