From 7ebcf8293f28a346348de200aee7360955708147005be4d04a9131201ecd0a11 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 26 Feb 2016 19:28:27 +0000 Subject: [PATCH] - Initial packaging OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-positional?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + positional-1.0.1.tar.gz | 3 +++ python-positional.changes | 5 ++++ python-positional.spec | 53 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 positional-1.0.1.tar.gz create mode 100644 python-positional.changes create mode 100644 python-positional.spec 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/positional-1.0.1.tar.gz b/positional-1.0.1.tar.gz new file mode 100644 index 0000000..264d6e9 --- /dev/null +++ b/positional-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54a73f3593c6e30e9cdd0a727503b7c5dddbb75fb78bb681614b08dfde2bc444 +size 16398 diff --git a/python-positional.changes b/python-positional.changes new file mode 100644 index 0000000..517041e --- /dev/null +++ b/python-positional.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Feb 26 19:28:13 UTC 2016 - dmueller@suse.com + +- Initial packaging + diff --git a/python-positional.spec b/python-positional.spec new file mode 100644 index 0000000..d9e756f --- /dev/null +++ b/python-positional.spec @@ -0,0 +1,53 @@ +# +# spec file for package python-positional +# +# Copyright (c) 2016 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/ +# + + +Name: python-positional +Version: 1.0.1 +Release: 0 +Summary: Library to enforce positional or key-word arguments +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://github.com/morganfainberg/positional +Source: https://pypi.python.org/packages/source/p/positional/positional-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-pbr +BuildRequires: python-setuptools +BuildArch: noarch + +%description +`positional` provides a decorator which enforces only some args may be passed +positionally. The idea and some of the code was taken from the oauth2 client +of the google-api client. + +%prep +%setup -q -n positional-%{version} + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc LICENSE +%doc README.rst +%{python_sitelib}/positional +%{python_sitelib}/positional*egg-info + +%changelog