14
0
2025-06-09 10:58:01 +00:00
committed by Git OBS Bridge
commit 5d9a591b7e
5 changed files with 128 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
micropipenv-1.6.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:729510303b245754ebe23824987f43e8674b98dc5d00ab187fff8bc213131cf7
size 202912

View File

@@ -0,0 +1,26 @@
-------------------------------------------------------------------
Mon Jun 9 10:56:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Dec 7 22:12:49 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <mcepl@suse.com>
- Initial packaging effort for micropipenv 1.4.5.

75
python-micropipenv.spec Normal file
View File

@@ -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