commit e00cefccc3f8db1519a3c0f0b17a9dabb41f8619cc431fa9a96d143f792c9826 Author: Adrian Schröter Date: Fri May 3 20:34:45 2024 +0200 Sync from SUSE:SLFO:Main python-entrypoint2 revision a76f2b562e03a0b154a654a7a11fa9fd 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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/entrypoint2-1.1-gh.tar.gz b/entrypoint2-1.1-gh.tar.gz new file mode 100644 index 0000000..e5b2951 --- /dev/null +++ b/entrypoint2-1.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5131ef87586beadb1df79dbbb7283b651b815d81aba6cb49792493be85aae3ab +size 15480 diff --git a/python-entrypoint2.changes b/python-entrypoint2.changes new file mode 100644 index 0000000..234973c --- /dev/null +++ b/python-entrypoint2.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Fri Jan 6 12:31:56 UTC 2023 - Dirk Müller + +- 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 + +- update to 0.2.4: + * drop python 2x support + +------------------------------------------------------------------- +Thu Sep 17 11:06:16 UTC 2020 - Dirk Mueller + +- 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 + +- Add missing runtime dependencies +- Remove build dependency on coverage + +------------------------------------------------------------------- +Fri Mar 27 13:08:03 UTC 2020 - Paolo Stivanin + +- Use pytest instead of nose +- Add remove_nose.patch + +------------------------------------------------------------------- +Mon Mar 2 16:33:16 UTC 2020 - Marketa Calabkova + +- 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 + + diff --git a/python-entrypoint2.spec b/python-entrypoint2.spec new file mode 100644 index 0000000..80d42da --- /dev/null +++ b/python-entrypoint2.spec @@ -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