Hello community, here is the log from the commit of package python-cufflinks for openSUSE:Factory checked in at 2020-07-08 19:18:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cufflinks (Old) and /work/SRC/openSUSE:Factory/.python-cufflinks.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cufflinks" Wed Jul 8 19:18:53 2020 rev:6 rq:819470 version:0.17.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cufflinks/python-cufflinks.changes 2019-12-07 15:09:11.947848431 +0100 +++ /work/SRC/openSUSE:Factory/.python-cufflinks.new.3060/python-cufflinks.changes 2020-07-08 19:20:01.632402383 +0200 @@ -1,0 +2,8 @@ +Wed Jul 8 11:41:42 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- Update to 0.17.3 + * Fix offline dependency with chart_studio + * new colorscale + * few bugfixes + +------------------------------------------------------------------- Old: ---- cufflinks-0.17.0.tar.gz New: ---- cufflinks-0.17.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cufflinks.spec ++++++ --- /var/tmp/diff_new_pack.jBvJiZ/_old 2020-07-08 19:20:03.444408813 +0200 +++ /var/tmp/diff_new_pack.jBvJiZ/_new 2020-07-08 19:20:03.444408813 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cufflinks # -# 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 @@ -19,19 +19,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-cufflinks -Version: 0.17.0 +Version: 0.17.3 Release: 0 Summary: Productivity Tools for Plotly + Pandas License: MIT URL: https://github.com/santosjorge/cufflinks Source: https://files.pythonhosted.org/packages/source/c/cufflinks/cufflinks-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 34.4.1} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-colorlover >= 0.2.1 Requires: python-numpy >= 1.9.2 Requires: python-pandas >= 0.19.2 -Requires: python-plotly >= 3.0.0 +Requires: python-plotly >= 4.1.1 Requires: python-six >= 1.9.0 Recommends: python-ipython >= 5.3.0 Recommends: python-ipywidgets >= 7.0.0 @@ -43,8 +43,7 @@ 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 >= 3.0.0} -BuildRequires: %{python_module setuptools >= 34.4.1} +BuildRequires: %{python_module plotly >= 4.1.1} BuildRequires: %{python_module six >= 1.9.0} # /SECTION %python_subpackages ++++++ cufflinks-0.17.0.tar.gz -> cufflinks-0.17.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/PKG-INFO new/cufflinks-0.17.3/PKG-INFO --- old/cufflinks-0.17.0/PKG-INFO 2019-10-24 00:20:56.000000000 +0200 +++ new/cufflinks-0.17.3/PKG-INFO 2020-03-01 18:42:00.000000000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: cufflinks -Version: 0.17.0 +Version: 0.17.3 Summary: Productivity Tools for Plotly + Pandas Home-page: https://github.com/santosjorge/cufflinks Author: Jorge Santos Author-email: santos.jo...@gmail.com License: MIT -Description-Content-Type: UNKNOWN Description: UNKNOWN Keywords: pandas,plotly,plotting Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/README.md new/cufflinks-0.17.3/README.md --- old/cufflinks-0.17.0/README.md 2019-10-24 00:19:37.000000000 +0200 +++ new/cufflinks-0.17.3/README.md 2019-10-26 20:29:38.000000000 +0200 @@ -20,7 +20,7 @@ ### Release Notes ### v0.17.0 -Support for Plotly 4.x +Support for Plotly 4.x Cufflinks is no longer compatible with Plotly 3.x ### v0.14.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/__init__.py new/cufflinks-0.17.3/cufflinks/__init__.py --- old/cufflinks-0.17.0/cufflinks/__init__.py 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/__init__.py 2019-10-29 21:20:43.000000000 +0100 @@ -20,7 +20,6 @@ from .helper import _printer as help from .plotlytools import * from plotly.graph_objs import * -from chart_studio.plotly import plot from .colors import cnames, get_colorscale from .utils import pp from .tools import subplots,scatter_matrix,figures,getLayout,getThemes,getTheme diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/colors.py new/cufflinks-0.17.3/cufflinks/colors.py --- old/cufflinks-0.17.0/cufflinks/colors.py 2018-09-10 20:37:01.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/colors.py 2020-01-07 14:45:33.000000000 +0100 @@ -29,7 +29,7 @@ color : string Color representation on hex or rgb alpha : float - Value from 0 to 1.0 that represents the + Value from 0 to 1.0 that represents the alpha value. Example: @@ -197,7 +197,7 @@ def color_table(color, N=1, sort=False, sort_values=False, inline=False, as_html=False): """ - Generates a colour table + Generates a colour table Parameters: ----------- @@ -207,11 +207,11 @@ are displayed in a table N : int number of colours to generate - When color is not a list then it generaes + When color is not a list then it generaes a range of N colors - sort : bool + sort : bool if True then items are sorted - sort_values : bool + sort_values : bool if True then items are sorted by color values. Only applies if color is a dictionary inline : bool @@ -272,7 +272,7 @@ c) else: color, shadow, border = _color(c) - s += """<li style="text-align:center;""" + border + """line-height:30px;background-color:""" + c + """;"> + s += """<li style="text-align:center;""" + border + """line-height:30px;background-color:""" + c + """;"> <span style=" text-shadow:""" + shadow + """; color:""" + color + """;">""" + k + c.upper() + """</span> </li>""" s += '</ul>' if not inline else '' @@ -559,7 +559,10 @@ 'ggplot': ['brick', 'smurf', 'lightviolet', 'mediumgray', 'mustard', 'lime2', 'pinksalmon'], 'polar': ['polarblue', 'polarorange', 'polargreen', 'polarpurple', 'polarred', 'polarcyan', 'polarbluelight'], 'plotly' : ['rgb(31, 119, 180)', 'rgb(255, 127, 14)', 'rgb(44, 160, 44)', 'rgb(214, 39, 40)', - 'rgb(148, 103, 189)', 'rgb(140, 86, 75)', 'rgb(227, 119, 194)', 'rgb(127, 127, 127)', 'rgb(188, 189, 34)', 'rgb(23, 190, 207)'] + 'rgb(148, 103, 189)', 'rgb(140, 86, 75)', 'rgb(227, 119, 194)', 'rgb(127, 127, 127)', 'rgb(188, 189, 34)', 'rgb(23, 190, 207)'], + 'henanigans': ['henanigans_cyan2', 'henanigans_red2', 'henanigans_green2', 'henanigans_blue2', 'henanigans_orange2', + 'henanigans_purple2', 'henanigans_yellow2', 'henanigans_light2', 'henanigans_cyan1', 'henanigans_red1', + 'henanigans_green1', 'henanigans_blue1'] }, 'div': { @@ -601,7 +604,7 @@ Color scale name If no scale name is provided then all scales are returned (max number for each scale) - If scale='all' then all scale combinations available + If scale='all' then all scale combinations available will be returned Example: @@ -666,20 +669,20 @@ def get_scales(scale=None, n=None): """ - Returns a color scale + Returns a color scale Parameters: ----------- scale : str Color scale name - If the color name is preceded by a minus (-) + If the color name is preceded by a minus (-) then the scale is inversed n : int - Number of colors - If n < number of colors available for a given scale then - the minimum number will be returned + Number of colors + If n < number of colors available for a given scale then + the minimum number will be returned If n > number of colors available for a given scale then - the maximum number will be returned + the maximum number will be returned Example: get_scales('accent',8) @@ -722,7 +725,7 @@ ----------- scale : str or list Color scale name - If the color name is preceded by a minus (-) + If the color name is preceded by a minus (-) then the scale is inversed. Also accepts a list of colors (rgb,rgba,hex) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/pandastools.py new/cufflinks-0.17.3/cufflinks/pandastools.py --- old/cufflinks-0.17.0/cufflinks/pandastools.py 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/pandastools.py 2020-02-20 11:17:11.000000000 +0100 @@ -97,9 +97,9 @@ Factor by which the results will be adjusted """ if not asOf: - x0=self.ix[0] + x0=self.iloc[0] else: - x0=self.ix[asOf] + x0=self.loc[asOf] return self/x0*multiplier def read_google(url,**kwargs): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/plotlytools.py new/cufflinks-0.17.3/cufflinks/plotlytools.py --- old/cufflinks-0.17.0/cufflinks/plotlytools.py 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/plotlytools.py 2019-10-29 21:20:43.000000000 +0100 @@ -1,5 +1,4 @@ import pandas as pd -import chart_studio.plotly as py import time import copy # from plotly.graph_objs import * @@ -1427,6 +1426,14 @@ auto_open=False ## Exports + if not offline.is_offline() or online: + try: + import chart_studio.plotly as py + except: + raise Exception("chart_studio is required outside of offline mode: " \ + "please run " \ + "pip install chart_studio" ) + if asImage: if offline.is_offline() and not online: return offline.py_offline.iplot(figure,validate=validate, filename=filename, show_link=show_link,link_text=link_text, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/quant_figure.py new/cufflinks-0.17.3/cufflinks/quant_figure.py --- old/cufflinks-0.17.0/cufflinks/quant_figure.py 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/quant_figure.py 2020-03-01 18:39:32.000000000 +0100 @@ -123,17 +123,17 @@ d['layout'].update(**layout_kwargs) return d - def _get_sliced(self,slice,df=None): + def _get_sliced(self,slice,df=None,to_strfmt='%Y-%m-%d',from_strfmt='%d%b%y'): """ Returns a sliced DataFrame Parameters ---------- slice : tuple(from,to) - from : str - to : str + from : str - ie ('01Jan2019') + to : str - ie ('01Jan2020') States the 'from' and 'to' values which - will get rendered as df.ix[from:to] + will get rendered as df.loc[from:to] df : DataFrame If omitted then the QuantFigure.DataFrame is resampled. """ @@ -146,7 +146,12 @@ a,b=slice a=None if a in ('',None) else utils.make_string(a) b=None if b in ('',None) else utils.make_string(b) - return df.ix[a:b] + if a: + a=date_tools.stringToString(a,from_strfmt,to_strfmt) if '-' not in a else a + if b: + b=date_tools.stringToString(b,from_strfmt,to_strfmt) if '-' not in b else b + + return df.loc[a:b] def _get_resampled(self,rule,how={'ohlc':'last','volume':'sum'},df=None,**kwargs): """ @@ -303,8 +308,8 @@ date1=date_tools.stringToString(date1,from_strfmt,to_strfmt) if '-' not in date1 else date1 on='close' if not on else on df=pd.DataFrame(self.df[self._d[on]]) - y0=kwargs.get('y0',df.ix[date0].values[0]) - y1=kwargs.get('y1',df.ix[date1].values[0]) + y0=kwargs.get('y0',df.loc[date0].values[0]) + y1=kwargs.get('y1',df.loc[date1].values[0]) if kind in ('support','resistance'): @@ -312,7 +317,7 @@ if not on: on='low' if kind=='support' else 'high' df=pd.DataFrame(self.df[self._d[on]]) - y0=kwargs.get('y0',df.ix[date0].values[0]) + y0=kwargs.get('y0',df.loc[date0].values[0]) y1=kwargs.get('y1',y0) if mode=='starttoend': date0=df.index[0] @@ -1220,6 +1225,8 @@ which.sort() max_panel=int(which[-1][1:]) figures=[] + + if showstudies: kwargs=utils.check_kwargs(kwargs,['theme','up_color','down_color'],{},False) kwargs.update(**study_kwargs) @@ -1240,14 +1247,18 @@ figures.append(study_fig) figures.append(fig) fig=tools.merge_figures(figures) + try: fig['layout']['xaxis1']['anchor']='y2' except: fig['layout']['xaxis']['anchor']='y2' - domains=self._panel_domains(**panel_data) - fig['layout'].update(**domains) + try: + for k,v in list(domains.items()): + fig['layout'][k].update(v) + except: + fig['layout'].update(**domains) if not d.get('rangeslider',False): try: del fig['layout']['yaxis1'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/tools.py new/cufflinks-0.17.3/cufflinks/tools.py --- old/cufflinks-0.17.0/cufflinks/tools.py 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/tools.py 2019-11-27 11:11:12.000000000 +0100 @@ -1547,7 +1547,7 @@ color='charcoal' color=to_rgba(color,opacity) if color else None upper['line']['color']=color - lower=upper.copy() + lower=copy.deepcopy(upper) name=trace['name']+'_' if 'name' in trace else '' upper.update(name=name+'upper') color=to_rgba(normalize(color),opacity) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks/version.py new/cufflinks-0.17.3/cufflinks/version.py --- old/cufflinks-0.17.0/cufflinks/version.py 2019-10-24 00:18:22.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks/version.py 2020-03-01 18:39:32.000000000 +0100 @@ -1 +1 @@ -__version__ = "0.17.0" \ No newline at end of file +__version__ = "0.17.3" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks.egg-info/PKG-INFO new/cufflinks-0.17.3/cufflinks.egg-info/PKG-INFO --- old/cufflinks-0.17.0/cufflinks.egg-info/PKG-INFO 2019-10-24 00:20:56.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks.egg-info/PKG-INFO 2020-03-01 18:42:00.000000000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: cufflinks -Version: 0.17.0 +Version: 0.17.3 Summary: Productivity Tools for Plotly + Pandas Home-page: https://github.com/santosjorge/cufflinks Author: Jorge Santos Author-email: santos.jo...@gmail.com License: MIT -Description-Content-Type: UNKNOWN Description: UNKNOWN Keywords: pandas,plotly,plotting Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/cufflinks.egg-info/requires.txt new/cufflinks-0.17.3/cufflinks.egg-info/requires.txt --- old/cufflinks-0.17.0/cufflinks.egg-info/requires.txt 2019-10-24 00:20:56.000000000 +0200 +++ new/cufflinks-0.17.3/cufflinks.egg-info/requires.txt 2020-03-01 18:42:00.000000000 +0100 @@ -1,7 +1,6 @@ numpy>=1.9.2 pandas>=0.19.2 plotly>=4.1.1 -chart-studio>=1.0.0 six>=1.9.0 colorlover>=0.2.1 setuptools>=34.4.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/requirements.txt new/cufflinks-0.17.3/requirements.txt --- old/cufflinks-0.17.0/requirements.txt 2019-10-23 23:54:50.000000000 +0200 +++ new/cufflinks-0.17.3/requirements.txt 2019-10-29 21:20:43.000000000 +0100 @@ -1,7 +1,6 @@ numpy>=1.9.2 pandas>=0.19.2 plotly>=4.1.1 -chart-studio>=1.0.0 six>=1.9.0 colorlover>=0.2.1 setuptools>=34.4.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cufflinks-0.17.0/setup.py new/cufflinks-0.17.3/setup.py --- old/cufflinks-0.17.0/setup.py 2019-10-24 00:18:16.000000000 +0200 +++ new/cufflinks-0.17.3/setup.py 2020-03-01 18:39:32.000000000 +0100 @@ -8,7 +8,7 @@ setup( name='cufflinks', - version='0.17.0', + version='0.17.3', description='Productivity Tools for Plotly + Pandas', author='Jorge Santos', author_email='santos.jo...@gmail.com',