SHA256
1
0
forked from pool/python-dash

33 Commits

Author SHA256 Message Date
c20cc8f63e Accepting request 1305958 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1305958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=22
2025-09-19 13:34:45 +00:00
ea38e832cd - Update to 3.2.0
## Added
  * #3369 Expose dash.NoUpdate type
  * #3371 Add devtool hook to add components to the devtool bar ui.
  ## Fixed
  * #3353 Support pattern-matching/dict ids in dcc.Loading
    target_components
  * #3371 Fix allow_optional triggering a warning for not found
    input.
  * #3379 Fix dcc.Graph backward compatibility with dash 2.0 for
    ddk.Graph
  * #3373 Fix layout as list and persistence.
  ## Changed
  * #3365 Warn if dcc.Slider has more than 500 marks and use
    default instead.
- Release 3.1
  ## Fixed
  * #3341 Fixed query string parsing regression introduced in
    2.18.2 where values containing unencoded & characters were
    being truncated. #3106
  * #3279 Fix an issue where persisted values were incorrectly
    pruned when updated via callback. Now, callback returned values
    are correctly stored in the persistence storage. Fix #2678
  * #3298 Fix dev_only resources filtering.
  * #3315 Fix pages module is package check.
  * #3319 Fix issue where ExternalWrapper would remove props from
    the parent component, now there is a temp that is passed to
    check if it should be removed on unmount.
  * #3108 Fix layout as list for pages.
  * #1906 Make graph height more responsive.
  * #2927 Fix unexpected behaviour of the cursor in dcc.Input
  * #3344 Fix dcc.Loading target_components with * prop.
  ## Added
  * #3294 Added the ability to pass allow_optional to Input and
    State to allow callbacks to work even if these components are
    not in the dash layout.
  * #3077 Add new parameter assets_path_ignore to dash.Dash().
    Closes #3076
  * #3202 expose the closeOnSelect option in dropdown component
  * #3089 adding support for async callbacks and page layouts,
    install with pip install dash[async].
  ## Changed
  * #3303 Improve flatten_grouping performance (callback with
    dictionary output/input)
  * #3304 Speed up function _operation by 80%
  * #3323 Make Dash instances WSGI compliant, can now call gunicorn
    on the dash app itself.
  ## Updated
  * #3333 Update flask max version to <3.2
- Release 3.0
  ## Added
  * #2276 Added component prop static typing for Python.
  * #3152 Custom Python prop typing for component library.
    - Added -t, --custom-typing-module argument to
      dash-generate-components CLI, default to dash_prop_typing and
      can contains definitions in variables:
      - custom_imports: dict[ComponentName, list[str]] import
        statement to be copied at the top of the component class
        definition.
      - custom_props: dict[ComponentName, dict[PropName, function]]
        for custom props. The function signature is: def
        generate_type(type_info, component_name, prop_name) -> str
  * #3035 PropType generation for Typescript components allowing
    runtime prop validation when in debug mode.
  * #3121 Restyle and add version checker to dev tools.
  * #3029 Add pip install based hooks to Dash functionalities.
      - Packages can add an entry_points with key dash-hooks to
        their setup.py for a module to be run when a Dash app is
        started.
      - Add dash.hooks methods to hook into Dash apps.
        - hooks.layout takes the layout as argument and must return
          a layout, can be used to wrap or add to the layout of
          Dash apps.
        - hooks.callback defines a callback to be added to Dash
          apps.
        - hooks.clientside_callback defines a clientside callback
          to be added to Dash apps.
        - hooks.setup is called before a Dash app is started to get
          an instance of the app as first argument.
        - hooks.error to receive all callback errors.
        - hooks.index to change the Dash.index_string.
        - hooks.route to add a Flask route to the Dash app.
        - #3175 hooks.custom_data to add custom data called from
          the callback route to the user callback.
  * #3066 Adds window.dash_component_api for components developer
    as alternative to removed _dashprivate props.
    - Add dash_component_api.useDashContext,
      dash_component_api.DashContext to access the redux store and
      loading mechanisms.
      - DashContext.componentPath hold the path to the current
        component.
      - DashContext.useLoading(options?) selector to get a
        boolean if the component is loading.
      - DashContext.isLoading in case you need to use outside of
        a functional component.
      - DashContext.useSelector to create custom selectors for
        the connected redux store.
      - DashContext.useStore get the Dash app redux store.
      - DashContext.useDispatch to dispatch new actions on the
        Dash redux store.
    - Add dash_component_api.getLayout(path) to replace
      _dashprivate_layout.
    - Expose stringifyId in window.dash_component_api. #3175
    - Add window.dash_component_api.ExternalWrapper to render
      Dash components that are not part of the layout tree. #3170
      #3183
  ## Removed
  * #3066 loading_state removed from components props.
  * #3078 Deprecations removals
    - Removed dash.development.component_loader, components
      libraries now required to generate the components with
      dash-generate-components.
    - Dash.run_server has been removed in favor of Dash.run.
    - Removed dcc.LogoutButton component.
    - Renamed all long references to background.
  ## Changed
  * #3093 Changed default React version to 18.3.1
    - defaultProps on functional components now emits a deprecation
      warning.
    - Deprecation notice on strings refs.
  ## Fixed
  * #3080 Fix docstring generation for components using single-line
    or nonstandard-indent leading comments
  * #3103 Fix Graph component becomes unresponsive if an invalid
    figure is passed
  * #3190 Fix issue with cache key generation by adding option to
    include triggered inputs. Fixes #3189
  * #3130 Fix HOST variable when using conda.
  * #3066 Improve performance of context components re-rendering.
  * #3171 JupyterDash Fix - Alive Check
  * #3168 Fix clientside pattern matching with a dot in the id.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=14
2025-09-19 08:59:50 +00:00
5bf087968c Accepting request 1277939 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1277939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=21
2025-05-20 07:34:19 +00:00
30b188b2e7 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=13
2025-05-09 05:26:13 +00:00
475f2236d9 Accepting request 1266896 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1266896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=20
2025-04-03 16:43:42 +00:00
a0ef896efd - Update to 2.18.2
* Lots of changes since 2.16.1:
    https://github.com/plotly/dash/compare/v2.16.1...v2.18.2
  * Drop dependencies python-dash-core-components,
    python dash-html-components and dash-table as they are moved to
    main dash repo

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=12
2025-04-03 13:20:58 +00:00
884a749732 Accepting request 1193892 from devel:languages:python:numeric
- switch to modern python for sle15

OBS-URL: https://build.opensuse.org/request/show/1193892
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=19
2024-08-16 10:23:15 +00:00
0e37f1a17b Accepting request 1165938 from devel:languages:python:numeric
- update to 2.16.1:
  * #2783 Remove dynamic loading.

OBS-URL: https://build.opensuse.org/request/show/1165938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=18
2024-04-07 20:12:02 +00:00
95a296bffc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=10 2024-04-07 08:41:51 +00:00
573bdfce5e - update to 2.16.1:
* #2783 Remove dynamic loading.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=9
2024-04-06 19:12:19 +00:00
f6574c228b Accepting request 1155757 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1155757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=17
2024-03-07 17:28:33 +00:00
7b58def338 Accepting request 1155756 from home:bnavigator:branches:devel:languages:python:numeric
- Fix truncated version requirement for python3dist(dash)

OBS-URL: https://build.opensuse.org/request/show/1155756
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=8
2024-03-06 21:52:07 +00:00
c9e5b1e3df Accepting request 1155344 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2.16.0
  * Lots ofchanges since 2.6.2:
    https://github.com/plotly/dash/compare/v2.6.2...v2.16.0
- Skip python39: plotly no longer available (due to ipython)
- Add jupyter-dash package

OBS-URL: https://build.opensuse.org/request/show/1155344
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=7
2024-03-06 07:01:58 +00:00
33a922de91 Accepting request 1006743 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1006743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=16
2022-09-29 16:13:29 +00:00
b3b5e1d746 Accepting request 1006682 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1006682
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=6
2022-09-28 16:52:10 +00:00
771ad22626 Accepting request 1002726 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1002726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=15
2022-09-12 17:08:25 +00:00
967b3ab458 Accepting request 1002416 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1002416
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=5
2022-09-12 07:55:45 +00:00
193507de75 Accepting request 988242 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/988242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=14
2022-07-12 09:12:24 +00:00
63e8fb9d26 Accepting request 988224 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/988224
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=4
2022-07-11 05:59:05 +00:00
c1acda2194 Accepting request 981258 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/981258
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=13
2022-06-08 12:25:11 +00:00
d45650047d Accepting request 981204 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2.5.0
  * #1947 Added pages - a better way to build multi-page apps. For
    more information see the forum post.
  * #1965 Add component as props.
  * #2049 Added wait_for_class_to_equal and wait_for_contains_class
    methods to dash.testing
  * #2050 Changed find_element and find_elements to accept an
    attribute argument that aligns with Selenium's By class,
    allowing you to search elements by other attributes. Default
    value is CSS_SELECTOR to maintain backwards compatibility with
    previous find_elements.
  * #2043 Fix bug #2003 in which dangerously_allow_html=True +
    mathjax=True works in some cases, and in some cases not.
  * #2065 Fix bug #2064 rendering of dcc.Dropdown with a value but
    no options.
  * #2047 Fix bug #1979 in which DASH_DEBUG as environment variable
    gets ignored.
  * #2070 Fix bug #2066 nested types triggering maximum call stack
    error when building typescript components.
- Release 2.4.1
  * Fix #2045 import error when using pytest but dash[testing] is
    not installed.
- Release 2.4.0
  * #1952 Improved callback_context
    - Closes #1818 Closes #1054
    - adds dash.ctx, a more concise name for dash.callback_context
    - adds ctx.triggered_prop_ids, a dictionary of the component
      ids and props that triggered the callback.
    - adds ctx.triggered_id, the id of the component that triggered
      the callback.

OBS-URL: https://build.opensuse.org/request/show/981204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash?expand=0&rev=3
2022-06-08 08:05:19 +00:00
faa9dfed13 Accepting request 958538 from devel:languages:python:numeric
Restore the link to the development project in d:l:p:numeric.

Also, update to 2.2.0.

OBS-URL: https://build.opensuse.org/request/show/958538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=12
2022-03-03 23:17:12 +00:00
659a9ed1fa Accepting request 884578 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/884578
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=11
2021-04-12 15:10:39 +00:00
7e4d3bac30 Accepting request 860009 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/860009
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=10
2021-01-05 17:12:46 +00:00
39d30c215c Accepting request 809428 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/809428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=9
2020-05-28 07:18:21 +00:00
1ff1b7506c Accepting request 795470 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/795470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=8
2020-04-22 18:50:22 +00:00
f2dc0cda60 Accepting request 790028 from devel:languages:python:numeric
- Fix all the runtime dependencies

OBS-URL: https://build.opensuse.org/request/show/790028
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=7
2020-04-01 17:08:38 +00:00
71004c23d0 Accepting request 785218 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/785218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=6
2020-03-16 09:19:16 +00:00
6dd4045bd2 Accepting request 773178 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/773178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=5
2020-02-10 20:56:31 +00:00
0e04a86c13 Accepting request 768873 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/768873
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=4
2020-02-03 10:13:26 +00:00
b988db4d27 Accepting request 754776 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/754776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=3
2019-12-07 14:09:12 +00:00
efdb1b44ce Accepting request 654003 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/654003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=2
2018-12-13 18:42:37 +00:00
6ebe16152c Accepting request 605534 from devel:languages:python
Framework for web apps

OBS-URL: https://build.opensuse.org/request/show/605534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dash?expand=0&rev=1
2018-05-11 12:28:31 +00:00
4 changed files with 165 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2871d6b8d4c9dfd0a64f89f22d001c93292910b41d92d9ff2bb424a28283976
size 9911605

3
dash-3.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93300b9b99498f8b8ed267e61c455b4ee1282c7e4d4b518600eec87ce6ddea55
size 7558708

View File

@@ -1,3 +1,153 @@
-------------------------------------------------------------------
Thu Sep 18 08:40:17 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Update to 3.2.0
## Added
* #3369 Expose dash.NoUpdate type
* #3371 Add devtool hook to add components to the devtool bar ui.
## Fixed
* #3353 Support pattern-matching/dict ids in dcc.Loading
target_components
* #3371 Fix allow_optional triggering a warning for not found
input.
* #3379 Fix dcc.Graph backward compatibility with dash 2.0 for
ddk.Graph
* #3373 Fix layout as list and persistence.
## Changed
* #3365 Warn if dcc.Slider has more than 500 marks and use
default instead.
- Release 3.1
## Fixed
* #3341 Fixed query string parsing regression introduced in
2.18.2 where values containing unencoded & characters were
being truncated. #3106
* #3279 Fix an issue where persisted values were incorrectly
pruned when updated via callback. Now, callback returned values
are correctly stored in the persistence storage. Fix #2678
* #3298 Fix dev_only resources filtering.
* #3315 Fix pages module is package check.
* #3319 Fix issue where ExternalWrapper would remove props from
the parent component, now there is a temp that is passed to
check if it should be removed on unmount.
* #3108 Fix layout as list for pages.
* #1906 Make graph height more responsive.
* #2927 Fix unexpected behaviour of the cursor in dcc.Input
* #3344 Fix dcc.Loading target_components with * prop.
## Added
* #3294 Added the ability to pass allow_optional to Input and
State to allow callbacks to work even if these components are
not in the dash layout.
* #3077 Add new parameter assets_path_ignore to dash.Dash().
Closes #3076
* #3202 expose the closeOnSelect option in dropdown component
* #3089 adding support for async callbacks and page layouts,
install with pip install dash[async].
## Changed
* #3303 Improve flatten_grouping performance (callback with
dictionary output/input)
* #3304 Speed up function _operation by 80%
* #3323 Make Dash instances WSGI compliant, can now call gunicorn
on the dash app itself.
## Updated
* #3333 Update flask max version to <3.2
- Release 3.0
## Added
* #2276 Added component prop static typing for Python.
* #3152 Custom Python prop typing for component library.
- Added -t, --custom-typing-module argument to
dash-generate-components CLI, default to dash_prop_typing and
can contains definitions in variables:
- custom_imports: dict[ComponentName, list[str]] import
statement to be copied at the top of the component class
definition.
- custom_props: dict[ComponentName, dict[PropName, function]]
for custom props. The function signature is: def
generate_type(type_info, component_name, prop_name) -> str
* #3035 PropType generation for Typescript components allowing
runtime prop validation when in debug mode.
* #3121 Restyle and add version checker to dev tools.
* #3029 Add pip install based hooks to Dash functionalities.
- Packages can add an entry_points with key dash-hooks to
their setup.py for a module to be run when a Dash app is
started.
- Add dash.hooks methods to hook into Dash apps.
- hooks.layout takes the layout as argument and must return
a layout, can be used to wrap or add to the layout of
Dash apps.
- hooks.callback defines a callback to be added to Dash
apps.
- hooks.clientside_callback defines a clientside callback
to be added to Dash apps.
- hooks.setup is called before a Dash app is started to get
an instance of the app as first argument.
- hooks.error to receive all callback errors.
- hooks.index to change the Dash.index_string.
- hooks.route to add a Flask route to the Dash app.
- #3175 hooks.custom_data to add custom data called from
the callback route to the user callback.
* #3066 Adds window.dash_component_api for components developer
as alternative to removed _dashprivate props.
- Add dash_component_api.useDashContext,
dash_component_api.DashContext to access the redux store and
loading mechanisms.
- DashContext.componentPath hold the path to the current
component.
- DashContext.useLoading(options?) selector to get a
boolean if the component is loading.
- DashContext.isLoading in case you need to use outside of
a functional component.
- DashContext.useSelector to create custom selectors for
the connected redux store.
- DashContext.useStore get the Dash app redux store.
- DashContext.useDispatch to dispatch new actions on the
Dash redux store.
- Add dash_component_api.getLayout(path) to replace
_dashprivate_layout.
- Expose stringifyId in window.dash_component_api. #3175
- Add window.dash_component_api.ExternalWrapper to render
Dash components that are not part of the layout tree. #3170
#3183
## Removed
* #3066 loading_state removed from components props.
* #3078 Deprecations removals
- Removed dash.development.component_loader, components
libraries now required to generate the components with
dash-generate-components.
- Dash.run_server has been removed in favor of Dash.run.
- Removed dcc.LogoutButton component.
- Renamed all long references to background.
## Changed
* #3093 Changed default React version to 18.3.1
- defaultProps on functional components now emits a deprecation
warning.
- Deprecation notice on strings refs.
## Fixed
* #3080 Fix docstring generation for components using single-line
or nonstandard-indent leading comments
* #3103 Fix Graph component becomes unresponsive if an invalid
figure is passed
* #3190 Fix issue with cache key generation by adding option to
include triggered inputs. Fixes #3189
* #3130 Fix HOST variable when using conda.
* #3066 Improve performance of context components re-rendering.
* #3171 JupyterDash Fix - Alive Check
* #3168 Fix clientside pattern matching with a dot in the id.
-------------------------------------------------------------------
Fri May 9 05:08:11 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Thu Apr 3 07:42:31 UTC 2025 - Tuukka Pasanen <tuukka.pasanen@ilmi.fi>
- Update to 2.18.2
* Lots of changes since 2.16.1:
https://github.com/plotly/dash/compare/v2.16.1...v2.18.2
* Drop dependencies python-dash-core-components,
python dash-html-components and dash-table as they are moved to
main dash repo
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 14 14:50:01 UTC 2024 - Dirk Müller <dmueller@suse.com> Wed Aug 14 14:50:01 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -18,22 +18,22 @@
# We can't test currenty, see below. # We can't test currenty, see below.
%bcond_with test %bcond_with test
%define distver 2.16.1 %define distver 3.2
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-dash Name: python-dash
Version: 2.16.1 Version: 3.2.0
Release: 0 Release: 0
Summary: Python framework for building reactive web-apps Summary: Python framework for building reactive web-apps
License: MIT License: MIT
URL: https://github.com/plotly/dash URL: https://github.com/plotly/dash
# PyPI package does not contain unit tests. GitHub does, but we don't test right now # PyPI package does not contain unit tests. GitHub does, but does not contain the js stuff,
Source: https://files.pythonhosted.org/packages/source/d/dash/dash-%{version}.tar.gz # but we don't test right now: trying to build from js sources and use local-npm-registry fails
# due to "independent" component packages installed in a weird order
Source0: https://files.pythonhosted.org/packages/source/d/dash/dash-%{version}.tar.gz
#Source1: https://github.com/plotly/dash/archive/refs/tags/v%{version}.tar.gz#/dash-%%{version}-gh.tar.gz
Source99: python-dash.rpmlintrc Source99: python-dash.rpmlintrc
BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module Flask >= 1.0.4} BuildRequires: %{python_module Flask >= 1.0.4}
BuildRequires: %{python_module dash-core-components = 2.0.0}
BuildRequires: %{python_module dash-html-components = 2.0.0}
BuildRequires: %{python_module dash-table = 5.0.0}
BuildRequires: %{python_module percy} BuildRequires: %{python_module percy}
BuildRequires: %{python_module plotly >= 5.0.0} BuildRequires: %{python_module plotly >= 5.0.0}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -58,9 +58,6 @@ Requires: python-requests
Requires: python-retrying Requires: python-retrying
Requires: python-nest-asyncio Requires: python-nest-asyncio
Requires: python-setuptools Requires: python-setuptools
Requires: python-dash-core-components = 2.0.0
Requires: python-dash-html-components = 2.0.0
Requires: python-dash-table = 5.0.0
Requires: python-plotly >= 5.0.0 Requires: python-plotly >= 5.0.0
Requires: jupyter-dash = %{version}-%{release} Requires: jupyter-dash = %{version}-%{release}
# SECTION testing extras # SECTION testing extras
@@ -74,6 +71,7 @@ Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module mock} ## <-- not available anymore!
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-rerunfailures} BuildRequires: %{python_module pytest-rerunfailures}
BuildRequires: %{python_module pytest-sugar} BuildRequires: %{python_module pytest-sugar}
@@ -107,15 +105,16 @@ for python-dash
%prep %prep
%setup -q -n dash-%{version} %setup -q -n dash-%{version}
# -b 1
sed -i -e '/^#!\//, 1d' dash/extract-meta.js sed -i -e '/^#!\//, 1d' dash/extract-meta.js
chmod -x dash/extract-meta.js chmod -x dash/extract-meta.js
find . -name .gitkeep -delete find . -name .gitkeep -delete
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/renderer %python_clone -a %{buildroot}%{_bindir}/renderer
%python_clone -a %{buildroot}%{_bindir}/dash-generate-components %python_clone -a %{buildroot}%{_bindir}/dash-generate-components
%python_clone -a %{buildroot}%{_bindir}/dash-update-components %python_clone -a %{buildroot}%{_bindir}/dash-update-components
@@ -151,6 +150,6 @@ find . -name .gitkeep -delete
%python_alternative %{_bindir}/dash-update-components %python_alternative %{_bindir}/dash-update-components
%python_alternative %{_bindir}/renderer %python_alternative %{_bindir}/renderer
%{python_sitelib}/dash %{python_sitelib}/dash
%{python_sitelib}/dash-%{version}*-info %{python_sitelib}/dash-%{version}.dist-info
%changelog %changelog