commit db55246615372544b05021348b4e9f09ef749f4519a86772df4af22380329e26 Author: Tomáš Chvátal Date: Sat Mar 3 17:38:09 2018 +0000 Accepting request 582190 from home:sebix - initial package for version 1.0.0 - add add_test_init.patch to fix execution of tests OBS-URL: https://build.opensuse.org/request/show/582190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lexicon?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/add_test_init.patch b/add_test_init.patch new file mode 100644 index 0000000..e63fb39 --- /dev/null +++ b/add_test_init.patch @@ -0,0 +1,13 @@ +From e88d312e9c4f5f650d3584c7adf01a0a261019d2 Mon Sep 17 00:00:00 2001 +From: Sebastian Wagner +Date: Sat, 3 Mar 2018 11:59:11 +0100 +Subject: [PATCH] Add tests/__init__.py to fix spec-2.7 call + +--- + tests/__init__.py | 0 + 1 file changed, 0 insertions(+), 0 deletions(-) + create mode 100644 tests/__init__.py + +diff --git a/tests/__init__.py b/tests/__init__.py +new file mode 100644 +index 0000000..e69de29 diff --git a/lexicon-1.0.0.tar.gz b/lexicon-1.0.0.tar.gz new file mode 100644 index 0000000..d3b487b --- /dev/null +++ b/lexicon-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a2ed9d86142e2d2dfdb431ed434b2c8ae19a2ed6ca2cea07c75d123353dca3e +size 7539 diff --git a/python-lexicon.changes b/python-lexicon.changes new file mode 100644 index 0000000..cb6021a --- /dev/null +++ b/python-lexicon.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Mar 3 10:38:55 UTC 2018 - sebix+novell.com@sebix.at + +- initial package for version 1.0.0 +- add add_test_init.patch to fix execution of tests diff --git a/python-lexicon.spec b/python-lexicon.spec new file mode 100644 index 0000000..1209a83 --- /dev/null +++ b/python-lexicon.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-lexicon +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-lexicon +Version: 1.0.0 +Release: 0 +License: BSD-2-Clause +Summary: Powerful dict subclass(es) with aliasing & attribute access +Url: https://github.com/bitprophet/lexicon +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/l/lexicon/lexicon-%{version}.tar.gz +# PATCH-FIX-UPSTREAM: add_test_init.patch # fix execution of tests +Patch0: https://github.com/bitprophet/lexicon/pull/10.patch#/add_test_init.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +# SECTION tests +BuildRequires: %{python_module six} +BuildRequires: %{python_module spec} +# /SECTION tests +BuildRequires: fdupes +Requires: python-six +BuildArch: noarch + +%python_subpackages + +%description +Lexicon is a simple collection of dict subclasses: + +* AliasDict, a dictionary supporting both simple and complex key aliasing +* AttributeDict, supporting attribute read & write access +* Lexicon, a subclass of both of the above which exhibits both sets of behavior + +%prep +%setup -q -n lexicon-%{version} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand spec-%{$python_bin_suffix} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog