From 673d78b6f2521c8b6d0655a3b3199a9cf2a9d56f346423412046b6667b44d9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:32:16 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-hatch-requirements-txt revision 435f46f23bd4ced00163b9d1626b9a4c --- .gitattributes | 23 ++++++++ _multibuild | 3 + hatch_requirements_txt-0.4.1.tar.gz | 3 + python-hatch-requirements-txt.changes | 4 ++ python-hatch-requirements-txt.spec | 81 +++++++++++++++++++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 hatch_requirements_txt-0.4.1.tar.gz create mode 100644 python-hatch-requirements-txt.changes create mode 100644 python-hatch-requirements-txt.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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/hatch_requirements_txt-0.4.1.tar.gz b/hatch_requirements_txt-0.4.1.tar.gz new file mode 100644 index 0000000..62abece --- /dev/null +++ b/hatch_requirements_txt-0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69383f2c2a72b68dff0ec564358280bed8e2a5e9971e9871b8ff4d7c978ec9f5 +size 28143 diff --git a/python-hatch-requirements-txt.changes b/python-hatch-requirements-txt.changes new file mode 100644 index 0000000..ac881b4 --- /dev/null +++ b/python-hatch-requirements-txt.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jul 26 07:14:38 UTC 2024 - Steve Kowalik + +- Initial release of 0.4.1 diff --git a/python-hatch-requirements-txt.spec b/python-hatch-requirements-txt.spec new file mode 100644 index 0000000..e5d6572 --- /dev/null +++ b/python-hatch-requirements-txt.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-hatch-requirements-txt +# +# Copyright (c) 2024 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/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-hatch-requirements-txt%{psuffix} +Version: 0.4.1 +Release: 0 +Summary: Hatchling plugin to read project dependencies from requirements.txt +License: MIT +URL: https://github.com/repo-helper/hatch-requirements-txt +Source: https://github.com/repo-helper/hatch-requirements-txt/archive/refs/tags/v%{version}.tar.gz#/hatch_requirements_txt-%{version}.tar.gz +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: python-rpm-macros +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module coincidence} +BuildRequires: %{python_module hatch-requirements-txt = %{version}} +BuildRequires: %{python_module pkginfo} +BuildRequires: %{python_module pytest-timeout} +BuildRequires: %{python_module pytest} +%endif +# /SECTION +BuildRequires: fdupes +Requires: python-hatchling >= 0.21.0 +Requires: python-packaging >= 21.3 +BuildArch: noarch +%python_subpackages + +%description +Hatchling plugin to read project dependencies from requirements.txt + +%prep +%autosetup -p1 -n hatch-requirements-txt-%{version} + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +# Broken upstream +%pytest -k 'not (test_not_dynamic_but_filename_defined or test_not_dynamic_but_files_defined)' +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/hatch_requirements_txt +%{python_sitelib}/hatch_requirements_txt-%{version}.dist-info +%endif + +%changelog