forked from pool/python-panel
- Bring back package %build from source, removing binary .whl
distribution from package. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=53
This commit is contained in:
parent
8a0589d920
commit
e5a72775ec
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c7bcb06cedae635af4e9b0d757ff97ffb72cf5fea315ac320c77a8f292d66551
|
|
||||||
size 24651582
|
|
3
panel-1.4.1.tar.gz
Normal file
3
panel-1.4.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1ad2084e65d4f0fc424432a963c9a4d668d8315203b338830b40c112ead3ebb7
|
||||||
|
size 38182034
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 7 09:14:55 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Bring back package %build from source, removing binary .whl
|
||||||
|
distribution from package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 21 22:22:11 UTC 2024 - Todd R <toddrme2178@gmail.com>
|
Sun Apr 21 22:22:11 UTC 2024 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Summary: A high level app and dashboarding solution for Python
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/holoviz/panel
|
URL: https://github.com/holoviz/panel
|
||||||
Source0: https://files.pythonhosted.org/packages/py3/p/panel/panel-%{version}-py3-none-any.whl
|
Source0: https://files.pythonhosted.org/packages/source/p/panel/panel-%{version}.tar.gz
|
||||||
Source99: python-panel-rpmlintrc
|
Source99: python-panel-rpmlintrc
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module bleach}
|
BuildRequires: %{python_module bleach}
|
||||||
@ -116,20 +116,29 @@ This package contains the notebook and server extension configuration common
|
|||||||
to all Python flavors.
|
to all Python flavors.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%autosetup -p1 -n panel-%{version}
|
||||||
%if %{with test}
|
# Do not try to rebuild the bundled npm stuff. We don't have network. Just use the shipped bundle.
|
||||||
%python_expand mkdir -p build && unzip %{SOURCE0} -d build/
|
sed -i '/def _build_paneljs/ a \ return' setup.py
|
||||||
%endif
|
# no color for pytest
|
||||||
|
sed -i '/addopts/ s/--color=yes//' pyproject.toml
|
||||||
|
for p in panel/tests/io/reload_module.py
|
||||||
|
do \
|
||||||
|
[ -f $p -a ! -s $p ] || exit 1 && echo "# Empty module" > $p
|
||||||
|
done
|
||||||
|
for p in panel/dist/css/regular_table.css \
|
||||||
|
panel/dist/bundled/perspective/@finos/perspective-viewer@2.9.0/dist/css/variables.css
|
||||||
|
do \
|
||||||
|
[ -f $p -a ! -s $p ] || exit 1 && echo "// Empty css" > $p
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# not needed
|
%pyproject_wheel
|
||||||
|
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
%install
|
%install
|
||||||
%pyproject_install %{SOURCE0}
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/panel
|
%python_clone -a %{buildroot}%{_bindir}/panel
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
cp %{buildroot}%{python_sitelib}/panel-%{version}.dist-info/LICENSE.txt .
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
@ -156,7 +165,7 @@ donttest="$donttest or test_pdf_local_file"
|
|||||||
# Don't test on 32-bit: asyncio is too flaky
|
# Don't test on 32-bit: asyncio is too flaky
|
||||||
[ $(getconf LONG_BIT) -eq 32 ] && exit 0
|
[ $(getconf LONG_BIT) -eq 32 ] && exit 0
|
||||||
#
|
#
|
||||||
%pytest build/panel -n auto -rsfE -k "not ($donttest)"
|
%pytest -n auto -rsfE -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -168,6 +177,7 @@ donttest="$donttest or test_pdf_local_file"
|
|||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/panel
|
%python_alternative %{_bindir}/panel
|
||||||
%{python_sitelib}/panel
|
%{python_sitelib}/panel
|
||||||
%{python_sitelib}/panel-%{version}.dist-info
|
%{python_sitelib}/panel-%{version}.dist-info
|
||||||
|
Loading…
Reference in New Issue
Block a user