From 5b7a07a3f9c2b72378f2f82632f35f2650e50862aa0d5059e1bc59f7076025d6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 1 Jun 2021 07:58:31 +0000 Subject: [PATCH] Accepting request 896589 from home:pgajdos:python - version update to 0.8.1 * Fixed bug where built-in interface dict overwrote `interface` methods from Almanac (`interface.search`, `interface.edit`). The `Resource` attribute `interface` is renamed `_interface`. * Switch to using requests * Allow library to be used from a zip archive * Deprecated parameters are now set to optional * Fixed bug where instance attribute was shadowing API endpoint * Update interfaces.json * Update README - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/896589 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phabricator?expand=0&rev=3 --- phabricator-0.7.0.tar.gz | 3 --- phabricator-0.8.1.tar.gz | 3 +++ python-phabricator.changes | 15 +++++++++++++++ python-phabricator.spec | 28 +++++++++++++++------------- 4 files changed, 33 insertions(+), 16 deletions(-) delete mode 100644 phabricator-0.7.0.tar.gz create mode 100644 phabricator-0.8.1.tar.gz diff --git a/phabricator-0.7.0.tar.gz b/phabricator-0.7.0.tar.gz deleted file mode 100644 index 94a73f7..0000000 --- a/phabricator-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b0417ff6682f898019d40b0ff5fc41bc213440c416ce4ad21ff2743e0e9bb2b -size 19558 diff --git a/phabricator-0.8.1.tar.gz b/phabricator-0.8.1.tar.gz new file mode 100644 index 0000000..09a82ed --- /dev/null +++ b/phabricator-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7988762520b5f1ea3f8ab2cef42a92b4357283458250195ac12f94b12e57ba0 +size 20908 diff --git a/python-phabricator.changes b/python-phabricator.changes index c9aed25..4cb1ed2 100644 --- a/python-phabricator.changes +++ b/python-phabricator.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jun 1 07:51:34 UTC 2021 - pgajdos@suse.com + +- version update to 0.8.1 + * Fixed bug where built-in interface dict overwrote `interface` + methods from Almanac (`interface.search`, `interface.edit`). + The `Resource` attribute `interface` is renamed `_interface`. + * Switch to using requests + * Allow library to be used from a zip archive + * Deprecated parameters are now set to optional + * Fixed bug where instance attribute was shadowing API endpoint + * Update interfaces.json + * Update README +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Thu May 2 02:00:01 UTC 2019 - Simon Lees diff --git a/python-phabricator.spec b/python-phabricator.spec index 1deafdb..38051ab 100644 --- a/python-phabricator.spec +++ b/python-phabricator.spec @@ -1,7 +1,7 @@ # # spec file for package python-phabricator # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,32 +12,35 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-phabricator -Version: 0.7.0 +Version: 0.8.1 Release: 0 -License: Apache-2.0 Summary: Phabricator API Bindings -Url: http://github.com/disqus/python-phabricator +License: Apache-2.0 Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/p/phabricator/phabricator-%{version}.tar.gz -BuildRequires: python-rpm-macros -# For tests -BuildRequires: %{python_module mock} +URL: https://github.com/disqus/python-phabricator +Source: https://github.com/disqus/python-phabricator/archive/refs/tags/%{version}.tar.gz#/phabricator-%{version}.tar.gz BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module requests >= 2.22} +BuildRequires: %{python_module responses >= 0.12} +# /SECTION BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.22 BuildArch: noarch - %python_subpackages %description Phabricator API Bindings %prep -%setup -q -n phabricator-%{version} +%setup -q -n python-phabricator-%{version} %build %python_build @@ -47,8 +50,7 @@ Phabricator API Bindings %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Tests currently broken -#%%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %doc README.rst