Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science:machinelearning
python-tensorflow-estimator
python-tensorflow-estimator.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-tensorflow-estimator.spec of Package python-tensorflow-estimator
# # spec file # # Copyright (c) 2022 SUSE LLC # # 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/ # %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif %bcond_with alltests # sync with tensorflow2 %define pythons python3 %if 0%{?suse_version} < 1599 ExclusiveArch: donotbuild %endif Name: python-tensorflow-estimator%{psuffix} Version: 2.7.0 Release: 0 Summary: TensorFlow Estimator API License: Apache-2.0 URL: https://github.com/tensorflow/estimator # no sdist. Use the pure wheel. It is much easier than a Bazel build Source0: https://files.pythonhosted.org/packages/py2.py3/t/tensorflow_estimator/tensorflow_estimator-%{version}-py2.py3-none-any.whl # For Tests Source1: https://github.com/tensorflow/estimator/archive/refs/tags/v%{version}.tar.gz#/tensorflow_estimator-%{version}.tar.gz Source99: https://github.com/tensorflow/estimator/raw/v%{version}/LICENSE BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip Provides: python-tensorflow_estimator = %{version}-%{release} Obsoletes: python-tensorflow_estimator < %{version}-%{release} BuildArch: noarch ExcludeArch: %{ix86} %if %{with test} BuildRequires: %{python_module tensorflow-estimator = %{version}} BuildRequires: %{python_module scikit-learn} BuildRequires: tensorflow2 >= 2.6 %endif %python_subpackages %description TensorFlow Estimator is a high-level TensorFlow API that greatly simplifies machine learning programming. Estimators encapsulate training, evaluation, prediction, and exporting for your model. %prep %setup -q -n estimator-%{version} -b1 cp %{SOURCE99} . %build : %if ! %{with test} %install %pyproject_install %{SOURCE0} %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check # failure at setup of test class donttest+=" -and -not -name distribute_strategy_estimator_training_test.py" # invalid shapes donttest+=" -and -not -name boosted_trees_test.py" # exception not raised donttest+=" -and -not -name dnn_linear_combined_test.py" # shape errors donttest+=" -and -not -name test_util.py" # s] AssertionError: Element counts were not equal donttest+=" -and -not -name rnn_test.py" # Cannot find any TPU cores in the system donttest+=' -and -not -path */tpu/*' # Note: These might be genuine errors, but in order to get it checked in, we rather ignore them now. # It is still better than not running any tests at all. # limit obs runs to only the maindir tests. Without it, on a slow worker, the :test flavor takes ages to complete %if ! %{with alltests} findargs="-maxdepth 1" %endif %{python_expand # call the main() functions of test files find tensorflow_estimator/python/estimator $findargs -name '*_test.py' $donttest | while read f; do $python $f done } %endif %if ! %{with test} %files %{python_files} %license LICENSE %{python_sitelib}/tensorflow_estimator %{python_sitelib}/tensorflow_estimator-%{version}.dist-info %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor