First packaging
Build and provide rpm of python3-expiringdict-rpm / rpmbuild (release) Failing after 1m12s

This commit is contained in:
2025-03-30 19:30:50 +02:00
parent 92a43cf6fe
commit 7a70ed8037
6 changed files with 82 additions and 9 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
name: Build and provide rpm of python3-expiringdict-rpm
run-name: Rpmbuild python3-expiringdict-rpm at { gitea.repository } by { github.actor }
run-name: Rpmbuild python3-expiringdict-rpm at ${{ gitea.repository }] by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
@@ -13,7 +13,7 @@ on:
- "f42-minimal-rpmbuild"
jobs:
rpmbuild:
runs-on: { inputs.runsonlabel }
runs-on: ${{ inputs.runsonlabel }}
steps:
- name: Check out repository code
uses: https://git.demus.dk/actions/git-clone@main
@@ -22,4 +22,4 @@ jobs:
- name: Deploy to packages
uses: https://git.demus.dk/actions/rpm-deploy@main
with:
pat: { secrets.RPM_REPO_WRITE }
pat: ${{ secrets.RPM_REPO_WRITE }}
+2 -2
View File
@@ -1,5 +1,5 @@
name: Build and provide rpm of python3-expiringdict-rpm
run-name: Rpmbuild python3-expiringdict-rpm by @{ github.actor }
run-name: Rpmbuild python3-expiringdict-rpm by ${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
@@ -12,4 +12,4 @@ jobs:
- name: Deploy to packages
uses: https://git.demus.dk/actions/rpm-deploy@main
with:
pat: { secrets.RPM_REPO_WRITE }
pat: ${{ secrets.RPM_REPO_WRITE }}
+2 -2
View File
@@ -1,5 +1,5 @@
name: Build and provide rpm of python3-expiringdict-rpm
run-name: Rpmbuild python3-expiringdict-rpm by @{ github.actor }
run-name: Rpmbuild python3-expiringdict-rpm by ${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
@@ -12,4 +12,4 @@ jobs:
- name: Deploy to packages
uses: https://git.demus.dk/actions/rpm-deploy@main
with:
pat: { secrets.RPM_REPO_WRITE }
pat: ${{ secrets.RPM_REPO_WRITE }}
@@ -1,5 +1,5 @@
name: Build and provide rpm of python3-expiringdict-rpm
run-name: Rpmbuild python3-expiringdict-rpm by @{ github.actor }
run-name: Rpmbuild python3-expiringdict-rpm by ${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
@@ -12,4 +12,4 @@ jobs:
- name: Deploy to packages
uses: https://git.demus.dk/actions/rpm-deploy@main
with:
pat: { secrets.RPM_REPO_WRITE }
pat: ${{ secrets.RPM_REPO_WRITE }}
+12
View File
@@ -0,0 +1,12 @@
archful = false
archive_name = "expiringdict-1.2.2.tar.gz"
extras = [
"tests",
]
license_files_present = true
pypi_name = "expiringdict"
pypi_version = "1.2.2"
python_name = "python-expiringdict"
source = "PyPI"
summary = "Dictionary with auto-expiring values for caching purposes"
url = "https://www.mailgun.com/"
+61
View File
@@ -0,0 +1,61 @@
Name: python-expiringdict
Version: 1.2.2
Release: %autorelease
Summary: Dictionary with auto-expiring values for caching purposes
License: Apache-1.1
URL: https://www.mailgun.com/
Source: %{pypi_source expiringdict}
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
expiringdict is a Python caching library. The core of the library is
ExpiringDict class which is an ordered dictionary with auto-expiring
values for caching purposes. Expiration happens on any access, object
is locked during cleanup from expired values. ExpiringDict can not
store more than max_len elements - the oldest will be deleted.
Note: Iteration over dict and also keys() do not remove expired values!}
%description %_description
%package -n python3-expiringdict
Summary: %{summary}
%description -n python3-expiringdict %_description
# For official Fedora packages, review which extras should be actually packaged
# See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras
%pyproject_extras_subpkg -n python3-expiringdict tests
%prep
%autosetup -p1 -n expiringdict-%{version}
%generate_buildrequires
# Keep only those extras which you actually want to package or use during tests
%pyproject_buildrequires -x tests
%build
%pyproject_wheel
%install
%pyproject_install
# Add top-level Python module names here as arguments, you can use globs
%pyproject_save_files -l expiringdict
%check
%pyproject_check_import
%files -n python3-expiringdict -f %{pyproject_files}
%changelog
%autochangelog