From 8cc53041d65d9bdc4c7b12cf3f61c5782cb925f6 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 11:23:21 -0400 Subject: [PATCH] Auto sync2gitlab import of micropipenv-1.0.2-1.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - micropipenv.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 micropipenv.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..074fd74 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/v1.0.2.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/micropipenv.spec b/micropipenv.spec new file mode 100644 index 0000000..18f170f --- /dev/null +++ b/micropipenv.spec @@ -0,0 +1,107 @@ +%bcond_with check + +Name: micropipenv +Version: 1.0.2 +Release: 1%{?dist} +Summary: A simple wrapper around pip to support Pipenv and Poetry files + +License: LGPLv3+ +URL: https://github.com/thoth-station/%{name} +Source0: %{url}/archive/v%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-pytoml +%if %{with check} +# For testing +# Most of the test dependencies are not packaged in RHEL but can be pip-installed +BuildRequires: python3dist(flexmock) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-timeout) +BuildRequires: python3dist(pytest-venv) +%endif + +%{?python_provide:%python_provide python3-%{name}} + +Requires: python3-pip +Requires: python3-setuptools +Requires: python3-pytoml + +%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 +# 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} +# - skipped tests requires internet +# - skipped check of pip version - micropipenv is coupled with pip and checks +# 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" +%endif + +%files +%doc README.rst +%license LICENSE* +%{_bindir}/micropipenv +%{python3_sitelib}/%{name}.py +%{python3_sitelib}/__pycache__/%{name}*.pyc +%{python3_sitelib}/%{name}-%{version}-py*.egg-info/ + +%changelog +* Fri Dec 11 2020 Lumír Balhar - 1.0.2-1 +- Update to 1.0.2 to fix tests +Resolves: rhbz#1849096 + +* Mon Nov 02 2020 Tomas Orsava - 1.0.0-1 +- Update to 1.0.0 +- Resolves: rhbz#1849096 + +* Mon Sep 07 2020 Tomas Orsava - 0.6.0-1 +- Update to 0.6.0 +- Resolves: rhbz#1849096 + +* Fri Jul 17 2020 Lumír Balhar - 0.4.0-2 +- Initial RHEL8 packaging +- Resolves: rhbz#1849096 + +* Thu Jul 09 2020 Lumír Balhar - 0.4.0-1 +- Update to 0.4.0 (#1854424) + +* Mon Jun 15 2020 Lumír Balhar - 0.3.0-1 +- Update to 0.3.0 (#1846944) + +* Fri Jun 05 2020 Miro Hrončok - 0.2.0-2 +- Correct the license tag (GPLv3+ to LGPLv3+) +- Include the actual LICENSE files in the package + +* Thu Jun 04 2020 Lumír Balhar - 0.2.0-1 +- Update to 0.2.0 (#1838278, #1841641) + +* Tue May 26 2020 Miro Hrončok - 0.1.6-2 +- Rebuilt for Python 3.9 + +* Tue May 05 2020 Lumír Balhar - 0.1.6-1 +- Update to 0.1.6 (#1831328) + +* Tue Apr 07 2020 Lumír Balhar - 0.1.5-1 +- Update to 0.1.5 (#1821807) + +* 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..4a3cf0a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v1.0.2.tar.gz) = 44afa587362a994612bc6153191157a0d923a4bd1ead6a38847728b5b735b04d2e04b4e5469de17926ad230455e15e281615da4a248dc96b13d72f02b41f4f79