From fc978846ae9045f9530e1ccb35955ebcbfc2f5be9af59fc340333b550b39c445 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 29 Aug 2021 19:12:32 +0000 Subject: [PATCH 1/2] Accepting request 914199 from home:glaubitz:branches:devel:languages:python - Update to 1.2.0 * fix collections deprecation warning OBS-URL: https://build.opensuse.org/request/show/914199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itypes?expand=0&rev=4 --- itypes-1.1.0.tar.gz | 3 --- itypes-1.2.0.tar.gz | 3 +++ python-itypes.changes | 6 ++++++ python-itypes.spec | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 itypes-1.1.0.tar.gz create mode 100644 itypes-1.2.0.tar.gz diff --git a/itypes-1.1.0.tar.gz b/itypes-1.1.0.tar.gz deleted file mode 100644 index 388728f..0000000 --- a/itypes-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6e77bb9fd68a4bfeb9d958fea421802282451a25bac4913ec94db82a899c073 -size 2188 diff --git a/itypes-1.2.0.tar.gz b/itypes-1.2.0.tar.gz new file mode 100644 index 0000000..e65becd --- /dev/null +++ b/itypes-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af886f129dea4a2a1e3d36595a2d139589e4dd287f5cab0b40e799ee81570ff1 +size 4355 diff --git a/python-itypes.changes b/python-itypes.changes index c0c7e73..ee90968 100644 --- a/python-itypes.changes +++ b/python-itypes.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 25 10:16:51 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 1.2.0 + * fix collections deprecation warning + ------------------------------------------------------------------- Mon Feb 25 12:46:09 UTC 2019 - Tomáš Chvátal diff --git a/python-itypes.spec b/python-itypes.spec index 9d2a8e9..218cbee 100644 --- a/python-itypes.spec +++ b/python-itypes.spec @@ -1,7 +1,7 @@ # # spec file for package python-itypes # -# 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-itypes -Version: 1.1.0 +Version: 1.2.0 Release: 0 Summary: Basic immutable container types for Python License: BSD-2-Clause From 7f806c6bc9cee7fe9218d43f68aad5d115ffa162301e14d16e11fde3f046bc44 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 29 Aug 2021 19:26:46 +0000 Subject: [PATCH 2/2] - Enable tests (we need to get source tarball from GitHub directly). - Update to version 1.2.0: * adding long description content type text/markdown * adding read func in setup.py * removing python v3.3 support * fix collections deprecation warning * Create LICENSE.md * Add Python 2/3 trove classifiers to setup.py * Add support for running tests on Travis * Add 'itypes.Object' * Update README.md OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itypes?expand=0&rev=5 --- LICENSE.md | 29 ----------------------------- _service | 18 ++++++++++++++++++ _servicedata | 4 ++++ itypes-1.2.0.tar.gz | 4 ++-- itypes.obsinfo | 5 +++++ python-itypes.changes | 20 ++++++++++++++++++++ python-itypes.spec | 10 ++++++---- 7 files changed, 55 insertions(+), 35 deletions(-) delete mode 100644 LICENSE.md create mode 100644 _service create mode 100644 _servicedata create mode 100644 itypes.obsinfo diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 253596f..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,29 +0,0 @@ -# License - -Copyright © 2017-present, Tom Christie. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/_service b/_service new file mode 100644 index 0000000..98a46f6 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/PavanTatikonda/itypes.git + git + 1.2.0 + @PARENT_TAG@ + + .git* + enable + mcepl@cepl.eu + + + + *.tar + gz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..5d1e77e --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/PavanTatikonda/itypes.git + 86b6fb6aea3546fd86eb319bd06a82a655a94a97 \ No newline at end of file diff --git a/itypes-1.2.0.tar.gz b/itypes-1.2.0.tar.gz index e65becd..a59eaf1 100644 --- a/itypes-1.2.0.tar.gz +++ b/itypes-1.2.0.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:af886f129dea4a2a1e3d36595a2d139589e4dd287f5cab0b40e799ee81570ff1 -size 4355 +oid sha256:96b5a71a940bc8a4dafecbc1541df2e32dd5d27adf45534f80372c50fefee44b +size 5573 diff --git a/itypes.obsinfo b/itypes.obsinfo new file mode 100644 index 0000000..7a04a79 --- /dev/null +++ b/itypes.obsinfo @@ -0,0 +1,5 @@ +name: itypes +version: 1.2.0 +mtime: 1587332795 +commit: 86b6fb6aea3546fd86eb319bd06a82a655a94a97 + diff --git a/python-itypes.changes b/python-itypes.changes index ee90968..0df212c 100644 --- a/python-itypes.changes +++ b/python-itypes.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sun Aug 29 19:21:21 UTC 2021 - Matej Cepl + +- Enable tests (we need to get source tarball from GitHub + directly). + +------------------------------------------------------------------- +Sun Aug 29 19:18:05 UTC 2021 - mcepl@cepl.eu + +- Update to version 1.2.0: + * adding long description content type text/markdown + * adding read func in setup.py + * removing python v3.3 support + * fix collections deprecation warning + * Create LICENSE.md + * Add Python 2/3 trove classifiers to setup.py + * Add support for running tests on Travis + * Add 'itypes.Object' + * Update README.md + ------------------------------------------------------------------- Wed Aug 25 10:16:51 UTC 2021 - John Paul Adrian Glaubitz diff --git a/python-itypes.spec b/python-itypes.spec index 218cbee..27e4e93 100644 --- a/python-itypes.spec +++ b/python-itypes.spec @@ -24,8 +24,8 @@ Summary: Basic immutable container types for Python License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/tomchristie/itypes -Source: https://files.pythonhosted.org/packages/source/i/itypes/itypes-%{version}.tar.gz -Source1: https://raw.githubusercontent.com/tomchristie/itypes/master/LICENSE.md +Source: itypes-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,8 +41,7 @@ Use these in circumstances where it may result in more comprehensible code, or when you want to create custom types with restricted, immutable interfaces. %prep -%setup -q -n itypes-%{version} -cp %{SOURCE1} . +%autosetup -p1 -n itypes-%{version} %build %python_build @@ -51,6 +50,9 @@ cp %{SOURCE1} . %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest tests.py + %files %{python_files} %license LICENSE.md %{python_sitelib}/itypes.py*