Sync from SUSE:SLFO:Main python-entrypoints revision d525ffdcb1eb917f003ee80e0db7456e

This commit is contained in:
Adrian Schröter 2024-05-03 20:35:05 +02:00
commit fdc9c7c1e2
4 changed files with 151 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

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

BIN
entrypoints-0.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,53 @@
-------------------------------------------------------------------
Thu Oct 6 14:25:37 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.4:
* Use set comprehension
* Fix link to entry_points
* Treat editable installs as Distributions too
* Document motvation / constrast to pkg_resources
* Switch build-backend to flit_core
-------------------------------------------------------------------
Mon Mar 16 10:30:18 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
- Really execute tests
-------------------------------------------------------------------
Mon Feb 4 17:49:04 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
- update to version 0.3:
Check: https://github.com/takluyver/entrypoints/commits/master
-------------------------------------------------------------------
Tue Dec 4 12:47:39 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Thu Nov 9 18:47:32 UTC 2017 - toddrme2178@gmail.com
- Use proper install so .egg-info is available.
This makes sure other packages can properly detect it.
-------------------------------------------------------------------
Fri Nov 3 05:15:52 UTC 2017 - arun@gmx.de
- specfile:
* use pypi source url
- update to version 0.2.3:
* Clarify license associated with files
-------------------------------------------------------------------
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

72
python-entrypoints.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package python-entrypoints
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-entrypoints
Version: 0.4
Release: 0
Summary: Discover and load entry points from installed packages
License: MIT
URL: https://github.com/takluyver/entrypoints
Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with python2}
BuildRequires: python-configparser >= 3.5
%endif
%ifpython2
Requires: python-configparser >= 3.5
%endif
%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
%setup -q -n entrypoints-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%{python_sitelib}/entrypoints.py*
%pycache_only %{python_sitelib}/__pycache__/entrypoints*.py*
%{python_sitelib}/entrypoints-%{version}.dist-info
%changelog