Compare commits
No commits in common. "imports/c10s/micropipenv-1.6.0-1.el10" and "c8" have entirely different histories.
imports/c1
...
c8
@ -1 +0,0 @@
|
||||
1
|
31
.gitignore
vendored
31
.gitignore
vendored
@ -1,30 +1 @@
|
||||
/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
|
||||
/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
|
||||
SOURCES/v1.0.2.tar.gz
|
||||
|
1
.micropipenv.metadata
Normal file
1
.micropipenv.metadata
Normal file
@ -0,0 +1 @@
|
||||
7f7dc18a89719586617f27f81da609be99a0bae0 SOURCES/v1.0.2.tar.gz
|
25
.packit.yaml
25
.packit.yaml
@ -1,25 +0,0 @@
|
||||
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} (rhbz#${PACKIT_RESOLVED_BUGS})" || echo "Update to ${PACKIT_PROJECT_VERSION}"'
|
||||
commit-message:
|
||||
- bash -c '[ -n "$PACKIT_RESOLVED_BUGS" ] && echo "Update to ${PACKIT_PROJECT_VERSION} (rhbz#${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
|
@ -1,3 +0,0 @@
|
||||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 0.87.0.
|
107
SPECS/micropipenv.spec
Normal file
107
SPECS/micropipenv.spec
Normal file
@ -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 <lbalhar@redhat.com> - 1.0.2-1
|
||||
- Update to 1.0.2 to fix tests
|
||||
Resolves: rhbz#1849096
|
||||
|
||||
* Mon Nov 02 2020 Tomas Orsava <torsava@redhat.com> - 1.0.0-1
|
||||
- Update to 1.0.0
|
||||
- Resolves: rhbz#1849096
|
||||
|
||||
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 0.6.0-1
|
||||
- Update to 0.6.0
|
||||
- Resolves: rhbz#1849096
|
||||
|
||||
* Fri Jul 17 2020 Lumír Balhar <lbalhar@redhat.com> - 0.4.0-2
|
||||
- Initial RHEL8 packaging
|
||||
- Resolves: rhbz#1849096
|
||||
|
||||
* 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.
|
117
changelog
117
changelog
@ -1,117 +0,0 @@
|
||||
* 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,5 +0,0 @@
|
||||
--- !Policy
|
||||
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,58 +0,0 @@
|
||||
# some test dependencies are unwanted in RHEL
|
||||
%if 0%{?rhel}
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
%endif
|
||||
|
||||
Name: micropipenv
|
||||
Version: 1.6.0
|
||||
Release: %autorelease
|
||||
Summary: A simple wrapper around pip to support Pipenv and Poetry files
|
||||
|
||||
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
|
||||
|
||||
%py_provides python3-%{name}
|
||||
|
||||
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
|
||||
# Remove shebang line from the module
|
||||
sed -i '1{\@^#!/usr/bin/env python@d}' %{name}.py
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r %{?with_tests:-t} -x toml
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{name}
|
||||
|
||||
%check
|
||||
%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 -f %pyproject_files
|
||||
%doc README.rst
|
||||
%{_bindir}/micropipenv
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
14
plan.fmf
14
plan.fmf
@ -1,14 +0,0 @@
|
||||
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
|
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (v1.6.0.tar.gz) = 4d4a9e13d9eb02ef10a18b2b3822eeef5bd49ee35e82750fa5c062555c1eed83ddd0ff5ebe5ca6d262d459f2115573c0a917e9caeae4806aab23606a6907b3a0
|
@ -1,2 +0,0 @@
|
||||
summary: Install from pip-tools
|
||||
test: ./test_install.sh pip-tools
|
@ -1,2 +0,0 @@
|
||||
summary: Install from Pipfile
|
||||
test: ./test_install.sh pipenv
|
@ -1,2 +0,0 @@
|
||||
summary: Install from poetry
|
||||
test: ./test_install.sh poetry
|
@ -1,2 +0,0 @@
|
||||
summary: Install from requirements
|
||||
test: ./test_install.sh requirements
|
@ -1,8 +0,0 @@
|
||||
pushd /tmp/micropipenv/tests/data/install/$1/
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
micropipenv install
|
||||
pip3 list
|
||||
deactivate
|
||||
rm -rf venv
|
||||
popd
|
@ -1,2 +0,0 @@
|
||||
test: bash ./smoke.sh
|
||||
framework: shell
|
@ -1,12 +0,0 @@
|
||||
#!/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"
|
@ -1,12 +0,0 @@
|
||||
summary: upstream testsuite
|
||||
require:
|
||||
- python3-devel
|
||||
- python3-test
|
||||
- python3-pip
|
||||
- python3-pytest
|
||||
# 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…
Reference in New Issue
Block a user