File python-ucsmsdk.spec of Package python-ucsmsdk
#
# spec file for package python-ucsmsdk
#
# Copyright (c) 2021-2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: python-ucsmsdk
Version: 0.9.24
Release: 0
Summary: Python SDK for Cisco UCSM
License: Apache-2.0
URL: https://github.com/CiscoUcs/ucsmsdk
Source: https://github.com/CiscoUcs/ucsmsdk/archive/refs/tags/v%{version}.tar.gz#/ucsmsdk-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyparsing
Requires: python-six
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module six}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
Python SDK for Cisco UCSM.
%prep
%autosetup -n ucsmsdk-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst HISTORY.rst README.md
%{python_sitelib}/ucsmsdk*
%changelog