diff --git a/0001-Bumps-google-auth-oauthlib-dependency-restriction.patch b/0001-Bumps-google-auth-oauthlib-dependency-restriction.patch new file mode 100644 index 0000000000000000000000000000000000000000..b3d90fcab0ae12e64a8683211b2d16bbe315c9c4 --- /dev/null +++ b/0001-Bumps-google-auth-oauthlib-dependency-restriction.patch @@ -0,0 +1,25 @@ +From a98b915f607ffa2ac5a3913dc91a1da2cccf4876 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Sat, 6 May 2023 16:35:45 +0800 +Subject: [PATCH] Bumps google-auth-oauthlib dependency restriction + +--- + tensorboard/pip_package/requirements.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tensorboard/pip_package/requirements.txt b/tensorboard/pip_package/requirements.txt +index e782cef..665da8a 100644 +--- a/tensorboard/pip_package/requirements.txt ++++ b/tensorboard/pip_package/requirements.txt +@@ -21,7 +21,7 @@ grpcio >= 1.24.3 + # Until this issue is closed + # https://github.com/googleapis/google-cloud-python/issues/10566 + google-auth >= 1.6.3, < 3 +-google-auth-oauthlib >= 0.4.1, < 0.5 ++google-auth-oauthlib >= 0.5, < 1.1 + markdown >= 2.6.8 + numpy >= 1.12.0 + # Protobuf 4.0 is incompatible with TF. Force < 3.20 until they unblock upgrade. +-- +2.33.0 + diff --git a/2.10.1.tar.gz b/2.10.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6b9e612b2e7a767abdd84f2d3f401f95de0391e7 Binary files /dev/null and b/2.10.1.tar.gz differ diff --git a/data-server-v0.6.1.tar.gz b/data-server-v0.6.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f4421e0320974ae305075d25a657e236bfa807d Binary files /dev/null and b/data-server-v0.6.1.tar.gz differ diff --git a/tensorboard-2.10.1-py3-none-any.whl b/tensorboard-2.10.1-py3-none-any.whl deleted file mode 100644 index 14a9e1304a8d4200b33abcd5747c3b925aad1343..0000000000000000000000000000000000000000 Binary files a/tensorboard-2.10.1-py3-none-any.whl and /dev/null differ diff --git a/tensorboard.spec b/tensorboard.spec index 1af210dcf374da651f64b7475f44afbbeadcf033..59b5104710ef80cb110d9fb7c0c8b6af33b2eb53 100644 --- a/tensorboard.spec +++ b/tensorboard.spec @@ -1,12 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-tensorboard Version: 2.10.1 -Release: 1 +Release: 2 Summary: TensorBoard lets you watch Tensors Flow License: Apache 2.0 URL: https://github.com/tensorflow/tensorboard -Source0: https://files.pythonhosted.org/packages/80/49/a5ec29886ef823718c8ae54ed0b3ad7e19066b5bf21cec5038427e6a04c4/tensorboard-2.10.1-py3-none-any.whl -Source1: https://files.pythonhosted.org/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-py3-none-any.whl +Source0: https://github.com/tensorflow/tensorboard/archive/refs/tags/%{version}.tar.gz +Source1: https://github.com/tensorflow/tensorboard/archive/refs/tags/data-server-v0.6.1.tar.gz +Patch0: 0001-Bumps-google-auth-oauthlib-dependency-restriction.patch BuildArch: noarch Requires: python3-absl-py @@ -36,6 +37,10 @@ Provides: python-tensorboard BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling %description -n python3-tensorboard TensorBoard is a suite of web applications for inspecting and understanding your TensorFlow runs and graphs. @@ -49,6 +54,10 @@ Provides: python3-tensorboard-data-server BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling %description -n python3-tensorboard-data-server Fast data loading for TensorBoard. @@ -63,26 +72,18 @@ Releases prior to 1.6.0 were published under the ``tensorflow-tensorboard`` name and may be found at https://pypi.python.org/pypi/tensorflow-tensorboard. %prep +%autosetup -n tensorboard-%{version} -b 0 +%patch0 -p1 +%autosetup -n tensorboard-data-server-v0.6.1 -b 1 %build -mkdir dist -cp %{SOURCE0} dist -cp %{SOURCE1} dist +%pyproject_build tensorboard-data-server==v0.6.1 +cd %{_buildroot}/tensorboard/ +%pyproject_build tensorboard==%{version} %install -%py3_install_wheel * -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/doclist.lst . +%pyproject_install tensorboard_data_server==0.6.1 +%pyproject_install tensorboard==%{version} %files -n python3-tensorboard %{_bindir}/tensorboard @@ -97,6 +98,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Sat May 06 2023 Dongxing Wang - 2.10.1-2 +- change depends google-auth + * Thu Nov 10 2022 Bin Hu - 2.10.1-1 - upgrade to version 2.10.1 diff --git a/tensorboard_data_server-0.6.1-py3-none-any.whl b/tensorboard_data_server-0.6.1-py3-none-any.whl deleted file mode 100644 index 2c383de61f924c82f4f3bfcc4ad30f587fffa6aa..0000000000000000000000000000000000000000 Binary files a/tensorboard_data_server-0.6.1-py3-none-any.whl and /dev/null differ