Files
python-qgrid/python-qgrid.spec

101 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
#
# spec file for package python-qgrid
#
# Copyright (c) 2022 SUSE LLC
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
Name: python-qgrid
Version: 1.3.1
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
Release: 0
Summary: Grid for sorting and filtering DataFrames in Jupyter notebooks
License: Apache-2.0
URL: https://github.com/quantopian/qgrid
Source: https://files.pythonhosted.org/packages/source/q/qgrid/qgrid-%{version}.tar.gz
BuildRequires: %{python_module ipywidgets >= 7.0.0}
BuildRequires: %{python_module notebook >= 4.0.0}
BuildRequires: %{python_module pandas >= 0.18.0}
BuildRequires: %{python_module pytest}
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: jupyter-qgrid = %{version}
Requires: python-ipywidgets >= 7.0.0
Requires: python-notebook >= 4.0.0
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
Requires: python-pandas >= 0.18.0
BuildArch: noarch
%python_subpackages
%description
An Interactive Grid for Sorting and Filtering DataFrames in Jupyter Notebook.
This package provides the python interface.
%package -n jupyter-qgrid
Summary: Grid for sorting and filtering DataFrames in Jupyter notebooks
Requires: jupyter-ipywidgets >= 7.0.0
Requires: jupyter-notebook >= 4.0.0
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
Requires: python3-qgrid = %{version}
%description -n jupyter-qgrid
An Interactive Grid for Sorting and Filtering DataFrames in Jupyter Notebook.
This package provides the jupyter notebook extension.
%prep
%setup -q -n qgrid-%{version}
# gh#quantopian/qgrid#376
sed -i 's/\(widgets.register\)()/\1/' qgrid/grid.py
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/qgrid/tests/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/qgrid/tests/
}
%python_expand %fdupes %{buildroot}%{$python_sitelib}/qgrid/tests/
PYTHONPATH=%{buildroot}%{python3_sitelib} jupyter nbextension install qgrid --user --py
PYTHONPATH=%{buildroot}%{python3_sitelib} jupyter nbextension enable qgrid --user --py
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
for f in ~/.jupyter/nbconfig/*.json ; do
tdir=$( basename -s .json ${f} )
install -Dm 644 ${f} %{buildroot}%{_jupyter_nb_confdir}/${tdir}.d/qgrid.json
done
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%fdupes %{buildroot}%{_jupyter_prefix}
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%check
# test_period_object_column - fails on serialization
# test_edit_date - new timestamp format
%pytest -k 'not (test_period_object_column or test_edit_date)'
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/qgrid/
%{python_sitelib}/qgrid-%{version}*-info
%exclude %{python_sitelib}/qgrid/tests
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%files -n jupyter-qgrid
%license LICENSE
%{_jupyter_nbextension_dir}/qgrid/
%_jupyter_config %{_jupyter_nb_notebook_confdir}/qgrid.json
Accepting request 698363 from home:TheBlackCat:branches:devel:languages:python:jupyter - Rename to to match python package naming guidelines. - Split jupyter components into own subpackage. - Update to 1.1.1 * Fixes an issue where the grid widget would flash noticeably when the df attribute or any other attributes were changed. This issue has existed since 1.0. (#186) * Make the SlickGrid object available via $('.q-grid').data('slickgrid') as suggested here: #178 (comment). This allows you to work with a particular SlickGrid instance from the js console. - Update to 1.1.0 * Column options can be provided via the show_grid method. Options can be provided for all columns via the column_options parameter, and for individual columns via the column_definitions parameter. * Added edit_cell, change_selection, toggle_editable methods for updating the state of an existing grid widget without having to call show_grid. * Updated the add_row method so that the caller can specify the values for the new row via the row parameter. This will allow people to add rows to a qgrid instance even if it's showing a DataFrame that doesn't have an integer index. * Updated the remove_row method so that the indices of the rows to remove can optionally be provided via the rows parameter. * Fixed issue where moving the scroll bar around a bunch of times quickly can cause a series of grid refreshes to occur. * Thanks to Abigail Hahn (vardaofthevalier) for adding many of the features in the following PR: #191 - Avoid bashism in scriptlet. - Use noun phrase in summary. - Update to 1.0.5 * Fixes issue where editing cells in a DataFrame with an unnamed index results in an error pop up * Make categorical column filtering work with old versions of pandas, like 0.18 * Adds new on and off methods at both the module-level (for listening to events on all qgrid instances) and at the instance-level (for listening to events on individual qgrid instances) * The on and off methods mentioned above should now be used to listen for events instead of listening for the on_value_change event of the _df attribute. In other words using qgrid_widget.observe(on_value_change, names=['_df']) for being notified about changes to the state of the grid (i.e. editing, sorting, filtering) will no longer work. - Use || true syntax instead of exit 0 - Use %license tag - Update to 1.0.2 * Fixes issue that made it impossible to set the value of a float cell to zero #174 * Updated tests to be python 2 compatible by removing usages of nonlocal. This change will help us to simplify the coda build process. - Update to 1.0.1b1 * Fix handling of grid_options in set_defaults - Initial version OBS-URL: https://build.opensuse.org/request/show/698363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-qgrid?expand=0&rev=1
2019-04-26 19:47:27 +00:00
%changelog