Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-cufflinks for
openSUSE:Factory checked in at 2021-09-16 23:14:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cufflinks (Old)
and /work/SRC/openSUSE:Factory/.python-cufflinks.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cufflinks"
Thu Sep 16 23:14:51 2021 rev:8 rq:919439 version:0.17.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cufflinks/python-cufflinks.changes
2021-04-21 21:00:58.558350335 +0200
+++
/work/SRC/openSUSE:Factory/.python-cufflinks.new.1899/python-cufflinks.changes
2021-09-16 23:17:26.975970852 +0200
@@ -1,0 +2,7 @@
+Thu Sep 16 06:52:40 UTC 2021 - Steve Kowalik <[email protected]>
+
+- Add patch use-assert.patch:
+ * Don't use nose asserts.
+- Actually run the testsuite.
+
+-------------------------------------------------------------------
New:
----
use-assert.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cufflinks.spec ++++++
--- /var/tmp/diff_new_pack.BvO2R1/_old 2021-09-16 23:17:27.363971254 +0200
+++ /var/tmp/diff_new_pack.BvO2R1/_new 2021-09-16 23:17:27.367971258 +0200
@@ -26,6 +26,7 @@
License: MIT
URL: https://github.com/santosjorge/cufflinks
Source:
https://files.pythonhosted.org/packages/source/c/cufflinks/cufflinks-%{version}.tar.gz
+Patch0: use-assert.patch
BuildRequires: %{python_module setuptools >= 34.4.1}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -41,10 +42,10 @@
BuildRequires: %{python_module colorlover >= 0.2.1}
BuildRequires: %{python_module ipython >= 5.3.0}
BuildRequires: %{python_module ipywidgets >= 7.0.0}
-BuildRequires: %{python_module nose >= 1.3.7}
BuildRequires: %{python_module numpy >= 1.9.2}
BuildRequires: %{python_module pandas >= 0.19.2}
BuildRequires: %{python_module plotly >= 4.1.1}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.9.0}
# /SECTION
%python_subpackages
@@ -54,6 +55,7 @@
%prep
%setup -q -n cufflinks-%{version}
+%autopatch -p1
%build
%python_build
@@ -62,6 +64,9 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+%pytest tests.py
+
%files %{python_files}
%doc README.md
%license license.txt
++++++ use-assert.patch ++++++
Index: cufflinks-0.17.3/tests.py
===================================================================
--- cufflinks-0.17.3.orig/tests.py
+++ cufflinks-0.17.3/tests.py
@@ -7,7 +7,6 @@ import cufflinks as cf
import pandas as pd
import numpy as np
import unittest
-from nose.tools import assert_equals
##
## nosetests -xv tests.py --with-coverage --cover-package=cufflinks
@@ -73,7 +72,7 @@ def bar_row_input_argument_tests():
}
def bar_row_test(self, **kwargs):
- self._iplot(self.df.ix[1], **kwargs)
+ self._iplot(self.df.loc[1], **kwargs)
_generate_tests(TestIPlot, bar_row_test, 'bar_row', options)
@@ -196,7 +195,7 @@ def color_normalize_tests():
c=dict([(k.lower(),v.upper()) for k,v in list(cf.cnames.items())])
d={}
for k,v in list(c.items()):
- assert_equals(v,cf.normalize(k).upper())
+ assert v == cf.normalize(k).upper()
return 2
# technical analysis