|
|
d7914e |
%bcond_with check
|
|
|
d7914e |
|
|
|
d7914e |
Name: micropipenv
|
|
|
0d6e52 |
Version: 1.0.2
|
|
|
d7914e |
Release: 1%{?dist}
|
|
|
d7914e |
Summary: A simple wrapper around pip to support Pipenv and Poetry files
|
|
|
d7914e |
|
|
|
d7914e |
License: LGPLv3+
|
|
|
d7914e |
URL: https://github.com/thoth-station/%{name}
|
|
|
d7914e |
Source0: %{url}/archive/v%{version}.tar.gz
|
|
|
d7914e |
BuildArch: noarch
|
|
|
d7914e |
|
|
|
d7914e |
BuildRequires: python3-devel
|
|
|
d7914e |
BuildRequires: python3-pip
|
|
|
d7914e |
BuildRequires: python3-setuptools
|
|
|
d7914e |
BuildRequires: python3-pytoml
|
|
|
d7914e |
%if %{with check}
|
|
|
d7914e |
# For testing
|
|
|
d7914e |
# Most of the test dependencies are not packaged in RHEL but can be pip-installed
|
|
|
d7914e |
BuildRequires: python3dist(flexmock)
|
|
|
d7914e |
BuildRequires: python3dist(pytest)
|
|
|
d7914e |
BuildRequires: python3dist(pytest-timeout)
|
|
|
d7914e |
BuildRequires: python3dist(pytest-venv)
|
|
|
d7914e |
%endif
|
|
|
d7914e |
|
|
|
d7914e |
%{?python_provide:%python_provide python3-%{name}}
|
|
|
d7914e |
|
|
|
d7914e |
Requires: python3-pip
|
|
|
d7914e |
Requires: python3-setuptools
|
|
|
d7914e |
Requires: python3-pytoml
|
|
|
d7914e |
|
|
|
d7914e |
%description
|
|
|
d7914e |
A lightweight wrapper for pip to support Pipenv and Poetry lock files or
|
|
|
d7914e |
converting them to pip-tools compatible output.
|
|
|
d7914e |
|
|
|
d7914e |
%prep
|
|
|
d7914e |
%autosetup -n %{name}-%{version}
|
|
|
d7914e |
# Remove shebang line from the module
|
|
|
d7914e |
sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
|
|
|
d7914e |
|
|
|
d7914e |
%build
|
|
|
d7914e |
%py3_build
|
|
|
d7914e |
|
|
|
d7914e |
%install
|
|
|
d7914e |
%py3_install
|
|
|
d7914e |
# Switch pip executable from pip to pip3.6
|
|
|
d7914e |
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
|
|
|
d7914e |
|
|
|
d7914e |
%check
|
|
|
d7914e |
%if %{with check}
|
|
|
d7914e |
# - skipped tests requires internet
|
|
|
d7914e |
# - skipped check of pip version - micropipenv is coupled with pip and checks
|
|
|
d7914e |
# if it's using the latest version, but it's being tested upstream with old
|
|
|
d7914e |
# RHEL versions as well, and if the rest of the test suite is passing, there
|
|
|
d7914e |
# should not be issues
|
|
|
d7914e |
%{python3} -m pytest tests -m "not online" -k "not test_check_pip_version"
|
|
|
d7914e |
%endif
|
|
|
d7914e |
|
|
|
d7914e |
%files
|
|
|
d7914e |
%doc README.rst
|
|
|
d7914e |
%license LICENSE*
|
|
|
d7914e |
%{_bindir}/micropipenv
|
|
|
d7914e |
%{python3_sitelib}/%{name}.py
|
|
|
d7914e |
%{python3_sitelib}/__pycache__/%{name}*.pyc
|
|
|
d7914e |
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
|
|
|
d7914e |
|
|
|
d7914e |
%changelog
|
|
|
0d6e52 |
* Fri Dec 11 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.2-1
|
|
|
0d6e52 |
- Update to 1.0.2 to fix tests
|
|
|
0d6e52 |
Resolves: rhbz#1849096
|
|
|
0d6e52 |
|
|
|
d7914e |
* Mon Nov 02 2020 Tomas Orsava <torsava@redhat.com> - 1.0.0-1
|
|
|
d7914e |
- Update to 1.0.0
|
|
|
d7914e |
- Resolves: rhbz#1849096
|
|
|
d7914e |
|
|
|
d7914e |
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 0.6.0-1
|
|
|
d7914e |
- Update to 0.6.0
|
|
|
d7914e |
- Resolves: rhbz#1849096
|
|
|
d7914e |
|
|
|
d7914e |
* Fri Jul 17 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-2
|
|
|
d7914e |
- Initial RHEL8 packaging
|
|
|
d7914e |
- Resolves: rhbz#1849096
|
|
|
d7914e |
|
|
|
d7914e |
* Thu Jul 09 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-1
|
|
|
d7914e |
- Update to 0.4.0 (#1854424)
|
|
|
d7914e |
|
|
|
d7914e |
* Mon Jun 15 2020 Lumír Balhar <lbalhar@redhat.com> - 0.3.0-1
|
|
|
d7914e |
- Update to 0.3.0 (#1846944)
|
|
|
d7914e |
|
|
|
d7914e |
* Fri Jun 05 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-2
|
|
|
d7914e |
- Correct the license tag (GPLv3+ to LGPLv3+)
|
|
|
d7914e |
- Include the actual LICENSE files in the package
|
|
|
d7914e |
|
|
|
d7914e |
* Thu Jun 04 2020 Lumír Balhar <lbalhar@redhat.com> - 0.2.0-1
|
|
|
d7914e |
- Update to 0.2.0 (#1838278, #1841641)
|
|
|
d7914e |
|
|
|
d7914e |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-2
|
|
|
d7914e |
- Rebuilt for Python 3.9
|
|
|
d7914e |
|
|
|
d7914e |
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.6-1
|
|
|
d7914e |
- Update to 0.1.6 (#1831328)
|
|
|
d7914e |
|
|
|
d7914e |
* Tue Apr 07 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.5-1
|
|
|
d7914e |
- Update to 0.1.5 (#1821807)
|
|
|
d7914e |
|
|
|
d7914e |
* Thu Mar 12 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.4-1
|
|
|
d7914e |
- Initial package.
|