Compare commits

...

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

View File

@ -2,7 +2,7 @@
Name: micropipenv
Version: 1.0.2
Release: 1%{?dist}
Release: 5%{?dist}
Summary: A simple wrapper around pip to support Pipenv and Poetry files
License: LGPLv3+
@ -11,9 +11,9 @@ Source0: %{url}/archive/v%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-pytoml
BuildRequires: python3dist(pip)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(toml)
%if %{with check}
# For testing
# Most of the test dependencies are not packaged in RHEL but can be pip-installed
@ -25,9 +25,9 @@ BuildRequires: python3dist(pytest-venv)
%{?python_provide:%python_provide python3-%{name}}
Requires: python3-pip
Requires: python3-setuptools
Requires: python3-pytoml
Requires: python3dist(pip)
Requires: python3dist(setuptools)
Requires: python3dist(toml)
%description
A lightweight wrapper for pip to support Pipenv and Poetry lock files or
@ -43,8 +43,6 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
%install
%py3_install
# Switch pip executable from pip to pip3.6
sed -i 's/_PIP_BIN = os.getenv("MICROPIPENV_PIP_BIN", "pip")/_PIP_BIN = os.getenv("MICROPIPENV_PIP_BIN", "pip3.6")/' %{buildroot}%{python3_sitelib}/micropipenv.py
%check
%if %{with check}
@ -53,33 +51,48 @@ sed -i 's/_PIP_BIN = os.getenv("MICROPIPENV_PIP_BIN", "pip")/_PIP_BIN = os.geten
# if it's using the latest version, but it's being tested upstream with old
# RHEL versions as well, and if the rest of the test suite is passing, there
# should not be issues
%{python3} -m pytest tests -m "not online" -k "not test_check_pip_version"
%pytest -m "not online" -k "not test_check_pip_version"
%endif
%files
%doc README.rst
%license LICENSE*
%{_bindir}/micropipenv
%{python3_sitelib}/%{name}.py
%{python3_sitelib}/__pycache__/%{name}*.pyc
%pycached %{python3_sitelib}/%{name}.py
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Mar 01 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.0.2-3
- Disable the test run under RHEL due to missing dependencies
Resolves: rhbz#1932454
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Dec 11 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.2-1
- Update to 1.0.2 to fix tests
Resolves: rhbz#1849096
- Update to 1.0.2 (#1906430)
* Mon Nov 02 2020 Tomas Orsava <torsava@redhat.com> - 1.0.0-1
- Update to 1.0.0
- Resolves: rhbz#1849096
* Tue Nov 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.1-1
- Update to 1.0.1
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 0.6.0-1
- Update to 0.6.0
- Resolves: rhbz#1849096
* Fri Oct 02 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-1
- Update to 1.0.0 (#1884346)
* Fri Jul 17 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-2
- Initial RHEL8 packaging
- Resolves: rhbz#1849096
* Thu Sep 03 2020 Lumír Balhar <lbalhar@redhat.com> - 0.6.0-1
- Update to 0.6.0 (#1875250)
* Thu Jul 30 2020 Lumír Balhar <lbalhar@redhat.com> - 0.5.1-1
- Update to 0.5.1 (#1859995)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jul 09 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-1
- Update to 0.4.0 (#1854424)