From 0350762cb8c2770b3e5283cf42111b33bc3800685b3cc603cfa18e52bdd12931 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 29 Aug 2021 19:26:46 +0000 Subject: [PATCH] - 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*