1
0
forked from pool/python-itypes

- 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
This commit is contained in:
Matej Cepl 2021-08-29 19:26:46 +00:00 committed by Git OBS Bridge
parent 093b35ee8e
commit 0350762cb8
7 changed files with 55 additions and 35 deletions

View File

@ -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.

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/PavanTatikonda/itypes.git</param>
<param name="scm">git</param>
<param name="revision">1.2.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<!-- param name="versionrewrite-pattern">v(.*)</param -->
<param name="exclude">.git*</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service mode="disabled" name="tar" />
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/PavanTatikonda/itypes.git</param>
<param name="changesrevision">86b6fb6aea3546fd86eb319bd06a82a655a94a97</param></service></servicedata>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af886f129dea4a2a1e3d36595a2d139589e4dd287f5cab0b40e799ee81570ff1
size 4355
oid sha256:96b5a71a940bc8a4dafecbc1541df2e32dd5d27adf45534f80372c50fefee44b
size 5573

5
itypes.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: itypes
version: 1.2.0
mtime: 1587332795
commit: 86b6fb6aea3546fd86eb319bd06a82a655a94a97

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sun Aug 29 19:21:21 UTC 2021 - Matej Cepl <mcepl@suse.com>
- 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 <adrian.glaubitz@suse.com>

View File

@ -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*