python-scikit-build/python-scikit-build.spec

120 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-scikit-build
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%bcond_without test
%define psuffix -test
%else
%bcond_with test
%define psuffix %{nil}
%endif
%{?sle15_python_module_pythons}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
Name: python-scikit-build%{psuffix}
Version: 0.17.6
Release: 0
Summary: Improved build system generator for Python C/C++/Fortran/Cython extensions
License: MIT
URL: https://github.com/scikit-build/scikit-build
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
Source: https://files.pythonhosted.org/packages/source/s/scikit-build/scikit_build-%{version}.tar.gz
Source99: sample-setup.cfg
# PATCH-FIX-UPSTREAM gh#scikit-build/scikit-build#1087
Patch0: support-setuptools-69-3.patch
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module hatch-fancy-pypi-readme}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 42.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: cmake
Requires: python-distro
Requires: python-packaging
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
Requires: python-setuptools >= 42.0.0
Requires: python-wheel >= 0.32.0
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
%if %{python_version_nodots} < 38
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
Requires: python-typing-extensions >= 3.7
%endif
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
%if %{python_version_nodots} < 311
Requires: python-tomli
%endif
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%if %{with test}
# Note: When tests fail try `osc build ---clean` in order to get rid of remnant numpy typing stubs in $HOME
BuildRequires: %{python_module Cython >= 0.25.1}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
BuildRequires: %{python_module build >= 0.7}
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
BuildRequires: %{python_module importlib-metadata if %python-base < 3.8}
BuildRequires: %{python_module pytest >= 6.0.0}
BuildRequires: %{python_module pytest-mock >= 1.10.4}
BuildRequires: %{python_module requests}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
BuildRequires: %{python_module scikit-build = %{version}}
BuildRequires: %{python_module virtualenv}
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: git-core
BuildRequires: ninja
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%endif
BuildArch: noarch
%python_subpackages
%description
Improved build system generator for Python C/C++/Fortran/Cython extensions
%prep
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
%autosetup -p1 -n scikit_build-%{version}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%if %{with test}
# some tests call setup.py develop|install|test, which by default write to /usr
# This is not allowed in OBS
# gh#scikit-build/scikit-build#469
%python_expand mkdir -p /tmp/fakepythonroot%{$python_sitelib}
cp %{S:99} tests/samples/hello-cpp/setup.cfg
cp %{S:99} tests/samples/cython-flags/setup.cfg
cp %{S:99} tests/samples/issue-274-support-default-package-dir/setup.cfg
cp %{S:99} tests/samples/issue-274-support-one-package-without-package-dir/setup.cfg
cp %{S:99} tests/samples/issue-334-configure-cmakelist-non-cp1252-encoding/setup.cfg
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%endif
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%if !%{with test}
%build
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%pyproject_wheel
%install
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%endif
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%if %{with test}
%check
# these tests need a wheelhouse with downloaded wheels including platform dependent cmake
donttestmarker="isolated"
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
# setuptools_scm is a dependency of hatch_vcs
donttestmarker+=" or nosetuptoolsscm"
%pytest -m "not ($donttestmarker)"
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%endif
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%if !%{with test}
%files %{python_files}
Accepting request 1083330 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.17.2 ## Bug fixes * Validate value before returning library path by @dlech in #942. * Only add Python_LIBRARY on Windows MSVC in #943 and #944. * Slightly nicer traceback for failed compiler in 947. ## Testing * Hide a few warnings that are expected in #494. - Release 0.17.1 * This is a small release fixing a few bugs; the primary one being a change that was triggering a bug in older FindPython. The unused variable messages have been deactivated to simplify output, as well. * Older (<3.24) CMake breaks when lib specified in #932 * An error output was missing formatting in #931 * Make empty CMAKE_OSX_DEPLOYMENT_TARGET a warning (bug in conda-forge's clang activation fixed upstream) in #934 * Remove unused variable warnings by in #930 - Release 0.17.0 * A lot of bug fixes are present in this release, focusing on Windows, PyPy, and cross compiling. We've also improved the compatibility with default setuptools behaviors a little, and enabled some things that were previously unavailable, like overriding the build type via the cmake argument environment variables. We've expanded our CI matrix to include Windows and macOS PyPy and some Fortran tests on Linux. This release requires Python 3.7+. ## Bug fixes * Match setuptools behavior for include_package_data default by @vyasr in #873. * Misc. fixes for F2PY and PythonExtensions modules by @benbovy OBS-URL: https://build.opensuse.org/request/show/1083330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=34
2023-04-27 22:04:23 +02:00
%doc AUTHORS.rst README.rst CONTRIBUTING.rst docs/
%license LICENSE
%{python_sitelib}/skbuild
%{python_sitelib}/scikit_build-%{version}.dist-info
Accepting request 1032211 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * This release adds support for Python 3.11 and removes support for Python 2.7 and 3.5 (#688). Testing and static checking improved, including being fully statically typed internally (though setuptools is not fully typed, so it is of limited use). * All deprecated setuptools/distutils features are also deprecated in scikit-build, like the test command, easy_install, etc. Editable mode is still unsupported. Python 3.6 support is deprecated. Older versions of CMake (<3.15) are not recommended; a future version will remove support for older CMake's (along with providing a better mechanism for ensuring a proper CMake is available). If you need any of these features, please open or find an issue explaining what and why you need something. * Cython module now supports FindPython mode. #743 * PyPy is discovered without extra settings in FindPython mode #744 * FindPython mode uses a new path specification, should help make it usable. #774 * Better flushing and output streams for more consistent output ordering. #781 - Add skbuild-pr785-ignoredeprecation.patch * gh#scikit-build/scikit-build#785 - Update to 0.15.0 * Add support for FindPython (including 2 and 3). Thanks @hameerabbasi for the contribution. See #712. * Add support for Cygwin. Thanks @ax3l and @DWesl and @poikilos for the help! See #485. OBS-URL: https://build.opensuse.org/request/show/1032211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=23
2022-10-29 16:23:21 +02:00
%endif
%changelog