Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-retryrequests for 
openSUSE:Factory checked in at 2022-10-08 01:26:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-retryrequests (Old)
 and      /work/SRC/openSUSE:Factory/.python-retryrequests.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-retryrequests"

Sat Oct  8 01:26:06 2022 rev:2 rq:1008870 version:0.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-retryrequests/python-retryrequests.changes    
    2020-02-10 21:54:17.054219541 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-retryrequests.new.2275/python-retryrequests.changes
      2022-10-08 01:26:32.474410787 +0200
@@ -1,0 +2,7 @@
+Fri Oct  7 15:05:23 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- Update to version 0.2.0 
+  * Add support for Python 3.10
+  * Drop support for Python 3.5
+
+-------------------------------------------------------------------

Old:
----
  retryrequests-0.0.3.tar.gz

New:
----
  retryrequests-0.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-retryrequests.spec ++++++
--- /var/tmp/diff_new_pack.YyfTWW/_old  2022-10-08 01:26:32.842411631 +0200
+++ /var/tmp/diff_new_pack.YyfTWW/_new  2022-10-08 01:26:32.850411649 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-retryrequests
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -12,20 +12,21 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-retryrequests
-Version:        0.0.3
+Version:        0.2.0
 Release:        0
 License:        MIT
 Summary:        Extend python requests with exponential back-off retry
-Url:            https://github.com/thombashi/retryrequests
+URL:            https://github.com/thombashi/retryrequests
 Group:          Development/Languages/Python
 Source:         
https://github.com/thombashi/retryrequests/archive/v%{version}.tar.gz#/retryrequests-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module setuptools >= 38.3.0}
+BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module requests >= 2.18.4}
 # /SECTION

++++++ retryrequests-0.0.3.tar.gz -> retryrequests-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/.github/workflows/lint.yml 
new/retryrequests-0.2.0/.github/workflows/lint.yml
--- old/retryrequests-0.0.3/.github/workflows/lint.yml  1970-01-01 
01:00:00.000000000 +0100
+++ new/retryrequests-0.2.0/.github/workflows/lint.yml  2022-03-06 
09:53:35.000000000 +0100
@@ -0,0 +1,21 @@
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.job }}
+      cancel-in-progress: true
+    timeout-minutes: 20
+    container:
+      image: ghcr.io/thombashi/python-ci:3.8
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Lint
+        run: make check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/MANIFEST.in 
new/retryrequests-0.2.0/MANIFEST.in
--- old/retryrequests-0.0.3/MANIFEST.in 2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/MANIFEST.in 2022-03-06 09:53:35.000000000 +0100
@@ -2,6 +2,7 @@
 include README.rst
 include setup.cfg
 include tox.ini
+include */py.typed
 
 recursive-include requirements *
 recursive-include test *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/Makefile 
new/retryrequests-0.2.0/Makefile
--- old/retryrequests-0.0.3/Makefile    2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/Makefile    2022-03-06 09:53:35.000000000 +0100
@@ -1,35 +1,29 @@
-PACKAGE := python_package_template
+PYTHON := python3
 
 
 .PHONY: build
-build:
-       @make clean
-       @python setup.py sdist bdist_wheel
-       @twine check dist/*
-       @python setup.py clean --all
+build: clean
+       @$(PYTHON) -m tox -e build
        ls -lh dist/*
 
+.PHONY: check
+check:
+       @$(PYTHON) -m tox -e lint
+
 .PHONY: clean
 clean:
-       @rm -rf $(PACKAGE)-*.*.*/ \
-               dist/ \
-               pip-wheel-metadata/ \
-               .eggs/ \
-               .pytest_cache/ \
-               .tox/ \
-               **/__pycache__/ \
-               **/*/__pycache__/ \
-               *.egg-info/
-       @python setup.py clean --all
-       @find . -not -path '*/\.*' -type f | grep -E .+\.py\.[a-z0-9]{32,}\.py$ 
| xargs -r rm
+       @$(PYTHON) -m tox -e clean
 
 .PHONY: fmt
 fmt:
-       @black $(CURDIR)
-       @autoflake --in-place --recursive --remove-all-unused-imports --exclude 
"__init__.py" .
-       @isort --apply --recursive
+       @$(PYTHON) -m tox -e fmt
 
 .PHONY: release
 release:
-       @python setup.py release --sign
-       @make clean
+       @$(PYTHON) setup.py release --sign
+       @$(MAKE) clean
+
+.PHONY: setup
+setup:
+       @$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade -e 
.[test] releasecmd tox
+       @$(PYTHON) -m pip check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/README.rst 
new/retryrequests-0.2.0/README.rst
--- old/retryrequests-0.0.3/README.rst  2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/README.rst  2022-03-06 09:53:35.000000000 +0100
@@ -5,11 +5,28 @@
 
 Summary
 ============================================
-A Python library for HTTP requests using requests package with exponential 
back-off retry.
+A Python library that make HTTP requests with exponential back-off retry by 
using `requests <https://docs.python-requests.org/en/master/>`__ package.
+
+.. image:: https://badge.fury.io/py/retryrequests.svg
+    :target: https://badge.fury.io/py/retryrequests
+    :alt: PyPI package version
+
+.. image:: https://img.shields.io/pypi/pyversions/retryrequests.svg
+    :target: https://pypi.org/project/retryrequests
+    :alt: Supported Python versions
+
+
+Installation
+============================================
+
+::
+
+    pip install retryrequests
 
 
 Usage
 ============================================
+``retryrequests`` has same interface with ``requests``:
 
 :Sample Code:
     .. code-block:: python
@@ -42,26 +59,8 @@
         }
 
 
-Installation
-============================================
-
-Install from PyPI
-------------------------------
-::
-
-    pip install retryrequests
-
-Install from PPA (for Ubuntu)
-------------------------------
-::
-
-    sudo add-apt-repository ppa:thombashi/ppa
-    sudo apt update
-    sudo apt install python3-retryrequests
-
-
 Dependencies
 ============================================
-Python 2.7+ or 3.5+
+Python 3.6+
 
 - `requests <http://python-requests.org/>`__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/retryrequests-0.0.3/examples/get_request_with_retries.py 
new/retryrequests-0.2.0/examples/get_request_with_retries.py
--- old/retryrequests-0.0.3/examples/get_request_with_retries.py        
2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/examples/get_request_with_retries.py        
2022-03-06 09:53:35.000000000 +0100
@@ -1,7 +1,4 @@
-#!/usr/bin/env python
-# encoding: utf-8
-
-from __future__ import print_function, unicode_literals
+#!/usr/bin/env python3
 
 import json
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/pyproject.toml 
new/retryrequests-0.2.0/pyproject.toml
--- old/retryrequests-0.0.3/pyproject.toml      2019-05-11 12:33:41.000000000 
+0200
+++ new/retryrequests-0.2.0/pyproject.toml      2022-03-06 09:53:35.000000000 
+0100
@@ -1,14 +1,45 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+
 [tool.black]
 line-length = 100
-exclude = """
-.eggs/
-| .git/
-| .tox/
-| .venv/
-| _build/
-| build/
-| dist/
-| _sandbox/
+exclude = '''
+/(
+      \.eggs
+    | \.git
+    | \.mypy_cache
+    | \.tox
+    | \.venv
+    | \.pytype
+    | _build
+    | buck-out
+    | build
+    | dist
+)/
 | docs/conf.py
-| setup.py
-"""
+'''
+target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
+
+[tool.isort]
+known_third_party = [
+    'pytest',
+]
+include_trailing_comma = true
+line_length = 100
+lines_after_imports = 2
+multi_line_output = 3
+skip_glob = [
+    '*/.eggs/*',
+    '*/.pytype/*',
+    '*/.tox/*',
+]
+
+[tool.mypy]
+ignore_missing_imports = true
+python_version = 3.6
+
+pretty = true
+show_error_codes = true
+show_error_context = true
+warn_unreachable = true
+warn_unused_configs = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/retryrequests/__init__.py 
new/retryrequests-0.2.0/retryrequests/__init__.py
--- old/retryrequests-0.0.3/retryrequests/__init__.py   2019-05-11 
12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/retryrequests/__init__.py   2022-03-06 
09:53:35.000000000 +0100
@@ -1,18 +1,20 @@
-# encoding: utf-8
-
 """
 .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.homba...@gmail.com>
 """
 
+from typing import Any, Dict, Optional, Sequence
+
 import requests
-from requests import Session
+from requests import Response, Session
 from requests.adapters import HTTPAdapter
 from requests.packages.urllib3.util.retry import Retry
 
 from .__version__ import __author__, __copyright__, __email__, __license__, 
__version__
 
 
-def make_requests_session(retries=5, backoff_factor=0.5, 
status_forcelist=(500, 502, 504)):
+def make_requests_session(
+    retries: int = 5, backoff_factor: float = 0.5, status_forcelist: 
Sequence[int] = (500, 502, 504)
+) -> Session:
     session = Session()
     adapter = HTTPAdapter(
         max_retries=Retry(
@@ -29,25 +31,25 @@
     return session
 
 
-def get(url, params=None, **kwargs):
+def get(url: str, params: Optional[Dict[str, Any]] = None, **kwargs) -> 
Response:
     return make_requests_session().get(url, params=params, **kwargs)
 
 
-def head(url, **kwargs):
+def head(url: str, **kwargs) -> Response:
     return make_requests_session().head(url, **kwargs)
 
 
-def post(url, data=None, json=None, **kwargs):
+def post(url: str, data=None, json: Optional[Dict[str, Any]] = None, **kwargs) 
-> Response:
     return make_requests_session().post(url, data=data, json=json, **kwargs)
 
 
-def put(url, data=None, **kwargs):
+def put(url: str, data=None, **kwargs) -> Response:
     return make_requests_session().put(url, data=data, **kwargs)
 
 
-def patch(url, data=None, **kwargs):
-    return make_requests_session().patch(data=data, **kwargs)
+def patch(url: str, data=None, **kwargs) -> Response:
+    return make_requests_session().patch(url, data=data, **kwargs)
 
 
-def delete(url, **kwargs):
+def delete(url: str, **kwargs) -> Response:
     return make_requests_session().delete(url, **kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/retryrequests/__version__.py 
new/retryrequests-0.2.0/retryrequests/__version__.py
--- old/retryrequests-0.0.3/retryrequests/__version__.py        2019-05-11 
12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/retryrequests/__version__.py        2022-03-06 
09:53:35.000000000 +0100
@@ -1,11 +1,6 @@
-# encoding: utf-8
-
-from datetime import datetime
-
-
 __author__ = "Tsuyoshi Hombashi"
-__copyright__ = "Copyright {}, {}".format(datetime.now().year, __author__)
+__copyright__ = f"Copyright 2019, {__author__}"
 __license__ = "MIT License"
-__version__ = "0.0.3"
+__version__ = "0.2.0"
 __maintainer__ = __author__
 __email__ = "tsuyoshi.homba...@gmail.com"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/setup.cfg 
new/retryrequests-0.2.0/setup.cfg
--- old/retryrequests-0.0.3/setup.cfg   2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/setup.cfg   1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-[aliases]
-test=pytest
-
-[bdist_wheel]
-universal = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/setup.py 
new/retryrequests-0.2.0/setup.py
--- old/retryrequests-0.0.3/setup.py    2019-05-11 12:33:41.000000000 +0200
+++ new/retryrequests-0.2.0/setup.py    2022-03-06 09:53:35.000000000 +0100
@@ -1,27 +1,18 @@
-# encoding: utf-8
-
-from __future__ import unicode_literals
-
-import io
 import os.path
-import sys
+from typing import Dict
 
 import setuptools
 
 
 MODULE_NAME = "retryrequests"
-REPOSITORY_URL = "https://github.com/thombashi/{:s}".format(MODULE_NAME)
+REPOSITORY_URL = f"https://github.com/thombashi/{MODULE_NAME:s}";
 REQUIREMENT_DIR = "requirements"
 ENCODING = "utf8"
 
-pkg_info = {}
-
+pkg_info: Dict[str, str] = {}
 
-def need_pytest():
-    return set(["pytest", "test", "ptr"]).intersection(sys.argv)
 
-
-def get_release_command_class():
+def get_release_command_class() -> Dict[str, setuptools.Command]:
     try:
         from releasecmd import ReleaseCommand
     except ImportError:
@@ -33,58 +24,49 @@
 with open(os.path.join(MODULE_NAME, "__version__.py")) as f:
     exec(f.read(), pkg_info)
 
-with io.open("README.rst", encoding=ENCODING) as f:
+with open("README.rst", encoding=ENCODING) as f:
     LONG_DESCRIPTION = f.read()
 
 with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
     INSTALL_REQUIRES = [line.strip() for line in f if line.strip()]
 
-SETUPTOOLS_REQUIRES = ["setuptools>=38.3.0"]
-PYTEST_RUNNER_REQUIRES = ["pytest-runner"] if need_pytest() else []
-
-cmdclass = get_release_command_class()
 
 setuptools.setup(
     name=MODULE_NAME,
     version=pkg_info["__version__"],
     url=REPOSITORY_URL,
-
     author=pkg_info["__author__"],
     author_email=pkg_info["__email__"],
     description=(
-        "A Python library for HTTP requests using requests package with 
exponential back-off retry."
+        "A Python library that make HTTP requests with exponential back-off 
retry "
+        "by using requests package."
     ),
     include_package_data=True,
     keywords=["requests", "retry"],
     license=pkg_info["__license__"],
     long_description=LONG_DESCRIPTION,
+    long_description_content_type="text/x-rst",
     packages=setuptools.find_packages(exclude=["test*"]),
+    package_data={MODULE_NAME: ["py.typed"]},
     project_urls={
         "Source": REPOSITORY_URL,
-        "Tracker": "{:s}/issues".format(REPOSITORY_URL),
-    },
-
-    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
-    install_requires=SETUPTOOLS_REQUIRES + INSTALL_REQUIRES,
-    setup_requires=SETUPTOOLS_REQUIRES + PYTEST_RUNNER_REQUIRES,
-    extras_require={
-        "build": ["twine", "wheel"],
-        "release": ["releasecmd>=0.0.18,<0.1.0"],
+        "Tracker": f"{REPOSITORY_URL:s}/issues",
     },
-
+    python_requires=">=3.6",
+    install_requires=INSTALL_REQUIRES,
     classifiers=[
-        "Development Status :: 3 - Alpha",
+        "Development Status :: 4 - Beta",
         "Intended Audience :: Information Technology",
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
-        "Programming Language :: Python :: 2",
-        "Programming Language :: Python :: 2.7",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Topic :: Software Development :: Libraries",
         "Topic :: Software Development :: Libraries :: Python Modules",
     ],
-    cmdclass=cmdclass)
+    cmdclass=get_release_command_class(),
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retryrequests-0.0.3/tox.ini 
new/retryrequests-0.2.0/tox.ini
--- old/retryrequests-0.0.3/tox.ini     1970-01-01 01:00:00.000000000 +0100
+++ new/retryrequests-0.2.0/tox.ini     2022-03-06 09:53:35.000000000 +0100
@@ -0,0 +1,54 @@
+[tox]
+envlist =
+    py{36,37,38,39,310}
+    pypy3
+    build
+    clean
+    fmt
+    lint
+
+[testenv]
+passenv = *
+extras =
+    test
+commands =
+    pytest {posargs}
+
+[testenv:build]
+basepython = python3.8
+deps =
+    twine
+    wheel
+commands =
+    python setup.py sdist bdist_wheel
+    twine check dist/*.whl dist/*.tar.gz
+    python setup.py clean --all
+
+[testenv:clean]
+skip_install = true
+deps =
+    cleanpy>=0.3.1
+commands =
+    cleanpy --all --exclude-envs .
+
+[testenv:fmt]
+skip_install = true
+deps =
+    autoflake>=1.4
+    black>=22.1
+    isort>=5
+commands =
+    autoflake --in-place --recursive --remove-all-unused-imports 
--ignore-init-module-imports .
+    isort .
+    black setup.py retryrequests examples
+
+[testenv:lint]
+skip_install = true
+deps =
+    mypy>=0.931
+    pylama>=8.3.6
+    types-requests
+commands =
+    python setup.py check
+    mypy retryrequests setup.py
+    pylama

Reply via email to