Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-methodtools for openSUSE:Factory checked in at 2023-12-08 22:31:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-methodtools (Old) and /work/SRC/openSUSE:Factory/.python-methodtools.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-methodtools" Fri Dec 8 22:31:58 2023 rev:2 rq:1131720 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-methodtools/python-methodtools.changes 2020-08-20 22:30:50.780037939 +0200 +++ /work/SRC/openSUSE:Factory/.python-methodtools.new.25432/python-methodtools.changes 2023-12-08 22:32:14.720423553 +0100 @@ -1,0 +2,8 @@ +Thu Dec 7 22:17:50 UTC 2023 - Dirk Müller <[email protected]> + +- update to 0.4.7: + * switch to Git Hub Actions + * skip reagent calling for built-in property + * bump twirerope to 0.4.7 + +------------------------------------------------------------------- Old: ---- methodtools-0.4.2.tar.gz New: ---- methodtools-0.4.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-methodtools.spec ++++++ --- /var/tmp/diff_new_pack.lNszzu/_old 2023-12-08 22:32:15.188440774 +0100 +++ /var/tmp/diff_new_pack.lNszzu/_new 2023-12-08 22:32:15.188440774 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-methodtools # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,25 +16,21 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 Name: python-methodtools -Version: 0.4.2 +Version: 0.4.7 Release: 0 Summary: Expand Standard Functools to Methods License: BSD-2-Clause URL: https://github.com/youknowone/methodtools Source0: https://github.com/youknowone/methodtools/archive/%{version}.tar.gz#/methodtools-%{version}.tar.gz -BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module pytest >= 4.6.7} +BuildRequires: %{python_module pytest-cov >= 2.6.1} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wirerope >= 0.4.2} +BuildRequires: %{python_module wirerope >= 0.4.7} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-wirerope >= 0.4.2 +Requires: python-wirerope >= 0.4.7 BuildArch: noarch -%if %{with python2} -BuildRequires: python-functools32 >= 3.2.3 -%endif %python_subpackages %description ++++++ methodtools-0.4.2.tar.gz -> methodtools-0.4.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/.github/workflows/python-package.yml new/methodtools-0.4.7/.github/workflows/python-package.yml --- old/methodtools-0.4.2/.github/workflows/python-package.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/methodtools-0.4.7/.github/workflows/python-package.yml 2023-02-05 14:15:17.000000000 +0100 @@ -0,0 +1,42 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 + python -m pip install -e '.[test]' + - name: Lint with flake8 + run: | + flake8 . --statistics + - name: Test with pytest + run: | + pytest + + - name: Codecov + run: bash <(curl -s https://codecov.io/bash) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/README.rst new/methodtools-0.4.7/README.rst --- old/methodtools-0.4.2/README.rst 2020-07-06 08:12:01.000000000 +0200 +++ new/methodtools-0.4.7/README.rst 2023-02-05 14:15:17.000000000 +0100 @@ -1,8 +1,7 @@ methodtools =========== -.. image:: https://travis-ci.com/youknowone/methodtools.svg?branch=master - :target: https://travis-ci.com/youknowone/methodtools +.. image:: https://github.com/youknowone/methodtools/actions/workflows/python-package.yml/badge.svg .. image:: https://codecov.io/gh/youknowone/methodtools/graph/badge.svg :target: https://codecov.io/gh/youknowone/methodtools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/docs/conf.py new/methodtools-0.4.7/docs/conf.py --- old/methodtools-0.4.2/docs/conf.py 2020-07-06 08:12:01.000000000 +0200 +++ new/methodtools-0.4.7/docs/conf.py 2023-02-05 14:15:17.000000000 +0100 @@ -60,4 +60,4 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/methodtools.py new/methodtools-0.4.7/methodtools.py --- old/methodtools-0.4.2/methodtools.py 2020-07-06 08:12:01.000000000 +0200 +++ new/methodtools-0.4.7/methodtools.py 2023-02-05 14:15:17.000000000 +0100 @@ -40,7 +40,7 @@ import functools from wirerope import Wire, WireRope -__version__ = '0.4.2' +__version__ = '0.4.7' __all__ = 'lru_cache', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/setup.cfg new/methodtools-0.4.7/setup.cfg --- old/methodtools-0.4.2/setup.cfg 1970-01-01 01:00:00.000000000 +0100 +++ new/methodtools-0.4.7/setup.cfg 2023-02-05 14:15:17.000000000 +0100 @@ -0,0 +1,40 @@ +[metadata] +name = methodtools +version = 0.4.7 +url = https://github.com/youknowone/methodtools +author = Jeong YunWon +author_email = [email protected] +license = BSD 2-Clause License +license_file = LICENSE +description = Expand standard functools to methods +long_description = file: README.rst +keywords = ring,functools,lru_cache,method +classifier = + License :: OSI Approved :: BSD License + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + 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 + Programming Language :: Python :: 3.11 +[options] +py_modules = methodtools +install_requires = + wirerope>=0.4.7 +[options.extras_require] +test = + functools32>=3.2.3-2;python_version<"3" + pytest>=4.6.7 + pytest-cov>=2.6.1 +doc = + sphinx + +[aliases] +test=pytest +[tool:pytest] +addopts=--verbose --cov-config .coveragerc --cov methodtools +python_files = tests/test*.py +norecursedirs=.git py ci diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/setup.py new/methodtools-0.4.7/setup.py --- old/methodtools-0.4.2/setup.py 2020-07-06 08:12:01.000000000 +0200 +++ new/methodtools-0.4.7/setup.py 2023-02-05 14:15:17.000000000 +0100 @@ -1,75 +1,6 @@ -from __future__ import with_statement +import setuptools -import re -from setuptools import setup -import sys +assert tuple(map(int, setuptools.__version__.split('.')[:3])) >= (39, 2, 0), \ + 'Please upgrade setuptools by `pip install -U setuptools`' - -def get_version(): - with open('methodtools.py') as f: - source = f.read() - m = re.search(r"__version__ = '([0-9\.]+)'", source) - version = m.group(1) - assert version - return version - - -install_requires = [ - 'wirerope>=0.4.2', -] -tests_require = [ - 'pytest>=3.0.2', 'pytest-cov', -] -docs_require = [ - 'sphinx', -] - -# functools32 support -if sys.version_info[0] == 2: - tests_require.extend([ - 'functools32>=3.2.3-2', - ]) - -dev_require = tests_require + docs_require - - -def get_readme(): - try: - with open('README.rst') as f: - return f.read().strip() - except IOError: - return '' - - -setup( - name='methodtools', - version=get_version(), - description='Expand standard functools to methods', - long_description=get_readme(), - author='Jeong YunWon', - author_email='[email protected]', - url='https://github.com/youknowone/methodtools', - py_modules=['methodtools'], - packages=(), - package_data={}, - install_requires=install_requires, - tests_require=tests_require + ['tox', 'tox-pyenv'], - extras_require={ - 'test': tests_require, - 'docs': docs_require, - 'dev': dev_require, - }, - classifiers=[ - 'Intended Audience :: Developers', - 'Operating System :: OS Independent', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python', - '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', - ], -) # noqa +setuptools.setup() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/methodtools-0.4.2/tests/test_lru_cache.py new/methodtools-0.4.7/tests/test_lru_cache.py --- old/methodtools-0.4.2/tests/test_lru_cache.py 2020-07-06 08:12:01.000000000 +0200 +++ new/methodtools-0.4.7/tests/test_lru_cache.py 2023-02-05 14:15:17.000000000 +0100 @@ -164,3 +164,16 @@ f2 = _functools_lru_cache()(a.m) assert f1() == f2() == 101 + + +def test_silent_property(): + class A: + def __init__(self): + self.b = 3 + + @lru_cache() + @property + def a(self): + # built-in property should not be called when building + assert False + return self.b
