commit 5d9a591b7efe13ca03214bf33cce3cd25bd5a01156b067479d3b573f29c87c47 Author: Markéta Machová Date: Mon Jun 9 10:58:01 2025 +0000 - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-micropipenv?expand=0&rev=5 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/micropipenv-1.6.0.tar.gz b/micropipenv-1.6.0.tar.gz new file mode 100644 index 0000000..2377dbd --- /dev/null +++ b/micropipenv-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:729510303b245754ebe23824987f43e8674b98dc5d00ab187fff8bc213131cf7 +size 202912 diff --git a/python-micropipenv.changes b/python-micropipenv.changes new file mode 100644 index 0000000..41f76b4 --- /dev/null +++ b/python-micropipenv.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon Jun 9 10:56:35 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Thu Dec 7 22:12:49 UTC 2023 - Dirk Müller + +- update to 1.6.0: + * Possibility to override the default index URL via + `MICROPIPENV_DEFAULT_INDEX_URLS` + * Tests with Python 3.12 without setuptools by default in + virtual environments + * Test with pip=23.3.1 + * Fix comparing of packages' names in pyproject.toml and + poetry.lock + * Fix support for poetry main/dev groups + * Fix compatibility with poetry 1.5+ + * Test with pip=23.0.1 + * Fix error for 'only-direct' when package entry has no + explicit 'version' in the Pipfile (#256) + +------------------------------------------------------------------- +Fri Jan 13 22:45:34 UTC 2023 - Matej Cepl + +- Initial packaging effort for micropipenv 1.4.5. diff --git a/python-micropipenv.spec b/python-micropipenv.spec new file mode 100644 index 0000000..a4882a9 --- /dev/null +++ b/python-micropipenv.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-micropipenv +# +# Copyright (c) 2025 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/ +# + + +%define modname micropipenv +%bcond_without libalternatives +Name: python-micropipenv +Version: 1.6.0 +Release: 0 +Summary: Convert various requirements-type files to use with pip-tools +License: LGPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/thoth-station/micropipenv +Source: https://github.com/thoth-station/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-pip +Suggests: python-toml +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module flexmock} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +A simple wrapper around pip to support requirements.txt, Pipenv and Poetry files for containerized applications + +%prep +%autosetup -p1 -n %{modname}-%{version} + +sed -i '1{\@^#!%{_bindir}/env python@d}' micropipenv.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/micropipenv +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%pre +%python_libalternatives_reset_alternative micropipenv + +%files %{python_files} +%doc README.rst +%license CHANGELOG.md LICENSE OWNERS +%python_alternative %{_bindir}/micropipenv +%pycache_only %{python_sitelib}/__pycache__/%{modname}*.pyc +%{python_sitelib}/%{modname}.py +%{python_sitelib}/%{modname}-%{version}*-info + +%changelog