micropipenv/micropipenv.spec

67 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-03-16 13:37:41 +00:00
Name: micropipenv
2020-06-04 10:00:28 +00:00
Version: 0.2.0
Release: 1%{?dist}
2020-03-16 13:37:41 +00:00
Summary: A simple wrapper around pip to support Pipenv and Poetry files
License: GPLv3+
URL: https://github.com/thoth-station/%{name}
Source0: %{url}/archive/v%{version}.tar.gz
BuildArch: noarch
2020-05-05 17:01:30 +00:00
2020-03-16 13:37:41 +00:00
BuildRequires: python3-devel
BuildRequires: python3dist(pip)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(toml)
# For testing
BuildRequires: python3dist(flexmock)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-timeout)
%{?python_provide:%python_provide python3-%{name}}
2020-05-05 17:01:30 +00:00
Requires: python3dist(pip)
2020-03-16 13:37:41 +00:00
Requires: python3dist(setuptools)
Requires: python3dist(toml)
%description
A lightweight wrapper for pip to support Pipenv and Poetry lock files or
converting them to pip-tools compatible output.
%prep
%autosetup -n %{name}-%{version}
# Remove shebang line from the module
sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
%build
%py3_build
%install
%py3_install
%check
# test_install requires pytest-venv not available in Fedora
%{python3} -m pytest tests -k "not test_install"
%files
%doc README.rst
%license LICENSE
%{_bindir}/micropipenv
%pycached %{python3_sitelib}/%{name}.py
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
%changelog
2020-06-04 10:00:28 +00:00
* Thu Jun 04 2020 Lumír Balhar <lbalhar@redhat.com> - 0.2.0-1
- Update to 0.2.0 (#1838278, #1841641)
2020-05-26 00:52:53 +00:00
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-2
- Rebuilt for Python 3.9
2020-05-05 17:01:30 +00:00
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.6-1
- Update to 0.1.6 (#1831328)
2020-04-07 18:48:17 +00:00
* Tue Apr 07 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.5-1
- Update to 0.1.5 (#1821807)
2020-03-16 13:37:41 +00:00
* Thu Mar 12 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.4-1
- Initial package.