-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packit config to build rpms in Copr
- Loading branch information
Showing
5 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
specfile_path: packaging/shellai.spec | ||
upstream_package_name: shellai | ||
downstream_package_name: shellai | ||
upstream_project_url: https://github.com/rhel-lightspeed/shellai | ||
|
||
srpm_build_deps: [] | ||
|
||
jobs: | ||
# Build RPMs for each pull request | ||
- job: copr_build | ||
trigger: pull_request | ||
owner: "@rhel-lightspeed" | ||
project: shellai | ||
targets: | ||
- rhel-8-x86_64 | ||
- rhel-9-x86_64 | ||
actions: | ||
# do not get the version from a tag (git describe) but from the spec file | ||
get-current-version: | ||
- grep -oP '^Version:\s+\K\S+' packaging/shellai.spec | ||
|
||
# Build RPMs for main branch | ||
- job: copr_build | ||
trigger: commit | ||
branch: main | ||
owner: "@rhel-lightspeed" | ||
project: shellai | ||
targets: | ||
- rhel-8-x86_64 | ||
- rhel-9-x86_64 | ||
actions: | ||
# bump spec so we get release starting with 2 and hence all the default branch builds will | ||
# have higher NVR than all the PR builds | ||
post-upstream-clone: | ||
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/shellai.spec | ||
# do not get the version from a tag (git describe) but from the spec file | ||
get-current-version: | ||
- grep -oP '^Version:\s+\K\S+' packaging/shellai.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Name: shellai | ||
Version: 0.1.0 | ||
Release: 1.20241017113156923510.add.packaging.with.packit%{?dist} | ||
Summary: A simple wrapper to interact with RAG | ||
|
||
License: Apache v2 | ||
URL: https://github.com/rhel-lightspeed/shellai | ||
Source0: shellai-0.1.0.tar.gz | ||
BuildArch: x86_64 | ||
|
||
BuildRequires: python3-devel | ||
BuildRequires: python3-setuptools | ||
BuildRequires: pyproject-rpm-macros | ||
|
||
Requires: python3-requests | ||
Requires: python3-pyyaml | ||
|
||
%description | ||
A simple wrapper to interact with RAG | ||
|
||
%prep | ||
%autosetup -n shellai-0.1.0 | ||
|
||
%generate_buildrequires | ||
|
||
%build | ||
# Do not include unit tests in the package | ||
rm -rf build/lib/%{name}/tests | ||
%pyproject_wheel | ||
|
||
%install | ||
# TODO(r0x0d): Create config file | ||
%pyproject_install | ||
|
||
# Here, "shellai" is the name of the importable module. | ||
%pyproject_save_files -l shellai | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/shellai | ||
|
||
%changelog | ||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017113156923510.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017113128682068.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017113110730063.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017113033757839.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017113011349374.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017112823686796.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017112716414674.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017112655936145.add.packaging.with.packit | ||
- Development snapshot (6f361a6c) | ||
|
||
* Thu Oct 17 2024 Rodolfo Olivieri <rolivier@redhat.com> - 0.1.0-1.20241017111158206424.add.packaging.with.packit | ||
- Development snapshot (39d66d93) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.