Blob Blame History Raw
Name:           micropipenv
Version:        0.1.4
Release:        1%{?dist}
Summary:        A simple wrapper around pip to support Pipenv and Poetry files

License:        GPLv3+
URL:  {name}
Source0:        %{url}/archive/v%{version}.tar.gz
BuildArch:      noarch
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}}

Requires:       python3dist(pip) 
Requires:       python3dist(setuptools)
Requires:       python3dist(toml)

A lightweight wrapper for pip to support Pipenv and Poetry lock files or
converting them to pip-tools compatible output.

%autosetup -n %{name}-%{version}
# Remove shebang line from the module
sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py


# Remove license installed to the wrong location via data_files in
rm %{buildroot}/usr/LICENSE

# test_install requires pytest-venv not available in Fedora
%{python3} -m pytest tests -k "not test_install"

%doc README.rst
%license LICENSE
%pycached %{python3_sitelib}/%{name}.py

* Thu Mar 12 2020 Lumír Balhar <> - 0.1.4-1
- Initial package.