diff --git a/.gitignore b/.gitignore index a22ad5f..43284d2 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ /v1.5.0.tar.gz /v1.5.1.tar.gz /v1.5.2.tar.gz +/v1.6.0.tar.gz +/v1.7.0.tar.gz +/v1.8.0.tar.gz +/v1.8.1.tar.gz diff --git a/README.packit b/README.packit index 5998f60..3d207b6 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.85.0. +The file was generated using packit 0.102.2.post1.dev2+gbdca14cb. diff --git a/micropipenv.spec b/micropipenv.spec index 4e940e2..779c3ef 100644 --- a/micropipenv.spec +++ b/micropipenv.spec @@ -6,7 +6,7 @@ %endif Name: micropipenv -Version: 1.5.2 +Version: 1.8.1 Release: %autorelease Summary: A simple wrapper around pip to support Pipenv and Poetry files diff --git a/plans/integration.fmf b/plan.fmf similarity index 86% rename from plans/integration.fmf rename to plan.fmf index 51e5bdf..a418c92 100644 --- a/plans/integration.fmf +++ b/plan.fmf @@ -1,6 +1,6 @@ -summary: Integration tests for micropipenv discover: how: fmf + dist-git-source: true execute: how: tmt prepare: diff --git a/sources b/sources index ebda181..3b6996a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (v1.5.2.tar.gz) = 0fbfa729a47d78df1f46c57712198b769f73ff7832675c8cc471e4ad9c8b7460a14a936e6a6897ddffa9e119ba9261d11052a725e6270532164cc82b529ada16 +SHA512 (v1.8.1.tar.gz) = de553f4c9b7fe7fcf182e6c9957cb422a54b38cf0ecd0ce0d7c0fd4fc2f32b5cb3e03005e92246960f4c9cff801b14471bd435319da88b6b14e24aba794f399b diff --git a/tests/smoke.fmf b/tests/smoke.fmf new file mode 100644 index 0000000..25498bb --- /dev/null +++ b/tests/smoke.fmf @@ -0,0 +1,2 @@ +test: bash ./smoke.sh +framework: shell diff --git a/tests/smoke.sh b/tests/smoke.sh new file mode 100644 index 0000000..fee1bf2 --- /dev/null +++ b/tests/smoke.sh @@ -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" diff --git a/tests/upstream.fmf b/tests/upstream.fmf new file mode 100644 index 0000000..d350ffc --- /dev/null +++ b/tests/upstream.fmf @@ -0,0 +1,13 @@ +summary: upstream testsuite +require: + - python3-devel + - python3-test + - python3-pip + - python3-pytest + - python3-pytest-venv + # flexmock installed from PyPI, not available in RHEL +test: | + pip install flexmock==0.12.1 && + cd $(dirname $TMT_SOURCE_DIR/micropipenv-*/tests) && + pytest -v +duration: 5m