Compare commits
61 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
588a84d0f9 | ||
|
|
8bacaeb4d7 | ||
|
|
7006dae939 | ||
|
|
d3c2d9e58a | ||
|
|
db6419cc79 | ||
|
|
c87ba0b59e | ||
|
|
dbdaf23bd2 | ||
|
|
2cda3f0080 | ||
|
|
1ad553d99d | ||
|
|
1907e78820 | ||
|
|
dce1d59d5a | ||
|
|
73f45c4e89 | ||
|
|
f52412122b | ||
|
|
ad84521082 | ||
|
|
c7f6a0548f | ||
|
|
5df7323f71 | ||
|
|
7210d14daf | ||
|
|
40387dc073 | ||
|
|
b1410b3479 | ||
|
|
2961e90f2f | ||
|
|
9ff3cd8e8b | ||
|
|
276e7d90eb | ||
|
|
bd6ac078f5 | ||
|
|
f4a0768c13 | ||
|
|
5d0ca7b4e0 | ||
|
|
3f76300634 | ||
|
|
f2f84f8ff4 | ||
|
|
b62337fec6 | ||
|
|
f6f8671fd3 | ||
|
|
a6f3d09f79 | ||
|
|
757e32d36a | ||
|
|
07abda1e35 | ||
|
|
d39bf2bdb4 | ||
|
|
188a298784 | ||
|
|
cc0fe396a5 | ||
|
|
553b702517 | ||
|
|
dd73dac0f4 | ||
|
|
b4a4d3531e | ||
|
|
b6cd5cbd7a | ||
|
|
87dd492d08 | ||
|
|
2f64d5c3a9 | ||
|
|
8c1480e4e6 | ||
|
|
36b52a7340 | ||
|
|
960ee1ba24 | ||
|
|
5c3b7d1ef9 | ||
|
|
e874813b5d | ||
|
|
8567d7277e | ||
|
|
b9007f1d4c | ||
|
|
d60a600eaf | ||
|
|
3c581ec6a0 | ||
|
|
0d746a4d20 | ||
|
|
eb5665b273 | ||
|
|
1420d000bd | ||
|
|
df74d76af7 | ||
|
|
ac46ca22ff | ||
|
|
8efb351294 | ||
|
|
134d5388a4 | ||
|
|
c90fc1996e | ||
|
|
188bfe282c | ||
|
|
9c44f9658d | ||
|
|
2dc0c4b922 |
16 changed files with 267 additions and 45 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
30
.gitignore
vendored
30
.gitignore
vendored
|
|
@ -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
25
.packit.yaml
Normal 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
3
README.packit
Normal 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
117
changelog
Normal 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.
|
||||
|
|
@ -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
14
plan.fmf
Normal 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
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (v0.3.0.tar.gz) = a26d6fd489ac316d16c2f1e92f31aa546abeda850ba64eb5eddf437d50fd2aab3367b702e6994130d36c86bca0a333aecc6dc63dc2d77502177ee4a8e8edb4e4
|
||||
SHA512 (v1.10.0.tar.gz) = 8508777d2cc04f3aa9faf834a75154d5d3aa8e24ca5551febce4c40c78d32b4cae0753bdf26fc6118b2033852bda4370ef869949389e745991a46b9d44981cf5
|
||||
|
|
|
|||
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"
|
||||
13
tests/upstream.fmf
Normal file
13
tests/upstream.fmf
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue