15
0

- Switch to pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transip?expand=0&rev=20
This commit is contained in:
2025-06-04 06:21:42 +00:00
committed by Git OBS Bridge
commit 4e9f606375
5 changed files with 162 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
2.1.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:41b5a2ae4417f8fe6aa0d3fffd83c3253b68b267a945c9da3380fb5e1096d7ef
size 27064

62
python-transip.changes Normal file
View File

@@ -0,0 +1,62 @@
-------------------------------------------------------------------
Wed Jun 4 06:13:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Sat Jun 4 23:51:37 UTC 2022 - Dirk Müller <dmueller@suse.com>
- move to suds
-------------------------------------------------------------------
Tue Apr 19 12:08:40 UTC 2022 - pgajdos@suse.com
- python-mock is not required for build
-------------------------------------------------------------------
Mon May 18 09:10:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Apr 17 11:00:06 UTC 2020 - pgajdos@suse.com
- version update to 2.1.2
* Fix --api-key CLI argument.
* Test on Python 3.7 & 3.8.
-------------------------------------------------------------------
Wed Mar 25 15:11:57 UTC 2020 - pgajdos@suse.com
- version update to 2.1.1
* Fixed syntax problem in README.rst.
* Added a workaround for backwards incompatible change in the TransIP SOAP API.
* Fixed bug in `DomainService.get_info`.
* Add `remove_dns_entries` and `add_dns_entries` functions on DomainService.
-------------------------------------------------------------------
Mon Apr 15 08:53:36 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 2.0.0
* Fixed ordering VPS
* Added option to clone VPS
* Added availability zones for VPS
* Added option to specify private key directly
* Changed default cryptography library from rsa to cryptography
-------------------------------------------------------------------
Mon Apr 16 14:45:10 UTC 2018 - jengelh@inai.de
- Replace future wishes by present state.
-------------------------------------------------------------------
Sun Apr 15 15:15:47 UTC 2018 - tchvatal@suse.com
- Add missing dependencies
- Use github tarball in order to allow tests and get license file
-------------------------------------------------------------------
Fri Sep 22 17:26:31 UTC 2017 - daniel.molkentin@suse.com
- Initial checkin

73
python-transip.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package python-transip
#
# 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/
#
Name: python-transip
Version: 2.1.2
Release: 0
Summary: TransIP API Connector
License: MIT
URL: https://github.com/benkonrath/transip-api
Source: https://github.com/benkonrath/transip-api/archive/%{version}.tar.gz
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module suds}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography
Requires: python-requests
Requires: python-suds
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
This library implements part of the TransIP API in Python.
%prep
%setup -q -n transip-api-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/transip-api
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# testConstructor needs network connection
%pytest -k 'not (test_constructor or testConstructor)'
%post
%python_install_alternative transip-api
%postun
%python_uninstall_alternative transip-api
%files %{python_files}
%license LICENSE
%{python_sitelib}/transip
%{python_sitelib}/transip-%{version}.dist-info
%python_alternative %{_bindir}/transip-api
%changelog