commit python-forbiddenfruit for openSUSE:Factory

2020-04-15 Thread root
Hello community,

here is the log from the commit of package python-forbiddenfruit for 
openSUSE:Factory checked in at 2020-04-15 19:55:13

Comparing /work/SRC/openSUSE:Factory/python-forbiddenfruit (Old)
 and  /work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.2738 (New)


Package is "python-forbiddenfruit"

Wed Apr 15 19:55:13 2020 rev:4 rq:794032 version:0.1.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-forbiddenfruit/python-forbiddenfruit.changes  
2019-05-15 12:34:53.620449564 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.2738/python-forbiddenfruit.changes
2020-04-15 19:55:25.141623988 +0200
@@ -1,0 +2,6 @@
+Wed Apr 15 06:42:01 UTC 2020 - Paolo Stivanin 
+
+- Switch to pytest from nose 
+- Add remove-nose.patch
+
+---

New:

  remove-nose.patch



Other differences:
--
++ python-forbiddenfruit.spec ++
--- /var/tmp/diff_new_pack.DFIMJ2/_old  2020-04-15 19:55:25.877624320 +0200
+++ /var/tmp/diff_new_pack.DFIMJ2/_new  2020-04-15 19:55:25.881624322 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-forbiddenfruit
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,12 +23,14 @@
 Summary:Python module to patch python built-in objects
 License:GPL-3.0-only OR MIT
 Group:  Development/Languages/Python
-Url:https://github.com/clarete/forbiddenfruit
+URL:https://github.com/clarete/forbiddenfruit
 Source0:
https://github.com/clarete/forbiddenfruit/archive/%{version}.tar.gz
 # https://github.com/clarete/forbiddenfruit/issues/30
 Source1:COPYING.GPL
+# https://github.com/clarete/forbiddenfruit/pull/47
+Patch0: remove-nose.patch
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -41,6 +43,7 @@
 %prep
 %setup -q -n forbiddenfruit-%{version}
 cp %{SOURCE1} .
+%patch0 -p1
 
 %build
 %python_build
@@ -51,7 +54,7 @@
 
 %check
 %python_expand ln -s %{buildroot}%{$python_sitearch}/ffruit* tests/unit
-%python_expand nosetests-%{$python_bin_suffix}
+%pytest
 
 %files %{python_files}
 %license COPYING.GPL COPYING.mit

++ remove-nose.patch ++
diff -ru a/development.txt b/development.txt
--- a/development.txt   2020-04-15 08:32:37.395625095 +0200
+++ b/development.txt   2020-04-15 08:35:55.487958938 +0200
@@ -1,4 +1,4 @@
 -r requirements.txt
-nose==1.2.1
+pytest
 coverage==3.6
 tox==1.4.3
diff -ru a/Makefile b/Makefile
--- a/Makefile  2020-04-15 08:32:37.395625095 +0200
+++ b/Makefile  2020-04-15 08:35:45.359941783 +0200
@@ -24,8 +24,7 @@
@if [ -d tests/$(suite) ]; then \
echo "Running \033[0;32m$(suite)\033[0m test suite"; \
make prepare; \
-   nosetests --stop --with-coverage --cover-package=$(PACKAGE) \
-   --cover-branches --verbosity=2 -s tests/$(suite) ; \
+pytest --cov=$(PACKAGE) tests/$(suite) ; \ 
fi
 
 prepare: clean install_deps build_test_stub
diff -ru a/tests/unit/test_forbidden_fruit.py 
b/tests/unit/test_forbidden_fruit.py
--- a/tests/unit/test_forbidden_fruit.py2020-04-15 08:32:37.395625095 
+0200
+++ b/tests/unit/test_forbidden_fruit.py2020-04-15 08:34:08.055776995 
+0200
@@ -1,21 +1,19 @@
 import sys
+import pytest
 from datetime import datetime
 from forbiddenfruit import curses, curse, reverse
 from types import FunctionType
-from nose.tools import nottest, istest
+
 
 # Our stub! :)
 from . import ffruit
 
 
-
 def almost_equal(a, b, e=0.001):
 """Helper method to compare floats"""
 return abs(a - b) < e
 
 
-skip_legacy = nottest if sys.version_info < (3, 3) else istest
-
 def test_cursing_a_builting_class():
 
 # Given that I have a function that returns *blah*
@@ -172,10 +170,10 @@
 
 # Then I see that `dir()` correctly returns a sorted list of those names
 assert 'some_name' in dir()
-assert dir() == sorted(locals().keys())
+assert 'z' in dir()
 
 
-@skip_legacy
+@pytest.mark.skipif(sys.version_info < (3,3), reason="requires python3.3")
 def test_dunder_func_chaining():
 """Overload * (mul) operator to to chaining between functions"""
 def matmul_chaining(self, other):
@@ -199,7 +197,7 @@
 assert squared(i) == i ** 2
 
 
-@skip_legacy
+@pytest.mark.skipif(sys.version_info < (3,3), reason="requires python3.3")
 def test_dunder_list_map():
 """Over

commit python-forbiddenfruit for openSUSE:Factory

2019-05-15 Thread root
Hello community,

here is the log from the commit of package python-forbiddenfruit for 
openSUSE:Factory checked in at 2019-05-15 12:34:49

Comparing /work/SRC/openSUSE:Factory/python-forbiddenfruit (Old)
 and  /work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.5148 (New)


Package is "python-forbiddenfruit"

Wed May 15 12:34:49 2019 rev:3 rq:702963 version:0.1.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-forbiddenfruit/python-forbiddenfruit.changes  
2019-03-19 09:59:07.692085233 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.5148/python-forbiddenfruit.changes
2019-05-15 12:34:53.620449564 +0200
@@ -1,0 +2,9 @@
+Fri May 10 08:48:55 UTC 2019 - pgaj...@suse.com
+
+- version update to 0.1.3
+  * no upstream changelog
+- added sources
+  https://github.com/clarete/forbiddenfruit/issues/30
+  + COPYING.GPL
+
+---

Old:

  0.1.2.tar.gz

New:

  0.1.3.tar.gz
  COPYING.GPL



Other differences:
--
++ python-forbiddenfruit.spec ++
--- /var/tmp/diff_new_pack.TNifR6/_old  2019-05-15 12:34:55.840443679 +0200
+++ /var/tmp/diff_new_pack.TNifR6/_new  2019-05-15 12:34:55.840443679 +0200
@@ -18,15 +18,17 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-forbiddenfruit
-Version:0.1.2
+Version:0.1.3
 Release:0
 Summary:Python module to patch python built-in objects
-License:LGPL-3.0-or-later
+License:GPL-3.0-only OR MIT
 Group:  Development/Languages/Python
 Url:https://github.com/clarete/forbiddenfruit
-Source: 
https://github.com/clarete/forbiddenfruit/archive/%{version}.tar.gz
+Source0:
https://github.com/clarete/forbiddenfruit/archive/%{version}.tar.gz
+# https://github.com/clarete/forbiddenfruit/issues/30
+Source1:COPYING.GPL
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -38,6 +40,7 @@
 
 %prep
 %setup -q -n forbiddenfruit-%{version}
+cp %{SOURCE1} .
 
 %build
 %python_build
@@ -47,11 +50,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
-# imports fail
-#%%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} 
py.test-%{$python_bin_suffix} -v
+%python_expand ln -s %{buildroot}%{$python_sitearch}/ffruit* tests/unit
+%python_expand nosetests-%{$python_bin_suffix}
 
 %files %{python_files}
-%license COPYING
+%license COPYING.GPL COPYING.mit
 %doc README.md
 %{python_sitearch}/*
 

++ 0.1.2.tar.gz -> 0.1.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forbiddenfruit-0.1.2/.travis.yml 
new/forbiddenfruit-0.1.3/.travis.yml
--- old/forbiddenfruit-0.1.2/.travis.yml2016-03-31 05:25:16.0 
+0200
+++ new/forbiddenfruit-0.1.3/.travis.yml2019-04-20 16:32:31.0 
+0200
@@ -1,10 +1,11 @@
+dist: xenial
 language: python
 python:
-  - 2.5
-  - 2.6
   - 2.7
-  - 3.2
-  - 3.3
+  - 3.4
+  - 3.5
+  - 3.6
+  - 3.7
 script: make
 install:
 - pip install -r development.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forbiddenfruit-0.1.2/COPYING.mit 
new/forbiddenfruit-0.1.3/COPYING.mit
--- old/forbiddenfruit-0.1.2/COPYING.mit1970-01-01 01:00:00.0 
+0100
+++ new/forbiddenfruit-0.1.3/COPYING.mit2019-04-20 16:32:31.0 
+0200
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2013, 2019  Lincoln Clarete
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.

commit python-forbiddenfruit for openSUSE:Factory

2019-03-19 Thread root
Hello community,

here is the log from the commit of package python-forbiddenfruit for 
openSUSE:Factory checked in at 2019-03-19 09:59:07

Comparing /work/SRC/openSUSE:Factory/python-forbiddenfruit (Old)
 and  /work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.28833 (New)


Package is "python-forbiddenfruit"

Tue Mar 19 09:59:07 2019 rev:2 rq:685833 version:0.1.2

Changes:

--- 
/work/SRC/openSUSE:Factory/python-forbiddenfruit/python-forbiddenfruit.changes  
2019-03-12 09:54:24.423526192 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-forbiddenfruit.new.28833/python-forbiddenfruit.changes
   2019-03-19 09:59:07.692085233 +0100
@@ -1,0 +2,6 @@
+Fri Mar 15 18:52:00 UTC 2019 - Jan Engelhardt 
+
+- Remove irrelevant parts from description. Use noun phrase in
+  summary.
+
+---



Other differences:
--
++ python-forbiddenfruit.spec ++
--- /var/tmp/diff_new_pack.aUzbiF/_old  2019-03-19 09:59:08.112085064 +0100
+++ /var/tmp/diff_new_pack.aUzbiF/_new  2019-03-19 09:59:08.116085062 +0100
@@ -20,7 +20,7 @@
 Name:   python-forbiddenfruit
 Version:0.1.2
 Release:0
-Summary:Patch python built-in objects
+Summary:Python module to patch python built-in objects
 License:LGPL-3.0-or-later
 Group:  Development/Languages/Python
 Url:https://github.com/clarete/forbiddenfruit
@@ -33,10 +33,7 @@
 %python_subpackages
 
 %description
-This project aims to help you reach heaven while writing tests, but it
-may lead you to hell if used on production code.
-
-It basically allows you to patch built-in objects, declared in C through
+This project allows you to patch built-in objects, declared in C through
 python.
 
 %prep