From 4e9f60637576cf888e41f455f68a24d93fe1f94b2b6587a88d51b1570dcc141e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:21:42 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + 2.1.2.tar.gz | 3 ++ python-transip.changes | 62 +++++++++++++++++++++++++++++++++++ python-transip.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 2.1.2.tar.gz create mode 100644 python-transip.changes create mode 100644 python-transip.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/2.1.2.tar.gz b/2.1.2.tar.gz new file mode 100644 index 0000000..2160fff --- /dev/null +++ b/2.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41b5a2ae4417f8fe6aa0d3fffd83c3253b68b267a945c9da3380fb5e1096d7ef +size 27064 diff --git a/python-transip.changes b/python-transip.changes new file mode 100644 index 0000000..3a94e06 --- /dev/null +++ b/python-transip.changes @@ -0,0 +1,62 @@ +------------------------------------------------------------------- +Wed Jun 4 06:13:59 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Sat Jun 4 23:51:37 UTC 2022 - Dirk Müller + +- 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 + +- %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 + +- 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 diff --git a/python-transip.spec b/python-transip.spec new file mode 100644 index 0000000..e6656ec --- /dev/null +++ b/python-transip.spec @@ -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