forked from scikit-build/cmake-python-distributions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into scikit-build-core
* master: (112 commits) docs: fix up docs (scikit-build#454) chore(deps): update pre-commit hooks (scikit-build#443) chore(deps): bump cmake from 3.28.1 to 3.28.3 (scikit-build#452) chore(deps): bump the actions group with 1 update (scikit-build#453) Update to CMake 3.28.3 (scikit-build#450) chore(ci): use 4 threads to compile on GHA (scikit-build#449) Update to OpenSSL 3.0.13 (scikit-build#448) chore(deps): bump the actions group with 1 update (scikit-build#447) chore(deps): update pre-commit hooks (scikit-build#441) ci: group dependabot updates (scikit-build#442) chore(deps): bump cmake from 3.27.9 to 3.28.1 (scikit-build#440) Update to CMake 3.28.1 (scikit-build#439) ci: support artifact v4 (scikit-build#438) chore(deps): bump actions/upload-artifact from 3 to 4 chore(deps): bump actions/download-artifact from 3 to 4 Update to CMake 3.28.0 chore(deps): update pre-commit hooks chore(deps): bump actions/setup-python from 4 to 5 (scikit-build#431) chore(deps): bump cmake from 3.27.7 to 3.27.9 (scikit-build#430) Update to CMake 3.27.9 (scikit-build#429) ...
- Loading branch information
Showing
33 changed files
with
297 additions
and
2,576 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,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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
src/cmake/_version.py export-subst | ||
.git_archival.txt export-subst |
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 |
---|---|---|
|
@@ -17,6 +17,10 @@ on: | |
tags: | ||
- "*.*.*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
USE_QEMU: ${{ fromJSON(github.event.inputs.use_qemu || 'false') || (github.event_name == 'schedule') || startsWith(github.ref, 'refs/tags/') }} | ||
|
||
|
@@ -25,11 +29,11 @@ jobs: | |
name: Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- uses: pre-commit/[email protected].0 | ||
- uses: pre-commit/[email protected].1 | ||
|
||
|
||
build_wheels: | ||
|
@@ -84,6 +88,10 @@ jobs: | |
arch: "AMD64" | ||
build: "" | ||
use_qemu: false | ||
- os: windows-2022 | ||
arch: "ARM64" | ||
build: "" | ||
use_qemu: false | ||
- os: windows-2019 | ||
arch: "x86" | ||
build: "" | ||
|
@@ -94,25 +102,26 @@ jobs: | |
use_qemu: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU) | ||
with: | ||
fetch-depth: 0 # required for versioneer to find tags | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2.1.0 | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
if: matrix.use_qemu && fromJSON(env.USE_QEMU) | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.5 | ||
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU) | ||
env: | ||
CIBW_ARCHS: "${{ matrix.arch }}" | ||
CIBW_BUILD: "cp39-${{ matrix.build }}*" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU) | ||
with: | ||
name: Wheel-${{ matrix.os }}-${{ matrix.build }}${{ matrix.arch }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_manylinux2010_wheels: | ||
|
@@ -127,36 +136,38 @@ jobs: | |
- arch: "i686" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # required for versioneer to find tags | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.5 | ||
env: | ||
CIBW_ARCHS: "${{ matrix.arch }}" | ||
CIBW_BUILD: "cp39-manylinux_*" | ||
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2010" | ||
CIBW_MANYLINUX_I686_IMAGE: "manylinux2010" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Wheel-manylinux2010-${{ matrix.arch }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
needs: [lint] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # required for versioneer to find tags | ||
|
||
- name: Build SDist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: SDist | ||
path: dist/*.tar.gz | ||
|
||
test_sdist: | ||
|
@@ -167,24 +178,35 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ["2.7", "3.6", "3.7", "3.11"] | ||
python: ["2.7", "3.6", "3.7", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
if: matrix.python != '2.7' | ||
name: Install Python ${{ matrix.python }} | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install Ubuntu Python 2.7 | ||
if: matrix.python == '2.7' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends python2 python3-virtualenv | ||
virtualenv -p python2 ${HOME}/cp27 | ||
${HOME}/cp27/bin/python -m pip install -U pip | ||
${HOME}/cp27/bin/python -m pip install -U setuptools wheel | ||
echo "${HOME}/cp27/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends libssl-dev | ||
pip install pytest pytest-virtualenv virtualenv pytest-cov | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
name: SDist | ||
path: dist | ||
|
||
- name: Install SDist | ||
|
@@ -203,25 +225,30 @@ jobs: | |
needs: [build_wheels, build_manylinux2010_wheels, build_sdist, test_sdist] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
path: all | ||
|
||
- run: pipx run twine check --strict dist/* | ||
- run: pipx run twine check --strict all/*/* | ||
|
||
upload_pypi: | ||
name: Upload to PyPI | ||
needs: [check_dist] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && github.repository == 'scikit-build/cmake-python-distributions' && startsWith(github.ref, 'refs/tags/') | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/cmake | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
path: all | ||
|
||
- name: Upload to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYPI_RELEASE_PASSWORD }} | ||
- name: Merge files | ||
run: | | ||
mkdir dist | ||
mv all/*/* dist/. | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |
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 |
---|---|---|
|
@@ -61,3 +61,9 @@ docs/_build | |
# IDE junk | ||
.idea/* | ||
*.swp | ||
|
||
# Output from cibuildwheel | ||
wheelhouse/ | ||
|
||
# Version | ||
_version.py |
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,16 @@ | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
version: 2 | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements-docs.txt |
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 |
---|---|---|
@@ -1,26 +1,29 @@ | ||
|
||
#----------------------------------------------------------------------------- | ||
# CMake sources | ||
set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0.tar.gz") | ||
set(unix_source_sha256 "306463f541555da0942e6f5a0736560f70c487178b9d94a5ae7f34d0538cdd48") | ||
set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.tar.gz") | ||
set(unix_source_sha256 "72b7570e5c8593de6ac4ab433b73eab18c5fb328880460c86ce32608141ad5c1") | ||
|
||
set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0.zip") | ||
set(windows_source_sha256 "45f1668b543ea2022387321930ad22cbcb5e6cef5e7e786f68f2ffc7fd2d66b5") | ||
set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.zip") | ||
set(windows_source_sha256 "b54943b9c98ac66061e9b97fd630b3f06a75a85143a561ef2dca88aa0e042c60") | ||
|
||
#----------------------------------------------------------------------------- | ||
# CMake binaries | ||
|
||
set(linux32_binary_url "NA") # Linux 32-bit binaries not available | ||
set(linux32_binary_sha256 "NA") | ||
|
||
set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0-linux-x86_64.tar.gz") | ||
set(linux64_binary_sha256 "ac634d6f0a81d7089adc7be5acff66a6bee3b08615f9a947858ce92a9ef59c8b") | ||
set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.tar.gz") | ||
set(linux64_binary_sha256 "804d231460ab3c8b556a42d2660af4ac7a0e21c98a7f8ee3318a74b4a9a187a6") | ||
|
||
set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0-macos10.10-universal.tar.gz") | ||
set(macos10_10_binary_sha256 "d0e0849e8198f4637c0c863704d214af8eeabfaaa3a4f72725f3f8c10338bf92") | ||
set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-macos10.10-universal.tar.gz") | ||
set(macos10_10_binary_sha256 "5541339751cb96d1b03eb3244df7e750cd4e1dcb361ebbd68a179493dfccc5bf") | ||
|
||
set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0-windows-i386.zip") | ||
set(win32_binary_sha256 "ddd115257a19ff3dd18fc63f32a00ae742f8b62d2e39bc354629903512f99783") | ||
set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-windows-i386.zip") | ||
set(win32_binary_sha256 "411812b6b29ac793faf69bdbd36c612f72659363c5491b9f0a478915db3fc58c") | ||
|
||
set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0-windows-x86_64.zip") | ||
set(win64_binary_sha256 "b46030c10cab1170355952f9ac59f7e6dabc248070fc53f15dff11d4ed2910f8") | ||
set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-windows-x86_64.zip") | ||
set(win64_binary_sha256 "cac7916f7e1e73a25de857704c94fd5b72ba9fe2f055356b5602d2f960e50e5b") | ||
|
||
set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-windows-arm64.zip") | ||
set(winarm64_binary_sha256 "cfe023b7e82812ef802fb1ec619f6cfa2fdcb58ee61165fc315086286fe9cdcc") |
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
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.