Compare commits

..

61 commits

Author SHA1 Message Date
Lumir Balhar
588a84d0f9 Update to 1.10.0 (rhbz#2419277) 2025-12-08 11:54:56 +01:00
Python Maint
8bacaeb4d7 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:30:34 +02:00
Python Maint
7006dae939 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:59:43 +02:00
Fedora Release Engineering
d3c2d9e58a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 21:36:20 +00:00
Python Maint
db6419cc79 Rebuilt for Python 3.14 2025-06-04 01:04:23 +02:00
Packit
c87ba0b59e Update to 1.9.0 (rhbz#2341735) 2025-01-23 11:25:36 +00:00
Fedora Release Engineering
dbdaf23bd2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 17:34:33 +00:00
Lumir Balhar
2cda3f0080 Remove duplicated tmt plan 2024-10-30 13:27:11 +01:00
Lumir Balhar
1ad553d99d Fix CI by fixing test dependencies 2024-10-29 19:49:03 +01:00
Packit
1907e78820 Update to 1.8.1 (rhbz#2322513) 2024-10-29 18:01:46 +00:00
Packit
dce1d59d5a Update to 1.8.0 (rhbz#2302221) 2024-08-01 08:21:34 +00:00
Fedora Release Engineering
73f45c4e89 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 17:18:21 +00:00
Packit
f52412122b Update to 1.7.0 (rhbz#2293607) 2024-06-21 08:15:19 +00:00
Tomáš Hrnčiar
ad84521082 CI: Run upstream testsuite
Signed-off-by: Tomáš Hrnčiar <thrnciar@redhat.com>
2024-05-29 11:53:27 +02:00
Tomáš Hrnčiar
c7f6a0548f Merge plans/integration.fmf into plan.fmf
Signed-off-by: Tomáš Hrnčiar <thrnciar@redhat.com>
2024-05-29 11:53:22 +02:00
Lukas Zachar
5df7323f71 Add smoke test for tmt
Cherry-picked from a122e5c6

Signed-off-by: Tomáš Hrnčiar <thrnciar@redhat.com>
2024-05-29 11:53:09 +02:00
Miro Hrončok
7210d14daf Remove duplicate rhbz# from future Packit commit messages
See e.g. 2961e90f2f
2024-01-25 15:54:21 +01:00
Fedora Release Engineering
40387dc073 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 06:18:20 +00:00
Fedora Release Engineering
b1410b3479 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 07:26:06 +00:00
Packit
2961e90f2f Update to 1.6.0 (rhbz#rhbz#2251885) 2023-11-28 09:10:16 +00:00
Packit
9ff3cd8e8b Update to 1.5.2 2023-11-08 13:53:22 +00:00
Lumir Balhar
276e7d90eb Add packit config 2023-11-07 17:53:35 +01:00
Lumir Balhar
bd6ac078f5 Update to 1.5.1 (rhbz#2244702) 2023-10-18 08:13:02 +02:00
Fedora Release Engineering
f4a0768c13 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 14:21:05 +00:00
Yaakov Selkowitz
5d0ca7b4e0 Rebuilt for Python 3.12 2023-07-09 15:46:45 -04:00
Karolina Surma
3f76300634 Declare License tag in the SPDX format 2023-05-19 11:40:52 +02:00
Yaakov Selkowitz
f2f84f8ff4 Disable tests by default in RHEL builds
Some of the test dependencies are unwanted in RHEL.
2023-05-11 12:00:00 -04:00
Lumir Balhar
b62337fec6 Update to 1.5.0 (rhbz#2175133) 2023-03-03 12:43:23 +01:00
Lumir Balhar
f6f8671fd3 Update to 1.4.6 (rhbz#2172646) 2023-02-22 22:12:15 +01:00
Lumír Balhar
a6f3d09f79 Convert to rpmautospec 2023-02-22 22:04:57 +01:00
Fedora Release Engineering
757e32d36a Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 19:28:03 +00:00
Lumir Balhar
07abda1e35 Update to 1.4.5 (rhbz#2159707) 2023-01-11 15:52:39 +01:00
Lumir Balhar
d39bf2bdb4 Update to 1.4.4 2022-10-31 14:56:26 +01:00
Lumir Balhar
188a298784 Update to 1.4.3 2022-10-05 09:02:23 +02:00
Miro Hrončok
cc0fe396a5 Use %py_provides instead of deprecated %python_provide 2022-10-04 02:06:41 +02:00
Miro Hrončok
553b702517 Remove manual req. of python3dist(toml), package the [toml] extra instead
On Python 3.11+ python3dist(toml) is not needed.
The toml extra only exists for its provides there.
With older Python (e.g. on Fedora 36),
it brings python3.10dist(toml) and hence it is Recommended to preserve
current default behavior.

The Recommends can be safely removed when this is no longer being
ever merged into dist-git for older Fedoras.

But it can also stay forever.
2022-10-04 02:02:19 +02:00
Lumir Balhar
dd73dac0f4 Update to 1.4.2 2022-08-02 11:16:34 +02:00
Lumir Balhar
b4a4d3531e Update to 1.4.1 2022-07-26 12:16:43 +02:00
Fedora Release Engineering
b6cd5cbd7a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 21:03:12 +00:00
Python Maint
87dd492d08 Rebuilt for Python 3.11 2022-06-15 16:34:36 +02:00
Lumir Balhar
2f64d5c3a9 Update to 1.3.0 2022-06-08 14:23:28 +02:00
Lumir Balhar
8c1480e4e6 Update to 1.2.1 2022-02-21 11:05:15 +01:00
Fedora Release Engineering
36b52a7340 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 19:11:18 +00:00
Lumir Balhar
960ee1ba24 Update to 1.2.0 2022-01-05 08:35:42 +01:00
Lumir Balhar
5c3b7d1ef9 Update to 1.1.3 2021-10-25 09:13:46 +02:00
Lumir Balhar
e874813b5d Update to 1.1.2 2021-10-06 14:56:33 +02:00
Fedora Release Engineering
8567d7277e - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 14:13:53 +00:00
Lumir Balhar
b9007f1d4c Update to 1.1.0 2021-06-21 10:25:59 +02:00
Python Maint
d60a600eaf Rebuilt for Python 3.10 2021-06-04 20:11:33 +02:00
Lumir Balhar
3c581ec6a0 Update to 1.0.4 2021-05-04 07:29:16 +02:00
Lumir Balhar
0d746a4d20 TMT tests 2021-03-15 16:01:52 +01:00
Karolina Surma
eb5665b273 Update to 1.0.3 2021-03-12 12:08:04 +01:00
Fedora Release Engineering
1420d000bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 19:43:48 +00:00
Lumir Balhar
df74d76af7 Update to 1.0.2 (#1906430) 2020-12-11 07:43:51 +01:00
Lumir Balhar
ac46ca22ff Update to 1.0.1 2020-11-12 16:37:11 +01:00
Lumir Balhar
8efb351294 Skip test of pip version 2020-10-22 14:43:34 +02:00
Lumir Balhar
134d5388a4 Update to 1.0.0 (#1884346) 2020-10-02 10:00:21 +02:00
Lumir Balhar
c90fc1996e Update to 0.6.0 (#1875250) 2020-09-03 10:26:48 +02:00
Lumir Balhar
188bfe282c Update to 0.5.1 (#1859995) 2020-07-30 08:12:14 +02:00
Fedora Release Engineering
9c44f9658d - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 07:21:33 +00:00
Lumir Balhar
2dc0c4b922 Update to 0.4.0 (#1854424) 2020-07-09 09:05:47 +02:00
16 changed files with 267 additions and 45 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

30
.gitignore vendored
View file

@ -3,3 +3,33 @@
/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
/v1.0.3.tar.gz
/v1.0.4.tar.gz
/v1.1.0.tar.gz
/v1.1.2.tar.gz
/v1.1.3.tar.gz
/v1.2.0.tar.gz
/v1.2.1.tar.gz
/v1.3.0.tar.gz
/v1.4.0.tar.gz
/v1.4.1.tar.gz
/v1.4.2.tar.gz
/v1.4.3.tar.gz
/v1.4.4.tar.gz
/v1.4.5.tar.gz
/v1.4.6.tar.gz
/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
/v1.9.0.tar.gz
/v1.10.0.tar.gz

25
.packit.yaml Normal file
View file

@ -0,0 +1,25 @@
specfile_path: micropipenv.spec
upstream_package_name: micropipenv
upstream_project_url: https://github.com/thoth-station/micropipenv/
upstream_tag_template: v{version}
downstream_package_name: micropipenv
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
actions:
changelog-entry:
- bash -c '[ -n "$PACKIT_RESOLVED_BUGS" ] && echo "Update to ${PACKIT_PROJECT_VERSION} (${PACKIT_RESOLVED_BUGS})" || echo "Update to ${PACKIT_PROJECT_VERSION}"'
commit-message:
- bash -c '[ -n "$PACKIT_RESOLVED_BUGS" ] && echo "Update to ${PACKIT_PROJECT_VERSION} (${PACKIT_RESOLVED_BUGS})" || echo "Update to ${PACKIT_PROJECT_VERSION}"'
- job: koji_build
trigger: commit
allowed_committers: ["lbalhar", "packit"]
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.106.0.post1.dev8+g521f1e1d.

117
changelog Normal file
View file

@ -0,0 +1,117 @@
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jan 11 2023 Lumír Balhar <lbalhar@redhat.com> - 1.4.5-1
- Update to 1.4.5 (rhbz#2159707)
* Mon Oct 31 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.4-1
- Update to 1.4.4
Resolves: rhbz#2138859
* Wed Oct 05 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.3-1
- Update to 1.4.3
Resolves: rhbz#2131986
* Mon Oct 03 2022 Miro Hrončok <mhroncok@redhat.com> - 1.4.2-2
- Remove manual requirement of python3dist(toml),
package and Recommend the [toml] extra instead
* Tue Aug 02 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.2-1
- Update to 1.4.2
Resolves: rhbz#2110900
* Tue Jul 26 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.1-1
- Update to 1.4.1
Resolves: rhbz#2110900
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.3.0-2
- Rebuilt for Python 3.11
* Wed Jun 08 2022 Lumír Balhar <lbalhar@redhat.com> - 1.3.0-1
- Update to 1.3.0
Resolves: rhbz#2083779
* Mon Feb 21 2022 Lumír Balhar <lbalhar@redhat.com> - 1.2.1-1
- Update to 1.2.1
Resolves: rhbz#2056449
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jan 05 2022 Lumír Balhar <lbalhar@redhat.com> - 1.2.0-1
- Update to 1.2.0
* Mon Oct 25 2021 Lumír Balhar <lbalhar@redhat.com> - 1.1.3-1
- Update to 1.1.3
Resolves: rhbz#2016285
* Wed Oct 06 2021 Lumír Balhar <lbalhar@redhat.com> - 1.1.2-1
- Update to 1.1.2
Resolves: rhbz#2006696
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jun 21 2021 Lumír Balhar <lbalhar@redhat.com> - 1.1.0-1
- Update to 1.1.0
Resolves: rhbz#1974255
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.4-2
- Rebuilt for Python 3.10
* Tue May 04 2021 Lumír Balhar <lbalhar@redhat.com> - 1.0.4-1
- Update to 1.0.4
Resolves: rhbz#1955039
* Fri Mar 12 2021 Karolina SUrma <ksurma@redhat.com> - 1.0.3-1
- Update to 1.0.3
Resolves: rhbz#1937471
* 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 (#1906430)
* Tue Nov 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.1-1
- Update to 1.0.1
* Fri Oct 02 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-1
- Update to 1.0.0 (#1884346)
* 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)
* Mon Jun 15 2020 Lumír Balhar <lbalhar@redhat.com> - 0.3.0-1
- Update to 0.3.0 (#1846944)
* Fri Jun 05 2020 Miro Hrončok <mhroncok@redhat.com> - 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 <lbalhar@redhat.com> - 0.2.0-1
- Update to 0.2.0 (#1838278, #1841641)
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-2
- Rebuilt for Python 3.9
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.6-1
- Update to 0.1.6 (#1831328)
* Tue Apr 07 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.5-1
- Update to 0.1.5 (#1821807)
* Thu Mar 12 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.4-1
- Initial package.

View file

@ -1,73 +1,62 @@
# some test dependencies are unwanted in RHEL
%if 0%{?rhel}
%bcond_with tests
%else
%bcond_without tests
%endif
Name: micropipenv
Version: 0.3.0
Release: 1%{?dist}
Version: 1.10.0
Release: %autorelease
Summary: A simple wrapper around pip to support Pipenv and Poetry files
License: LGPLv3+
License: LGPL-3.0-or-later
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}}
%py_provides python3-%{name}
Requires: python3dist(pip)
Requires: python3dist(setuptools)
Requires: python3dist(toml)
Recommends: micropipenv+toml
%description
A lightweight wrapper for pip to support Pipenv and Poetry lock files or
converting them to pip-tools compatible output.
%pyproject_extras_subpkg -n %{name} toml
%prep
%autosetup -n %{name}-%{version}
%autosetup
# Remove shebang line from the module
sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
# Remove virtualenv requirement from tox.ini
sed -i '/requires = virtualenv/d' tox.ini
# Do not install wheel in testing venvs
sed -i 's/[^ ]*wheel==0.45.1.*/pass/' tests/conftest.py
%generate_buildrequires
%pyproject_buildrequires -r %{?with_tests:-t} -x toml
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files %{name}
%check
# test_install requires pytest-venv not available in Fedora
%{python3} -m pytest tests -k "not test_install"
%if %{with tests}
# skipped tests requires internet or checks pip version
%pytest -m "not online" -k "not test_check_pip_version and not test_install_invalid_toml_file"
%else
%pyproject_check_import
%endif
%files
%files -f %pyproject_files
%doc README.rst
%license LICENSE*
%{_bindir}/micropipenv
%pycached %{python3_sitelib}/%{name}.py
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
%changelog
* Mon Jun 15 2020 Lumír Balhar <lbalhar@redhat.com> - 0.3.0-1
- Update to 0.3.0 (#1846944)
* Fri Jun 05 2020 Miro Hrončok <mhroncok@redhat.com> - 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 <lbalhar@redhat.com> - 0.2.0-1
- Update to 0.2.0 (#1838278, #1841641)
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-2
- Rebuilt for Python 3.9
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.6-1
- Update to 0.1.6 (#1831328)
* Tue Apr 07 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.5-1
- Update to 0.1.5 (#1821807)
* Thu Mar 12 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.4-1
- Initial package.
%autochangelog

14
plan.fmf Normal file
View file

@ -0,0 +1,14 @@
discover:
how: fmf
dist-git-source: true
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

View file

@ -1 +1 @@
SHA512 (v0.3.0.tar.gz) = a26d6fd489ac316d16c2f1e92f31aa546abeda850ba64eb5eddf437d50fd2aab3367b702e6994130d36c86bca0a333aecc6dc63dc2d77502177ee4a8e8edb4e4
SHA512 (v1.10.0.tar.gz) = 8508777d2cc04f3aa9faf834a75154d5d3aa8e24ca5551febce4c40c78d32b4cae0753bdf26fc6118b2033852bda4370ef869949389e745991a46b9d44981cf5

View file

@ -0,0 +1,2 @@
summary: Install from pip-tools
test: ./test_install.sh pip-tools

View file

@ -0,0 +1,2 @@
summary: Install from Pipfile
test: ./test_install.sh pipenv

2
tests/example/poetry.fmf Normal file
View file

@ -0,0 +1,2 @@
summary: Install from poetry
test: ./test_install.sh poetry

View file

@ -0,0 +1,2 @@
summary: Install from requirements
test: ./test_install.sh requirements

8
tests/example/test_install.sh Executable file
View 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
View file

@ -0,0 +1,2 @@
test: bash ./smoke.sh
framework: shell

12
tests/smoke.sh Normal file
View 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"

13
tests/upstream.fmf Normal file
View file

@ -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