diff --git a/.ci_support/migrations/python315t.yaml b/.ci_support/migrations/python315t.yaml new file mode 100644 index 0000000..7d7f1a0 --- /dev/null +++ b/.ci_support/migrations/python315t.yaml @@ -0,0 +1,54 @@ +migrator_ts: 1755739500 +__migrator: + commit_message: Rebuild for python 3.15 freethreading + migration_number: 1 + operation: key_add + primary_key: python + ordering: + python: + - 3.9.* *_cpython + - 3.10.* *_cpython + - 3.11.* *_cpython + - 3.12.* *_cpython + - 3.13.* *_cp313 + - 3.13.* *_cp313t + - 3.14.* *_cp314 + - 3.14.* *_cp314t + - 3.15.* *_cp315 + - 3.15.* *_cp315t # new entry + longterm: true + pr_limit: 20 + max_solver_attempts: 3 # this will make the bot retry "not solvable" stuff 12 times + exclude: + # this shouldn't attempt to modify the python feedstocks + - python + - pypy3.6 + - pypy-meta + - cross-python + - python_abi + # abi3 build that can already be installed with 3.15t + - hypothesis + - maturin + # abi3 build that got built manually + - pynacl + # https://github.com/conda-forge/conda-forge-bot/issues/7237 + - brotli + exclude_pinned_pkgs: false + # if feedstock already has 3.14t migrator this is redundant, but harmless + additional_zip_keys: + - is_freethreading + - is_abi3 + wait_for_migrators: + - python315 + # intentionally using the same set of packages as 3.14t, at least to start + allowlist_file: free-threaded-314.txt + +python: +- 3.15.* *_cp315t +# additional entries to add for zip_keys +is_freethreading: +- true +is_python_min: +- false +is_abi3: +- false diff --git a/.ci_support/win_64_python3.11.____cpython.yaml b/.ci_support/win_64_python3.11.____cpython.yaml index 24e1caa..63f9901 100644 --- a/.ci_support/win_64_python3.11.____cpython.yaml +++ b/.ci_support/win_64_python3.11.____cpython.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.12.____cpython.yaml b/.ci_support/win_64_python3.12.____cpython.yaml index e205df2..68360f2 100644 --- a/.ci_support/win_64_python3.12.____cpython.yaml +++ b/.ci_support/win_64_python3.12.____cpython.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.13.____cp313.yaml b/.ci_support/win_64_python3.13.____cp313.yaml index 1bd23ab..0c9c411 100644 --- a/.ci_support/win_64_python3.13.____cp313.yaml +++ b/.ci_support/win_64_python3.13.____cp313.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.14.____cp314.yaml b/.ci_support/win_64_python3.14.____cp314.yaml index 3cf2989..6a69124 100644 --- a/.ci_support/win_64_python3.14.____cp314.yaml +++ b/.ci_support/win_64_python3.14.____cp314.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.14.____cp314t.yaml b/.ci_support/win_64_python3.14.____cp314t.yaml index 44da96e..ad1f6d0 100644 --- a/.ci_support/win_64_python3.14.____cp314t.yaml +++ b/.ci_support/win_64_python3.14.____cp314t.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.15.____cp315.yaml b/.ci_support/win_64_python3.15.____cp315.yaml index 359ebac..91932fa 100644 --- a/.ci_support/win_64_python3.15.____cp315.yaml +++ b/.ci_support/win_64_python3.15.____cp315.yaml @@ -1,5 +1,7 @@ c_compiler: -- vs2022 +- vs +c_compiler_version: +- '2022' c_stdlib: - vs channel_sources: diff --git a/.ci_support/win_64_python3.15.____cp315t.yaml b/.ci_support/win_64_python3.15.____cp315t.yaml new file mode 100644 index 0000000..506b6ef --- /dev/null +++ b/.ci_support/win_64_python3.15.____cp315t.yaml @@ -0,0 +1,18 @@ +c_compiler: +- vs +c_compiler_version: +- '2022' +c_stdlib: +- vs +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.15.* *_cp315t +target_platform: +- win-64 diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8b4ef2f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,25 +0,0 @@ -# This file was generated automatically from conda-smithy. To update this configuration, -# update the conda-forge.yml and/or the recipe/meta.yaml. -# -*- mode: jinja-yaml -*- - -version: 2 - -jobs: - build: - working_directory: ~/test - machine: - image: ubuntu-2004:current - steps: - - run: - # The Circle-CI build should not be active, but if this is not true for some reason, do a fast finish. - command: exit 0 - -workflows: - version: 2 - build_and_test: - jobs: - - build: - filters: - branches: - ignore: - - /.*/ diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index 17b5502..2edaaf8 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -94,6 +94,18 @@ jobs: resize_partitions: False runs_on: ['windows-2022'] tools_install_dir: D:\Miniforge + - CONFIG: win_64_python3.15.____cp315t + STORE_BUILD_ARTIFACTS: False + UPLOAD_PACKAGES: True + build_platform: win-64 + build_workspace_dir: D:\\bld\\ + docker_run_args: + free_disk_space: skip + os: windows + pagefile_size: 0 + resize_partitions: False + runs_on: ['windows-2022'] + tools_install_dir: D:\Miniforge steps: - name: Checkout code diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat index 9fe094f..2813b29 100755 --- a/.scripts/run_win_build.bat +++ b/.scripts/run_win_build.bat @@ -22,26 +22,40 @@ set RECIPE_ROOT=%FEEDSTOCK_ROOT%\recipe set CI_SUPPORT=%FEEDSTOCK_ROOT%\.ci_support set CONFIG_FILE=%CI_SUPPORT%\%CONFIG%.yaml -set "arch=64" -if "%PROCESSOR_ARCHITECTURE%"=="ARM64" set "arch=arm64" +set "MICROMAMBA_VERSION=2.10.0-0" +set "MINIFORGE_VERSION=26.9.4-2" +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( + set "short_arch=64" + set "full_arch=x86_64" + set "MICROMAMBA_SHA256=f8b4284bd4eb1134122eaf93b3ea6c7be567e596de5829e1a6f478e34e41974a" + set "MINIFORGE_SHA256=9d83983669bc5d3b5dd4c631454bf953c3caf4ac78b9c9ada9971e5b021d83c3" +) else ( + set "short_arch=arm64" + set "full_arch=arm64" + set "MICROMAMBA_SHA256=1fcb3463c684d02366a3d447c153d00922decb16999eef7fb4634d0942a9093e" + set "MINIFORGE_SHA256=4cbb52ff0239488723f5e7ed0f362d393fc471a733dcd5ee9b03c74f188010c4" +) call :start_group "Provisioning base env with micromamba" set "MAMBA_ROOT_PREFIX=%MINIFORGE_HOME%-micromamba-%RANDOM%" -set "MICROMAMBA_VERSION=2.9.0-0" -set "MICROMAMBA_URL=https://github.com/mamba-org/micromamba-releases/releases/download/%MICROMAMBA_VERSION%/micromamba-win-%arch%" +set "MICROMAMBA_URL=https://github.com/mamba-org/micromamba-releases/releases/download/%MICROMAMBA_VERSION%/micromamba-win-%short_arch%" set "MICROMAMBA_TMPDIR=%TMP%\micromamba-%RANDOM%" set "MICROMAMBA_EXE=%MICROMAMBA_TMPDIR%\micromamba.exe" -echo Downloading micromamba %MICROMAMBA_VERSION% +echo Downloading micromamba %MICROMAMBA_VERSION% from %MICROMAMBA_URL% if not exist "%MICROMAMBA_TMPDIR%" mkdir "%MICROMAMBA_TMPDIR%" powershell -ExecutionPolicy Bypass -Command "(New-Object Net.WebClient).DownloadFile('%MICROMAMBA_URL%', '%MICROMAMBA_EXE%')" if !errorlevel! neq 0 exit /b !errorlevel! +if "%MICROMAMBA_SHA256%"=="" exit /b 1 +powershell -ExecutionPolicy Bypass -Command "$h = Get-FileHash '%MICROMAMBA_EXE%' -ErrorAction Stop; if ($h.Hash -ne $env:MICROMAMBA_SHA256) { Write-Error "SHA256 mismatch:`n Expected: $env:MICROMAMBA_SHA256`n Actual: $($h.Hash)"; exit 1 }" +if !errorlevel! neq 0 exit /b !errorlevel! + echo Creating environment call "%MICROMAMBA_EXE%" create --yes --root-prefix "%MAMBA_ROOT_PREFIX%" --prefix "%MINIFORGE_HOME%" ^ --channel conda-forge ^ - pip rattler-build conda-forge-ci-setup=4 "conda-build>=26.3" + pip python=3.14 rattler-build conda-forge-ci-setup=4 "conda-build>=26.3" if !errorlevel! neq 0 exit /b !errorlevel! echo Cleaning up micromamba diff --git a/conda-forge.yml b/conda-forge.yml index 137b7be..957b21f 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -1,5 +1,3 @@ -build_platform: - osx_arm64: osx_arm64 conda_build: error_overlinking: true conda_build_tool: rattler-build diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 83022c7..53b3ca1 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -15,7 +15,7 @@ source: - py310.patch build: - number: 0 + number: 1 script: python -m pip install . -vv --no-deps --no-build-isolation skip: not win