Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
12
.gitignore
vendored
12
.gitignore
vendored
@ -1 +1,11 @@
|
||||
SOURCES/v1.0.2.tar.gz
|
||||
/v0.1.4.tar.gz
|
||||
/v0.1.5.tar.gz
|
||||
/v0.1.6.tar.gz
|
||||
/v0.2.0.tar.gz
|
||||
/v0.3.0.tar.gz
|
||||
/v0.4.0.tar.gz
|
||||
/v0.5.1.tar.gz
|
||||
/v0.6.0.tar.gz
|
||||
/v1.0.0.tar.gz
|
||||
/v1.0.1.tar.gz
|
||||
/v1.0.2.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
7f7dc18a89719586617f27f81da609be99a0bae0 SOURCES/v1.0.2.tar.gz
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
14
integration.fmf
Normal file
14
integration.fmf
Normal file
@ -0,0 +1,14 @@
|
||||
summary: Integration tests for micropipenv
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
prepare:
|
||||
- name: install git-core
|
||||
how: install
|
||||
package:
|
||||
- git-core
|
||||
- micropipenv
|
||||
- name: clone upstream test data
|
||||
how: shell
|
||||
script: git clone https://github.com/thoth-station/micropipenv.git /tmp/micropipenv
|
@ -2,7 +2,7 @@
|
||||
|
||||
Name: micropipenv
|
||||
Version: 1.0.2
|
||||
Release: 1%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: A simple wrapper around pip to support Pipenv and Poetry files
|
||||
|
||||
License: LGPLv3+
|
||||
@ -11,9 +11,9 @@ Source0: %{url}/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pytoml
|
||||
BuildRequires: python3dist(pip)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(toml)
|
||||
%if %{with check}
|
||||
# For testing
|
||||
# Most of the test dependencies are not packaged in RHEL but can be pip-installed
|
||||
@ -25,9 +25,9 @@ BuildRequires: python3dist(pytest-venv)
|
||||
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
|
||||
Requires: python3-pip
|
||||
Requires: python3-setuptools
|
||||
Requires: python3-pytoml
|
||||
Requires: python3dist(pip)
|
||||
Requires: python3dist(setuptools)
|
||||
Requires: python3dist(toml)
|
||||
|
||||
%description
|
||||
A lightweight wrapper for pip to support Pipenv and Poetry lock files or
|
||||
@ -43,8 +43,6 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
|
||||
|
||||
%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}
|
||||
@ -53,33 +51,48 @@ sed -i 's/_PIP_BIN = os.getenv("MICROPIPENV_PIP_BIN", "pip")/_PIP_BIN = os.geten
|
||||
# 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"
|
||||
%pytest -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
|
||||
%pycached %{python3_sitelib}/%{name}.py
|
||||
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-4
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Mon Mar 01 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.0.2-3
|
||||
- Disable the test run under RHEL due to missing dependencies
|
||||
Resolves: rhbz#1932454
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Dec 11 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.2-1
|
||||
- Update to 1.0.2 to fix tests
|
||||
Resolves: rhbz#1849096
|
||||
- Update to 1.0.2 (#1906430)
|
||||
|
||||
* Mon Nov 02 2020 Tomas Orsava <torsava@redhat.com> - 1.0.0-1
|
||||
- Update to 1.0.0
|
||||
- Resolves: rhbz#1849096
|
||||
* Tue Nov 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.1-1
|
||||
- Update to 1.0.1
|
||||
|
||||
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 0.6.0-1
|
||||
- Update to 0.6.0
|
||||
- Resolves: rhbz#1849096
|
||||
* Fri Oct 02 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-1
|
||||
- Update to 1.0.0 (#1884346)
|
||||
|
||||
* Fri Jul 17 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-2
|
||||
- Initial RHEL8 packaging
|
||||
- Resolves: rhbz#1849096
|
||||
* Thu Sep 03 2020 Lumír Balhar <lbalhar@redhat.com> - 0.6.0-1
|
||||
- Update to 0.6.0 (#1875250)
|
||||
|
||||
* Thu Jul 30 2020 Lumír Balhar <lbalhar@redhat.com> - 0.5.1-1
|
||||
- Update to 0.5.1 (#1859995)
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jul 09 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-1
|
||||
- Update to 0.4.0 (#1854424)
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (v1.0.2.tar.gz) = 44afa587362a994612bc6153191157a0d923a4bd1ead6a38847728b5b735b04d2e04b4e5469de17926ad230455e15e281615da4a248dc96b13d72f02b41f4f79
|
2
tests/example/pip-tools.fmf
Normal file
2
tests/example/pip-tools.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from pip-tools
|
||||
test: ./test_install.sh pip-tools
|
2
tests/example/pipfile.fmf
Normal file
2
tests/example/pipfile.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from Pipfile
|
||||
test: ./test_install.sh pipenv
|
2
tests/example/poetry.fmf
Normal file
2
tests/example/poetry.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from poetry
|
||||
test: ./test_install.sh poetry
|
2
tests/example/requirements.fmf
Normal file
2
tests/example/requirements.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from requirements
|
||||
test: ./test_install.sh requirements
|
8
tests/example/test_install.sh
Executable file
8
tests/example/test_install.sh
Executable file
@ -0,0 +1,8 @@
|
||||
pushd /tmp/micropipenv/tests/data/install/$1/
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
micropipenv install
|
||||
pip3 list
|
||||
deactivate
|
||||
rm -rf venv
|
||||
popd
|
2
tests/smoke.fmf
Normal file
2
tests/smoke.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
test: bash ./smoke.sh
|
||||
framework: shell
|
12
tests/smoke.sh
Normal file
12
tests/smoke.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
username="test_$$"
|
||||
id "$username" && userdel -rf "$username"
|
||||
|
||||
useradd "$username"
|
||||
su -l -c "echo simple-manylinux-demo > requirements.txt" "$username"
|
||||
su -l -c "micropipenv install -- --user" "$username"
|
||||
su -l -c "python3 -c 'from dummyextension.extension import hello; assert hello() == \"Hello from Python extension!\"'" "$username"
|
||||
|
||||
userdel -rf "$username"
|
Loading…
Reference in New Issue
Block a user