From 6403013bd486b47ee2ecf1ca7dce921d8a92f7d0cc32b9995d9f080b6e436198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 18 Mar 2020 17:42:01 +0000 Subject: [PATCH] Accepting request 786210 from home:mcalabkova:branches:devel:languages:python - Update to version 2.3.0 * Distribute type module maker for mypy * Fix memory leak on dynamically created types * Make Dataloader keep cache object * Fix Python 3.7 deprecation warnings * Make Promise and Dataloader thread-safe OBS-URL: https://build.opensuse.org/request/show/786210 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-promise?expand=0&rev=7 --- promise-2.2.1.tar.gz | 3 --- promise-2.3.0.tar.gz | 3 +++ python-promise.changes | 10 ++++++++++ python-promise.spec | 21 ++++++++++++++++++--- 4 files changed, 31 insertions(+), 6 deletions(-) delete mode 100644 promise-2.2.1.tar.gz create mode 100644 promise-2.3.0.tar.gz diff --git a/promise-2.2.1.tar.gz b/promise-2.2.1.tar.gz deleted file mode 100644 index 6959051..0000000 --- a/promise-2.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:348f5f6c3edd4fd47c9cd65aed03ac1b31136d375aa63871a57d3e444c85655c -size 19475 diff --git a/promise-2.3.0.tar.gz b/promise-2.3.0.tar.gz new file mode 100644 index 0000000..36c6ee0 --- /dev/null +++ b/promise-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9017f2b949a49fdf65a1ee1f54ff4cb08181ea19ea2c1034cd13c767cfdddf8 +size 28147 diff --git a/python-promise.changes b/python-promise.changes index 5907b36..b7a923d 100644 --- a/python-promise.changes +++ b/python-promise.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Mar 18 15:18:21 UTC 2020 - Marketa Calabkova + +- Update to version 2.3.0 + * Distribute type module maker for mypy + * Fix memory leak on dynamically created types + * Make Dataloader keep cache object + * Fix Python 3.7 deprecation warnings + * Make Promise and Dataloader thread-safe + ------------------------------------------------------------------- Mon Feb 11 12:12:50 UTC 2019 - Tomáš Chvátal diff --git a/python-promise.spec b/python-promise.spec index 7c37423..5338526 100644 --- a/python-promise.spec +++ b/python-promise.spec @@ -1,7 +1,7 @@ # # spec file for package python-promise # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,28 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 +%bcond_without python3 Name: python-promise -Version: 2.2.1 +Version: 2.3.0 Release: 0 Summary: Promises/A+ implementation for Python License: MIT Group: Development/Languages/Python URL: https://github.com/syrusakbary/promise -Source: https://files.pythonhosted.org/packages/source/p/promise/promise-%{version}.tar.gz +Source: https://github.com/syrusakbary/promise/archive/v%{version}.tar.gz#/promise-%{version}.tar.gz +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +%if %{with python2} +BuildRequires: python2-futures +BuildRequires: python2-typing +%endif +%if %{with python3} +BuildRequires: python3-pytest-asyncio +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six @@ -48,6 +60,9 @@ This is an implementation of Promises in Python %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE