forked from scikit-build/scikit-build
-
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.
Merge branch 'main' of https://github.com/scikit-build/scikit-build
- Loading branch information
Showing
185 changed files
with
2,961 additions
and
1,600 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
Filters = [ | ||
"unknown-key", | ||
] |
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,3 @@ | ||
discover: | ||
how: fmf | ||
dist-git-source: true |
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,20 @@ | ||
summary: | ||
Perform rpmlint and rpminspect tests | ||
prepare: | ||
- name: Install rpmlint packages | ||
how: install | ||
package: | ||
- rpmlint | ||
- rpminspect | ||
- rpminspect-data-fedora | ||
#- name: Download the source rpm | ||
# how: shell | ||
# script: cd /tmp && curl -O ${PACKIT_SRPM_URL} | ||
- name: Download rpm packages | ||
how: shell | ||
script: cd /tmp && dnf download ${PACKIT_COPR_RPMS} | ||
discover+: | ||
how: fmf | ||
filter: "tag: rpmlint" | ||
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,83 @@ | ||
Name: python-scikit-build | ||
Version: 0.0.0 | ||
Release: %autorelease | ||
Summary: Improved build system generator for Python C/C++/Fortran/Cython extensions | ||
|
||
# This project is mainly MIT but LICENSE also mentions some code | ||
# that is BSD-2-Clause-Views licensed. | ||
# All bundled(cmake()) files listed are Apache-2.0 licensed. | ||
License: MIT AND BSD-2-Clause-Views AND Apache-2.0 | ||
URL: https://github.com/scikit-build/scikit-build | ||
Source: %{pypi_source scikit_build} | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
|
||
# For tests: | ||
BuildRequires: cmake | ||
BuildRequires: gcc | ||
BuildRequires: gcc-c++ | ||
BuildRequires: gcc-gfortran | ||
BuildRequires: git-core | ||
BuildRequires: ninja-build | ||
|
||
%global _description %{expand: | ||
Improved build system generator for CPython C/C++/Fortran/Cython extensions. | ||
Better support is available for additional compilers, build systems, cross | ||
compilation, and locating dependencies and determining their build requirements. | ||
The scikit-build package is fundamentally just glue between the setuptools | ||
Python module and CMake.} | ||
|
||
%description %_description | ||
|
||
%package -n python3-scikit-build | ||
Summary: %{summary} | ||
Requires: cmake | ||
Requires: ninja-build | ||
|
||
# Files listed below are located in skbuild/resources/cmake. | ||
# Since they contain "Copyright 2011 Kitware, Inc." in them we list them as bundled, | ||
# their versions are unknown. | ||
# There is no such copyright in the remaining files so we assume | ||
# they are original part of the project. | ||
Provides: bundled(cmake(FindCython)) | ||
Provides: bundled(cmake(FindPythonExtensions)) | ||
Provides: bundled(cmake(UseCython)) | ||
Provides: bundled(cmake(UseF2PY)) | ||
Provides: bundled(cmake(UsePythonExtensions)) | ||
|
||
%description -n python3-scikit-build %_description | ||
|
||
|
||
%prep | ||
%autosetup -p1 -n scikit_build-%{version} | ||
|
||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires -x test | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
%pyproject_save_files skbuild | ||
|
||
|
||
%check | ||
# Some tests have assumptions that don't work if the RPM build flags are set, | ||
# so we clean them. | ||
export CFLAGS=' ' | ||
export CXXFLAGS=' ' | ||
# isolated tests are disabled because they require internet | ||
%pytest -v -m "not isolated and not deprecated and not nosetuptoolsscm" | ||
|
||
|
||
%files -n python3-scikit-build -f %{pyproject_files} | ||
%doc README.* | ||
|
||
|
||
%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,13 @@ | ||
# Common test variables | ||
tag: | ||
- rpmlint | ||
tier: 0 | ||
path: / | ||
|
||
# Define tests | ||
/rpmlint: | ||
summary: Rpmlint spec and rpmfiles | ||
test: rpmlint -c packit.toml -r python-scikit-build.rpmlintrc ./*.spec /tmp/*.rpm | ||
/rpminspect-rpms: | ||
summary: Rpminspect the rpms | ||
test: ls /tmp/*.rpm | xargs -L1 rpminspect-fedora -E metadata,disttag |
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,9 @@ | ||
# Common test variables | ||
tag: | ||
- smoke | ||
tier: 0 | ||
path: / | ||
|
||
# Define tests | ||
/version: | ||
test: python3 -c "import skbuild; print(skbuild.__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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.