From 07975239675c26cc88599691a44526d628cdefb36c15a4f67a96c171e9567341 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 31 Mar 2017 02:09:34 +0000 Subject: [PATCH] Accepting request 483941 from home:TheBlackCat:branches:devel:languages:python single-spec version of python3-entrypoints OBS-URL: https://build.opensuse.org/request/show/483941 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoints?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + 0.2.2.tar.gz | 3 ++ python-entrypoints.changes | 11 ++++++ python-entrypoints.spec | 81 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0.2.2.tar.gz create mode 100644 python-entrypoints.changes create mode 100644 python-entrypoints.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/0.2.2.tar.gz b/0.2.2.tar.gz new file mode 100644 index 0000000..4c98700 --- /dev/null +++ b/0.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e54b5df8bb971507278c65df96e6486cf4aea0cdac384d0102ea0339e0a4f82b +size 11162 diff --git a/python-entrypoints.changes b/python-entrypoints.changes new file mode 100644 index 0000000..bc2f01d --- /dev/null +++ b/python-entrypoints.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun Jul 10 17:21:54 UTC 2016 - arun@gmx.de + +- update to version 0.2.2: + * Import configparser from backports on Python 2 + +------------------------------------------------------------------- +Tue May 17 19:45:05 UTC 2016 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-entrypoints.spec b/python-entrypoints.spec new file mode 100644 index 0000000..d965fe3 --- /dev/null +++ b/python-entrypoints.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-entrypoints +# +# Copyright (c) 2017 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-entrypoints +Version: 0.2.2 +Release: 0 +Summary: Discover and load entry points from installed packages +License: MIT +Group: Development/Languages/Python +Url: https://github.com/takluyver/entrypoints +Source0: https://github.com/takluyver/entrypoints/archive/%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +%ifpython2 +BuildRequires: python-configparser +Requires: python-configparser +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages + +%description +Entry points are a way for Python packages to advertise objects with +some common interface. The most common examples are console_scripts +entry points, which define shell commands by identifying a Python +function to run. + +Groups of entry points, such as console_scripts, point to objects with +similar interfaces. An application might use a group to find its +plugins, or multiple groups if it has different kinds of plugins. + +%prep +%setup0 -q -n entrypoints-%{version} + +%build +# We don't do anything here + +%install +%{python_expand mkdir -p %{buildroot}%{$python_sitelib} +cp -r entrypoints.py %{buildroot}%{$python_sitelib} +} + +%if %have_python2 +%py_compile %{buildroot}%{python2_sitelib} +%endif + +%if %have_python3 +%py3_compile %{buildroot}%{python3_sitelib} +%endif + +%check +pushd tests +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python test_entrypoints.py +} +popd + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE +%{python_sitelib}/* + +%changelog