From 15b7d75189cbd9ed863e05970bf1d2c3cfdafea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 6 Jun 2023 15:11:18 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-installer revision f3a81fd9c6af38577e177d80423dc6aa --- .gitattributes | 23 ++++++++++++ _multibuild | 3 ++ installer-0.7.0.tar.gz | 3 ++ python-installer.changes | 63 +++++++++++++++++++++++++++++++ python-installer.spec | 80 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 172 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 installer-0.7.0.tar.gz create mode 100644 python-installer.changes create mode 100644 python-installer.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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..83bd4e9 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/installer-0.7.0.tar.gz b/installer-0.7.0.tar.gz new file mode 100644 index 0000000..b75f191 --- /dev/null +++ b/installer-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a26d3e3116289bb08216e0d0f7d925fcef0b0194eedfa0c944bcaaa106c4b631 +size 474349 diff --git a/python-installer.changes b/python-installer.changes new file mode 100644 index 0000000..b8e08f6 --- /dev/null +++ b/python-installer.changes @@ -0,0 +1,63 @@ +------------------------------------------------------------------- +Wed Apr 26 20:44:18 UTC 2023 - Dirk Müller + +- build with any python3 interpreter installed in the buildenv + +------------------------------------------------------------------- +Mon Apr 24 16:05:22 UTC 2023 - Daniel Garcia + +- Use python311 to build if sle15_python_module_pythons is defined. + +------------------------------------------------------------------- +Fri Apr 21 12:26:59 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Mar 28 03:51:53 UTC 2023 - Steve Kowalik + +- Update to 0.7.0: + * Improve handling of non-normalized .dist-info folders (#168) + * Explicitly use policy=compat32 (#163) + * Normalize RECORD file paths when parsing (#152) + * Search wheels for .dist-info directories (#137) + * Separate validation of RECORD (#147, #167) +- Only build the wheel once. + +------------------------------------------------------------------- +Sat Feb 11 21:45:29 UTC 2023 - Ben Greiner + +- Don't build for Python 3.6: It requires importlib.resources + +------------------------------------------------------------------- +Tue Dec 13 15:40:26 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.6.0 + * Add support for Python 3.11 + +------------------------------------------------------------------- +Wed Jun 15 01:51:41 UTC 2022 - Steve Kowalik + +- Update to 0.5.1: + * No upstream changelog. +- Drop importlib-resources and setuptools from BuildRequires, we can + bootstrap this package using only flit-core and itself. +- Inject multibuild to aid bootstrapping. +- Drop patch remove-mock.patch: + * Included upstream. + +------------------------------------------------------------------- +Mon Feb 21 08:58:28 UTC 2022 - Andreas Schneider + +- Add missing BR for importlib_resources + +------------------------------------------------------------------- +Mon Feb 21 08:52:31 UTC 2022 - Andreas Schneider + +- Skip building for python2 + +------------------------------------------------------------------- +Thu Jan 20 19:56:19 UTC 2022 - Matej Cepl + +- Initial packaging effort for installer 0.3.0. (the highest + supported version for PDM). diff --git a/python-installer.spec b/python-installer.spec new file mode 100644 index 0000000..f8424aa --- /dev/null +++ b/python-installer.spec @@ -0,0 +1,80 @@ +# +# spec file +# +# 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/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define pkg_suffix -test +%bcond_without test +%else +%define pkg_suffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-installer%{pkg_suffix} +Version: 0.7.0 +Release: 0 +Summary: A library for installing Python wheels +License: MIT +URL: https://github.com/pypa/installer +Source: https://files.pythonhosted.org/packages/source/i/installer/installer-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module flit-core} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module installer} +BuildRequires: %{python_module pytest} +%endif +BuildArch: noarch +%python_subpackages + +%description +A library for installing Python wheels. + +%prep +%autosetup -p1 -n installer-%{version} + +%if !%{with test} +%build + +export apython3=$(find %_bindir -name 'python3*[0-9]' -print -quit) +$apython3 -m flit_core.wheel + +%endif + +%if !%{with test} +%install +export PYTHONPATH=src +%python_expand $python -m installer -d %{buildroot} dist/*.whl +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/installer +%{python_sitelib}/installer-%{version}.dist-info +%endif + +%changelog