1
0
Files
python-softlayer/python-softlayer.spec

96 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-softlayer
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Accepting request 785954 from home:pgajdos:python - version update to 5.8.5 ## [5.8.5] - 2012-01-29 - #1195 Fixed an issue with `slcli vs dns-sync --ptr`. Added `slcli hw dns-sync` - #1199 Fix File Storage failback and failover. - #1198 Fix issue where the summary command fails due to None being provided as the datacenter name. - #1208 Added The following commands: - `slcli block volume-limits` - `slcli file volume-limits` - #1209 Add testing/CI for python 3.8. - #1212 Fix vs detail erroring on servers pending cancellation. - #1210 support subnet ACL management through cli + `slcli block subnets-list` + `slcli block subnets-assign` + `slcli block subnets-remove` - #1215 Added documentation for all SLCLI commands. ## [5.8.4] - 2019-12-20 - #1199 Fix block storage failback and failover. - #1202 Order a virtual server private. ## [5.8.3] - 2019-12-11 - #771 Fixed unicode errors in image list (for windows) - #1191 Fixed ordering virtual server dedicated from the CLI - #1155 Fixed capacity restriction when ordering storage quotes - #1192 Fixed hardware detail bandwidth allocation errors. ## [5.8.2] - 2019-11-15 + #1186 Fixed a unit test that could fail if the test took too long to run. + #1183 Added a check to ensure subnet and vlan options are properly added to the order for virtual servers. + #1184 Fixed a readme misspelling. + #1182 Fixed vs reboot unable to resolve vs names. + #1095 Handle missing Fixtures better for unit tests. + #1169 Drop python 2.7 support OBS-URL: https://build.opensuse.org/request/show/785954 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=13
2020-03-17 15:34:17 +00:00
%define skip_python2 1
Name: python-softlayer
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
Version: 6.1.0
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
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
BuildRequires: %{python_module click >= 8.0.4}
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}
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
BuildRequires: %{python_module rich >= 12.3.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.7.0}
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
BuildRequires: %{python_module softlayer-zeep >= 5.0.0}
BuildRequires: %{python_module testtools}
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module urllib3 >= 1.24}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
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
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
Requires: python-rich >= 12.3.0
Requires: python-setuptools
Requires: python-six >= 1.7.0
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
Requires: python-softlayer-zeep >= 5.0.0
Requires: python-typing_extensions
Requires: python-urllib3 >= 1.24
Conflicts: sl
Requires(post): update-alternatives
- Update to 5.9.7: * Fix the network space is empty on subnet detail #1523 * Add a table result for `slcli hw upgrade` output. #1488 * Remove block/file interval option for replica volume. #1497 * `slcli vlan cancel` should report if a vlan is automatic. #1495 * New method to manage how long text is in output tables. #1506 * Fix Tox-analysis issues. #1510 * Changed a testing domain to one that really doesnt exist #1492 * Fix Incomplete notes field for file and block #1484 * Show component versions on hw detail #1470 * Add the firewall information on slcli firewall detail #1475 * Add an --orderBy parameters to call-api #1459 * Add image detail transaction data #1479 * Add routers for each DC in slcli hw create-options #1432 * Add preset datatype in slcli virtual detail #1435 * Add upgrade option to slcli hw. #1437 * Add the Hardware components on "slcli hardware detail" #1452 * Updating author_email to SLDN distro list #1469 * Add the option to add and upgrade the hw disk. #1455 * Add Billing and lastTransaction on slcli virtual detail #1466 * Add pagination to object storage list accounts. #1411 * Add username lookup to slcli object-storage credential #1415 * Add IOPs data to slcli block volume-list. #1418 * Add a flags in the report bandwidth #1420 * Add the option network component by router to slcli hw create. #1422 * Add slcli vs create by router data. #1414 * Add testing and support for python 3.9. #1429 * Checking for TermLength on prices #1428 * Added order lookup command to block and file orders. #1350 * Allow orders without a location if needed #1356 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=21
2021-08-13 06:06:28 +00:00
Requires(postun):update-alternatives
%python_subpackages
%description
This library provides a simple Python client to interact with SoftLayer's XML-RPC API.
%prep
%setup -q -n softlayer-python-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/slcli
%python_clone -a %{buildroot}%{_bindir}/sl
# do not install tests
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
- Update to 5.9.7: * Fix the network space is empty on subnet detail #1523 * Add a table result for `slcli hw upgrade` output. #1488 * Remove block/file interval option for replica volume. #1497 * `slcli vlan cancel` should report if a vlan is automatic. #1495 * New method to manage how long text is in output tables. #1506 * Fix Tox-analysis issues. #1510 * Changed a testing domain to one that really doesnt exist #1492 * Fix Incomplete notes field for file and block #1484 * Show component versions on hw detail #1470 * Add the firewall information on slcli firewall detail #1475 * Add an --orderBy parameters to call-api #1459 * Add image detail transaction data #1479 * Add routers for each DC in slcli hw create-options #1432 * Add preset datatype in slcli virtual detail #1435 * Add upgrade option to slcli hw. #1437 * Add the Hardware components on "slcli hardware detail" #1452 * Updating author_email to SLDN distro list #1469 * Add the option to add and upgrade the hw disk. #1455 * Add Billing and lastTransaction on slcli virtual detail #1466 * Add pagination to object storage list accounts. #1411 * Add username lookup to slcli object-storage credential #1415 * Add IOPs data to slcli block volume-list. #1418 * Add a flags in the report bandwidth #1420 * Add the option network component by router to slcli hw create. #1422 * Add slcli vs create by router data. #1414 * Add testing and support for python 3.9. #1429 * Checking for TermLength on prices #1428 * Added order lookup command to block and file orders. #1350 * Allow orders without a location if needed #1356 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=21
2021-08-13 06:06:28 +00:00
# We do not want TKinter
- update to 6.1.0: * [Rich](https://github.com/Textualize/rich) tables * [Rich](https://github.com/Textualize/rich) Text support * slcli licenses is missing the help text * Add a warning if user orders in a POD that is being closed * updated number of updates in the command account event-detail * Add an orderBy filter to slcli vlan list * Add options to print a specific table in command slcli account events * Update global ip assign/unassign to use new API * Ability to route/unroute subnets * Improved successful response to command - slcli account cancel-item * Improved successful response to command - slcli virtual edit * Improved successful response to command - slcli vlan cancel * Mishandling of domain and hostname data in `slcli account item-detail` * Unable to get VSI details when last TXN is "Software install is finis… * new command on autoscale delete * Incorrect table title is displayed when an Auto Scale Group is scaled to reduce members * slcli autoscale create * Soap transport * fix issue on loadbal order command * Policy is not added when an AutoScale Group is created * When `slcli event-log` not return any event log the command display an error * add new columns on vlan list(premium, tags) * fixed documentation build issues * Improved successful response to command - slcli licenses cancel * update the firewall list * Updated readme * Update `slcli firewall detail` to handle multi vlan firewalls * New command for getting duplicate convert status * Fixed TOX errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-softlayer?expand=0&rev=27
2022-07-07 11:12:04 +00:00
%pytest -k 'not test_getpass_issues1436 and not TestSoapAPICall'
%post
%python_install_alternative slcli
%python_install_alternative sl
%postun
%python_uninstall_alternative slcli
%python_uninstall_alternative sl
%files %{python_files}
%license LICENSE
%doc *.md
%{python_sitelib}/*
%python_alternative %{_bindir}/sl
%python_alternative %{_bindir}/slcli
%changelog