From b7aa5124a7c1cdaa4ab6f97250e255e73f858451 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mar 16 2020 13:41:27 +0000 Subject: Initial import (#1813860). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49dfd17 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/v0.1.4.tar.gz diff --git a/micropipenv.spec b/micropipenv.spec new file mode 100644 index 0000000..8a470d6 --- /dev/null +++ b/micropipenv.spec @@ -0,0 +1,57 @@ +Name: micropipenv +Version: 0.1.4 +Release: 1%{?dist} +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 + +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) + +%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 +# Remove license installed to the wrong location via data_files in setup.py +# https://github.com/thoth-station/micropipenv/pull/39 +rm %{buildroot}/usr/LICENSE + +%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 +* Thu Mar 12 2020 Lumír Balhar - 0.1.4-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..1bcc445 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v0.1.4.tar.gz) = f0f03d525633971c3eea11a6a356942958664965159df0887369930aab904f0b55175390c464cb959413bdb8d7103fb888abddcf3582ae1061d5dd88e6109ec1