-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Loading branch information
Showing
9 changed files
with
155 additions
and
0 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 @@ | ||
1 |
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,7 @@ | ||
adjust+: | ||
# Cannot use initiator: fedora-ci reliably yet | ||
when: initiator is not defined or initiator != packit | ||
discover+: | ||
how: fmf | ||
dist-git-source: true | ||
dist-git-extract: f2py_cmake-*/ |
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,10 @@ | ||
prepare: | ||
- how: shell | ||
script: cp ./*.rpmlintrc $TMT_PLAN_DATA/ | ||
discover: | ||
how: fmf | ||
filter: "tag: rpmlint" | ||
url: https://github.com/packit/tmt-plans | ||
ref: main | ||
execute: | ||
how: tmt |
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,7 @@ | ||
summary: | ||
Basic smoke tests | ||
discover: | ||
how: fmf | ||
filter: "tag: smoke" | ||
execute: | ||
how: tmt |
Empty file.
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,59 @@ | ||
# Main package is arched in order to run tests on all arches | ||
%global debug_package %{nil} | ||
|
||
Name: python-f2py-cmake | ||
Version: 0.0.0 | ||
Release: %autorelease | ||
Summary: CMake helpers for building Cython modules | ||
|
||
License: Apache-2.0 | ||
URL: https://github.com/scikit-build/f2py-cmake | ||
Source: %{pypi_source cython_cmake} | ||
|
||
BuildRequires: python3-devel | ||
# Testing dependences | ||
BuildRequires: cmake | ||
|
||
%global _description %{expand: | ||
This provides helpers for using F2Py. Use: | ||
|
||
include(UseF2Py) | ||
} | ||
|
||
%description %_description | ||
|
||
%package -n python3-f2py-cmake | ||
Summary: %{summary} | ||
Requires: cmake | ||
BuildArch: noarch | ||
%description -n python3-f2py-cmake %_description | ||
|
||
|
||
%prep | ||
%autosetup -n f2py_cmake-%{version} | ||
|
||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires -x test | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
%pyproject_save_files -l f2py_cmake | ||
|
||
|
||
%check | ||
%pyproject_check_import | ||
%pytest | ||
|
||
|
||
%files -n python3-f2py-cmake -f %{pyproject_files} | ||
%doc README.md | ||
|
||
|
||
%changelog | ||
%autochangelog |
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,7 @@ | ||
tag: [ smoke ] | ||
tier: 0 | ||
path: / | ||
|
||
/version: | ||
test: | | ||
python3 -c "import cython_cmake; print(cython_cmake.__version__)" |
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 |
---|---|---|
|
@@ -156,3 +156,8 @@ Thumbs.db | |
# Common editor files | ||
*~ | ||
*.swp | ||
|
||
# Fedora packaging | ||
*.rpm | ||
*.tar.gz | ||
!.distro/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
files_to_sync: | ||
- src: .distro/ | ||
dest: ./ | ||
delete: true | ||
filters: | ||
- "protect .git*" | ||
- "protect sources" | ||
- "protect changelog" | ||
- "- plans/rpmlint.fmf" | ||
- .packit.yaml | ||
|
||
upstream_package_name: f2py-cmake | ||
specfile_path: .distro/python-f2py-cmake.spec | ||
downstream_package_name: python-f2py-cmake | ||
upstream_tag_template: v{version} | ||
|
||
targets: &targets | ||
- fedora-all-x86_64 | ||
- fedora-all-aarch64 | ||
- epel-10-x86_64 | ||
- epel-10-aarch64 | ||
|
||
jobs: | ||
- &copr_build | ||
job: copr_build | ||
trigger: pull_request | ||
- &tests | ||
job: tests | ||
trigger: pull_request | ||
fmf_path: .distro | ||
targets: | ||
- fedora-all-x86_64 | ||
- fedora-all-aarch64 | ||
- <<: *copr_build | ||
trigger: release | ||
owner: "@scikit-build" | ||
project: release | ||
- <<: *tests | ||
trigger: release | ||
- <<: *copr_build | ||
trigger: commit | ||
branch: main | ||
owner: "@scikit-build" | ||
project: nightly | ||
- <<: *tests | ||
trigger: commit | ||
branch: main | ||
- job: propose_downstream | ||
trigger: release | ||
dist_git_branches: | ||
- fedora-rawhide | ||
- job: koji_build | ||
trigger: commit | ||
dist_git_branches: | ||
- fedora-all | ||
- job: bodhi_update | ||
trigger: commit | ||
dist_git_branches: | ||
- fedora-branched |