Sync from SUSE:ALP:Source:Standard:1.0 python-entrypoint2 revision a76f2b562e03a0b154a654a7a11fa9fd

This commit is contained in:
Adrian Schröter 2023-06-06 15:09:06 +02:00
commit 405afe2917
5 changed files with 198 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

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
entrypoint2-1.1-gh.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,86 @@
-------------------------------------------------------------------
Fri Jan 6 12:31:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.1:
* Python 3.10 support
* Python 3.11 support
* support positional list for python 3.9+
* type hints added
-------------------------------------------------------------------
Sat Jan 15 15:38:12 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.2.4:
* drop python 2x support
-------------------------------------------------------------------
Thu Sep 17 11:06:16 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 0.2.1:
* readme conversion to markdown
* pytest and readme updates
* code formatting improvements
- remove remove_nose.patch (upstream)
-------------------------------------------------------------------
Fri Aug 14 14:07:27 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Add missing runtime dependencies
- Remove build dependency on coverage
-------------------------------------------------------------------
Fri Mar 27 13:08:03 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- Use pytest instead of nose
- Add remove_nose.patch
-------------------------------------------------------------------
Mon Mar 2 16:33:16 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to version 0.2
* remove py34 support
* drop py35, add py38
* few docs and test fixes
- Launch tests using multibuild
-------------------------------------------------------------------
Fri Aug 10 13:52:40 UTC 2018 - tchvatal@suse.com
- Drop python-argparse dependency that is not needed
-------------------------------------------------------------------
Tue Sep 5 23:48:55 UTC 2017 - jengelh@inai.de
- Ensure neutrality of description.
-------------------------------------------------------------------
Thu Aug 24 13:38:12 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Thu Oct 24 11:05:18 UTC 2013 - speilicke@suse.com
- Require python-setuptools instead of distribute (upstreams merged)
-------------------------------------------------------------------
Sun Jan 13 14:56:45 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Fri Jun 15 15:21:26 UTC 2012 - os-dev@jacraig.com
- Update to 0.0.6. Upstream provides no changelog, but looking at the (4)
commits on github since 0.0.5, I see these changes:
* Update documentaiton
* Support repeated arguments
* Use PEP8 formatting
- Add Requires entries for python-argparse and -decorator
-------------------------------------------------------------------
Mon Mar 26 11:39:09 UTC 2012 - saschpe@suse.de
- Initial version

83
python-entrypoint2.spec Normal file
View File

@ -0,0 +1,83 @@
#
# spec file for package python-entrypoint2
#
# Copyright (c) 2023 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-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%global skip_python2 1
Name: python-entrypoint2
Version: 1.1
Release: 0
Summary: Command-line interface for python modules
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/ponty/entrypoint2
Source: https://github.com/ponty/entrypoint2/archive/%{version}.tar.gz#/entrypoint2-%{version}-gh.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-EasyProcess
Requires: python-decorator
Requires: python-path.py
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module EasyProcess}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module entrypoint2 = %{version}}
BuildRequires: %{python_module path.py}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
entrypoint2 is a command-line interface for python modules, forked
off entrypoint.
%prep
%setup -q -n entrypoint2-%{version}
%if !%{with test}
%build
%python_build
%endif
%if !%{with test}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest tests/test_all.py
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/*
%endif
%changelog