14
0
Files
python-softlayer/python-softlayer.spec
Steve Kowalik 7e742d7a13 - Update to 6.2.6:
* Added feature to iter_call to force a orderBy filter
  * Fixed an issues with search command.
  * Added --owner, --public_ip and --private_ip search fields for hardware
    list
  * Added get_total_items to SoftLayerListResult.
  * Fixed invalid filter in vs migrate preventing guest list from being
    properly shown.
  * Sums up child items in invoices-detail
  * Updated vlan masks to fix id/number fields not being retrieved properly
  * Added x509 certificate support to cli
  * Added vpn status to user list.
  * Fixed a bug when displaying empty tables.
  * Added more error handling around table output
  * Reworked user permissions list to include permissions
  * More efficient created_by
  * Fixed a bug in the config parser
  * Fixed an issue with confirmation not handling uppercase ids
  * Removed requirements in volume-modify commands
  * Marked --crt and --key as required for slcli ssl add
  * Added network flag to update-firmware
  * Added detect-secrets workflow
  * Added support for python 3.12
  * Adding support for internal styles of authentication
- Add patch support-click-8.2.patch:
  * Support changes that Click 8.2 made.
- Switch to pyproject macros.
- No more greedy globs in %files.
- Package should be noarch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=41
2025-05-22 13:48:15 +00:00

94 lines
3.1 KiB
RPMSpec

#
# spec file for package python-softlayer
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-softlayer
Version: 6.2.6
Release: 0
Summary: A set of Python libraries that assist in calling the SoftLayer API
License: MIT
URL: https://github.com/softlayer/softlayer-python
Source: https://github.com/softlayer/softlayer-python/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#softlayer/softlayer-python#2222
Patch0: support-click-8.2.patch
BuildRequires: %{python_module click >= 8.0.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module prettytable >= 2.5.0}
BuildRequires: %{python_module prompt_toolkit >= 2}
BuildRequires: %{python_module pygments >= 2.0.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module rich >= 12.5.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module softlayer-zeep >= 5.0.0}
BuildRequires: %{python_module testtools}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module urllib3 >= 1.24}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click >= 8.0.4
Requires: python-prettytable >= 2.5.0
Requires: python-prompt_toolkit >= 2
Requires: python-pygments >= 2.0.0
Requires: python-requests >= 2.20.0
Requires: python-rich >= 12.5.1
Requires: python-setuptools
Requires: python-softlayer-zeep >= 5.0.0
Requires: python-typing_extensions
Requires: python-urllib3 >= 1.24
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
This library provides a simple Python client to interact with SoftLayer's XML-RPC API.
%prep
%autosetup -p1 -n softlayer-python-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/slcli
# do not install tests
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# We do not want TKinter
%pytest -k 'not test_getpass_issues1436 and not TestSoapAPICall'
%post
%python_install_alternative slcli
%postun
%python_uninstall_alternative slcli
%files %{python_files}
%license LICENSE
%doc *.md
%{python_sitelib}/SoftLayer
%{python_sitelib}/softlayer-%{version}.dist-info
%python_alternative %{_bindir}/slcli
%changelog