commit 60d2cda47050bf8096d754be03ffafd7af32289e3dee30ded088dd3b62aa363c Author: Dirk Mueller Date: Wed Jan 17 07:27:16 2024 +0000 Accepting request 1139126 from home:rrahl0 I want to maintain python-get-annotations in devel:languages:python OBS-URL: https://build.opensuse.org/request/show/1139126 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-get-annotations?expand=0&rev=1 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/python-get-annotations-0.1.2.tar.gz b/python-get-annotations-0.1.2.tar.gz new file mode 100644 index 0000000..84037b5 --- /dev/null +++ b/python-get-annotations-0.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3f8a9b2a0e1a6ad07aa3dd3a8467edc1cbd3217056632bd37849cafff902004 +size 4670 diff --git a/python-get-annotations.changes b/python-get-annotations.changes new file mode 100644 index 0000000..640471c --- /dev/null +++ b/python-get-annotations.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Dec 16 09:01:46 UTC 2023 - Richard Rahl + +- initial packaging diff --git a/python-get-annotations.spec b/python-get-annotations.spec new file mode 100644 index 0000000..4fb767e --- /dev/null +++ b/python-get-annotations.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-get-annotations +# +# 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/ +# + +%{?sle15_python_module_pythons} +Name: python-get-annotations +Version: 0.1.2 +Release: 0 +Summary: A backport of Python 3.10's inspectget_annotation() function +License: MIT +Group: Development/Libraries/Python +URL: https://github.com/shawwn/get-annotations +Source: https://github.com/shawwn/get-annotations/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# Source: https://files.pythonhosted.org/packages/source/g/get-annotations/get-annotations-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +## needed for tests +BuildRequires: %{python_module pytest} +BuildArch: noarch +%python_subpackages + +%description +%summary. + +%prep +%autosetup -p1 -n get-annotations-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/get_annotations +%{python_sitelib}/get_annotations-%{version}.dist-info + +%changelog