├── .azure-pipelines ├── azure-pipelines-linux.yml ├── azure-pipelines-osx.yml └── azure-pipelines-win.yml ├── .ci_support ├── README ├── linux_64_python3.10.____cpython.yaml ├── linux_64_python3.11.____cpython.yaml ├── linux_64_python3.12.____cpython.yaml ├── linux_64_python3.13.____cp313.yaml ├── linux_64_python3.9.____cpython.yaml ├── linux_aarch64_python3.10.____cpython.yaml ├── linux_aarch64_python3.11.____cpython.yaml ├── linux_aarch64_python3.12.____cpython.yaml ├── linux_aarch64_python3.13.____cp313.yaml ├── linux_aarch64_python3.9.____cpython.yaml ├── migrations │ └── python313.yaml ├── osx_64_python3.10.____cpython.yaml ├── osx_64_python3.11.____cpython.yaml ├── osx_64_python3.12.____cpython.yaml ├── osx_64_python3.13.____cp313.yaml ├── osx_64_python3.9.____cpython.yaml ├── osx_arm64_python3.10.____cpython.yaml ├── osx_arm64_python3.11.____cpython.yaml ├── osx_arm64_python3.12.____cpython.yaml ├── osx_arm64_python3.13.____cp313.yaml ├── osx_arm64_python3.9.____cpython.yaml ├── win_64_python3.10.____cpython.yaml ├── win_64_python3.11.____cpython.yaml ├── win_64_python3.12.____cpython.yaml ├── win_64_python3.13.____cp313.yaml └── win_64_python3.9.____cpython.yaml ├── .circleci └── config.yml ├── .gitattributes ├── .github └── CODEOWNERS ├── .gitignore ├── .scripts ├── build_steps.sh ├── logging_utils.sh ├── run_docker_build.sh ├── run_osx_build.sh └── run_win_build.bat ├── LICENSE.txt ├── README.md ├── azure-pipelines.yml ├── build-locally.py ├── conda-forge.yml └── recipe ├── 0001-fix-arrowfs-skip-arrow-fs-test-on-windows.patch ├── build-duckdb.bat ├── build-duckdb.sh └── meta.yaml /.azure-pipelines/azure-pipelines-linux.yml: -------------------------------------------------------------------------------- 1 | # This file was generated automatically from conda-smithy. To update this configuration, 2 | # update the conda-forge.yml and/or the recipe/meta.yaml. 3 | # -*- mode: yaml -*- 4 | 5 | jobs: 6 | - job: linux 7 | pool: 8 | vmImage: ubuntu-latest 9 | strategy: 10 | matrix: 11 | linux_64_python3.10.____cpython: 12 | CONFIG: linux_64_python3.10.____cpython 13 | UPLOAD_PACKAGES: 'True' 14 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 15 | linux_64_python3.11.____cpython: 16 | CONFIG: linux_64_python3.11.____cpython 17 | UPLOAD_PACKAGES: 'True' 18 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 19 | linux_64_python3.12.____cpython: 20 | CONFIG: linux_64_python3.12.____cpython 21 | UPLOAD_PACKAGES: 'True' 22 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 23 | linux_64_python3.13.____cp313: 24 | CONFIG: linux_64_python3.13.____cp313 25 | UPLOAD_PACKAGES: 'True' 26 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 27 | linux_64_python3.9.____cpython: 28 | CONFIG: linux_64_python3.9.____cpython 29 | UPLOAD_PACKAGES: 'True' 30 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 31 | linux_aarch64_python3.10.____cpython: 32 | CONFIG: linux_aarch64_python3.10.____cpython 33 | UPLOAD_PACKAGES: 'True' 34 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 35 | linux_aarch64_python3.11.____cpython: 36 | CONFIG: linux_aarch64_python3.11.____cpython 37 | UPLOAD_PACKAGES: 'True' 38 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 39 | linux_aarch64_python3.12.____cpython: 40 | CONFIG: linux_aarch64_python3.12.____cpython 41 | UPLOAD_PACKAGES: 'True' 42 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 43 | linux_aarch64_python3.13.____cp313: 44 | CONFIG: linux_aarch64_python3.13.____cp313 45 | UPLOAD_PACKAGES: 'True' 46 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 47 | linux_aarch64_python3.9.____cpython: 48 | CONFIG: linux_aarch64_python3.9.____cpython 49 | UPLOAD_PACKAGES: 'True' 50 | DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 51 | timeoutInMinutes: 360 52 | variables: {} 53 | 54 | steps: 55 | # configure qemu binfmt-misc running. This allows us to run docker containers 56 | # embedded qemu-static 57 | - script: | 58 | docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes 59 | ls /proc/sys/fs/binfmt_misc/ 60 | condition: not(startsWith(variables['CONFIG'], 'linux_64')) 61 | displayName: Configure binfmt_misc 62 | 63 | - script: | 64 | export CI=azure 65 | export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) 66 | export remote_url=$(Build.Repository.Uri) 67 | export sha=$(Build.SourceVersion) 68 | export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME 69 | export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) 70 | if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then 71 | export IS_PR_BUILD="True" 72 | else 73 | export IS_PR_BUILD="False" 74 | fi 75 | .scripts/run_docker_build.sh 76 | displayName: Run docker build 77 | env: 78 | BINSTAR_TOKEN: $(BINSTAR_TOKEN) 79 | FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) 80 | STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) -------------------------------------------------------------------------------- /.azure-pipelines/azure-pipelines-osx.yml: -------------------------------------------------------------------------------- 1 | # This file was generated automatically from conda-smithy. To update this configuration, 2 | # update the conda-forge.yml and/or the recipe/meta.yaml. 3 | # -*- mode: yaml -*- 4 | 5 | jobs: 6 | - job: osx 7 | pool: 8 | vmImage: macOS-13 9 | strategy: 10 | matrix: 11 | osx_64_python3.10.____cpython: 12 | CONFIG: osx_64_python3.10.____cpython 13 | UPLOAD_PACKAGES: 'True' 14 | osx_64_python3.11.____cpython: 15 | CONFIG: osx_64_python3.11.____cpython 16 | UPLOAD_PACKAGES: 'True' 17 | osx_64_python3.12.____cpython: 18 | CONFIG: osx_64_python3.12.____cpython 19 | UPLOAD_PACKAGES: 'True' 20 | osx_64_python3.13.____cp313: 21 | CONFIG: osx_64_python3.13.____cp313 22 | UPLOAD_PACKAGES: 'True' 23 | osx_64_python3.9.____cpython: 24 | CONFIG: osx_64_python3.9.____cpython 25 | UPLOAD_PACKAGES: 'True' 26 | osx_arm64_python3.10.____cpython: 27 | CONFIG: osx_arm64_python3.10.____cpython 28 | UPLOAD_PACKAGES: 'True' 29 | osx_arm64_python3.11.____cpython: 30 | CONFIG: osx_arm64_python3.11.____cpython 31 | UPLOAD_PACKAGES: 'True' 32 | osx_arm64_python3.12.____cpython: 33 | CONFIG: osx_arm64_python3.12.____cpython 34 | UPLOAD_PACKAGES: 'True' 35 | osx_arm64_python3.13.____cp313: 36 | CONFIG: osx_arm64_python3.13.____cp313 37 | UPLOAD_PACKAGES: 'True' 38 | osx_arm64_python3.9.____cpython: 39 | CONFIG: osx_arm64_python3.9.____cpython 40 | UPLOAD_PACKAGES: 'True' 41 | timeoutInMinutes: 360 42 | variables: {} 43 | 44 | steps: 45 | # TODO: Fast finish on azure pipelines? 46 | - script: | 47 | export CI=azure 48 | export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) 49 | export remote_url=$(Build.Repository.Uri) 50 | export sha=$(Build.SourceVersion) 51 | export OSX_FORCE_SDK_DOWNLOAD="1" 52 | export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME 53 | export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) 54 | if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then 55 | export IS_PR_BUILD="True" 56 | else 57 | export IS_PR_BUILD="False" 58 | fi 59 | ./.scripts/run_osx_build.sh 60 | displayName: Run OSX build 61 | env: 62 | BINSTAR_TOKEN: $(BINSTAR_TOKEN) 63 | FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) 64 | STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) -------------------------------------------------------------------------------- /.azure-pipelines/azure-pipelines-win.yml: -------------------------------------------------------------------------------- 1 | # This file was generated automatically from conda-smithy. To update this configuration, 2 | # update the conda-forge.yml and/or the recipe/meta.yaml. 3 | # -*- mode: yaml -*- 4 | 5 | jobs: 6 | - job: win 7 | pool: 8 | vmImage: windows-2022 9 | strategy: 10 | matrix: 11 | win_64_python3.10.____cpython: 12 | CONFIG: win_64_python3.10.____cpython 13 | UPLOAD_PACKAGES: 'True' 14 | win_64_python3.11.____cpython: 15 | CONFIG: win_64_python3.11.____cpython 16 | UPLOAD_PACKAGES: 'True' 17 | win_64_python3.12.____cpython: 18 | CONFIG: win_64_python3.12.____cpython 19 | UPLOAD_PACKAGES: 'True' 20 | win_64_python3.13.____cp313: 21 | CONFIG: win_64_python3.13.____cp313 22 | UPLOAD_PACKAGES: 'True' 23 | win_64_python3.9.____cpython: 24 | CONFIG: win_64_python3.9.____cpython 25 | UPLOAD_PACKAGES: 'True' 26 | timeoutInMinutes: 360 27 | variables: 28 | CONDA_BLD_PATH: D:\\bld\\ 29 | MINIFORGE_HOME: D:\Miniforge 30 | SET_PAGEFILE: 'True' 31 | UPLOAD_TEMP: D:\\tmp 32 | 33 | steps: 34 | 35 | - script: | 36 | call ".scripts\run_win_build.bat" 37 | displayName: Run Windows build 38 | env: 39 | MINIFORGE_HOME: $(MINIFORGE_HOME) 40 | CONDA_BLD_PATH: $(CONDA_BLD_PATH) 41 | PYTHONUNBUFFERED: 1 42 | CONFIG: $(CONFIG) 43 | CI: azure 44 | flow_run_id: azure_$(Build.BuildNumber).$(System.JobAttempt) 45 | remote_url: $(Build.Repository.Uri) 46 | sha: $(Build.SourceVersion) 47 | UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) 48 | UPLOAD_TEMP: $(UPLOAD_TEMP) 49 | BINSTAR_TOKEN: $(BINSTAR_TOKEN) 50 | FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) 51 | STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) -------------------------------------------------------------------------------- /.ci_support/README: -------------------------------------------------------------------------------- 1 | This file is automatically generated by conda-smithy. If any 2 | particular build configuration is expected, but it is not found, 3 | please make sure all dependencies are satisfiable. To add/modify any 4 | matrix elements, you should create/change conda-smithy's input 5 | recipe/conda_build_config.yaml and re-render the recipe, rather than 6 | editing these files directly. 7 | -------------------------------------------------------------------------------- /.ci_support/linux_64_python3.10.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.10.* *_cpython 27 | target_platform: 28 | - linux-64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_64_python3.11.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.11.* *_cpython 27 | target_platform: 28 | - linux-64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_64_python3.12.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.12.* *_cpython 27 | target_platform: 28 | - linux-64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_64_python3.13.____cp313.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.13.* *_cp313 27 | target_platform: 28 | - linux-64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_64_python3.9.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.9.* *_cpython 27 | target_platform: 28 | - linux-64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_aarch64_python3.10.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.10.* *_cpython 27 | target_platform: 28 | - linux-aarch64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_aarch64_python3.11.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.11.* *_cpython 27 | target_platform: 28 | - linux-aarch64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_aarch64_python3.12.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.12.* *_cpython 27 | target_platform: 28 | - linux-aarch64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_aarch64_python3.13.____cp313.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.13.* *_cp313 27 | target_platform: 28 | - linux-aarch64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/linux_aarch64_python3.9.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - gcc 3 | c_compiler_version: 4 | - '13' 5 | c_stdlib: 6 | - sysroot 7 | c_stdlib_version: 8 | - '2.17' 9 | cdt_name: 10 | - conda 11 | channel_sources: 12 | - conda-forge 13 | channel_targets: 14 | - conda-forge main 15 | cxx_compiler: 16 | - gxx 17 | cxx_compiler_version: 18 | - '13' 19 | docker_image: 20 | - quay.io/condaforge/linux-anvil-x86_64:alma9 21 | pin_run_as_build: 22 | python: 23 | min_pin: x.x 24 | max_pin: x.x 25 | python: 26 | - 3.9.* *_cpython 27 | target_platform: 28 | - linux-aarch64 29 | zip_keys: 30 | - - c_compiler_version 31 | - cxx_compiler_version 32 | -------------------------------------------------------------------------------- /.ci_support/migrations/python313.yaml: -------------------------------------------------------------------------------- 1 | migrator_ts: 1724712607 2 | __migrator: 3 | commit_message: Rebuild for python 3.13 4 | migration_number: 1 5 | operation: key_add 6 | primary_key: python 7 | ordering: 8 | python: 9 | - 3.6.* *_cpython 10 | - 3.7.* *_cpython 11 | - 3.8.* *_cpython 12 | - 3.9.* *_cpython 13 | - 3.10.* *_cpython 14 | - 3.11.* *_cpython 15 | - 3.12.* *_cpython 16 | - 3.13.* *_cp313 # new entry 17 | - 3.6.* *_73_pypy 18 | - 3.7.* *_73_pypy 19 | - 3.8.* *_73_pypy 20 | - 3.9.* *_73_pypy 21 | paused: false 22 | longterm: true 23 | pr_limit: 20 24 | max_solver_attempts: 3 # this will make the bot retry "not solvable" stuff 12 times 25 | exclude: 26 | # this shouldn't attempt to modify the python feedstocks 27 | - python 28 | - pypy3.6 29 | - pypy-meta 30 | - cross-python 31 | - python_abi 32 | # see https://github.com/conda-forge/scipy-feedstock/pull/283 33 | - scipy 34 | exclude_pinned_pkgs: false 35 | 36 | python: 37 | - 3.13.* *_cp313 38 | # additional entries to add for zip_keys 39 | numpy: 40 | - 2 41 | python_impl: 42 | - cpython 43 | -------------------------------------------------------------------------------- /.ci_support/osx_64_python3.10.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '10.13' 3 | MACOSX_SDK_VERSION: 4 | - '10.13' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '10.13' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - x86_64-apple-darwin13.4.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.10.* *_cpython 29 | target_platform: 30 | - osx-64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_64_python3.11.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '10.13' 3 | MACOSX_SDK_VERSION: 4 | - '10.13' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '10.13' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - x86_64-apple-darwin13.4.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.11.* *_cpython 29 | target_platform: 30 | - osx-64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_64_python3.12.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '10.13' 3 | MACOSX_SDK_VERSION: 4 | - '10.13' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '10.13' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - x86_64-apple-darwin13.4.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.12.* *_cpython 29 | target_platform: 30 | - osx-64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_64_python3.13.____cp313.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '10.13' 3 | MACOSX_SDK_VERSION: 4 | - '10.13' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '10.13' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - x86_64-apple-darwin13.4.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.13.* *_cp313 29 | target_platform: 30 | - osx-64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_64_python3.9.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '10.13' 3 | MACOSX_SDK_VERSION: 4 | - '10.13' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '10.13' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - x86_64-apple-darwin13.4.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.9.* *_cpython 29 | target_platform: 30 | - osx-64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_arm64_python3.10.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '11.0' 3 | MACOSX_SDK_VERSION: 4 | - '11.0' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '11.0' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - arm64-apple-darwin20.0.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.10.* *_cpython 29 | target_platform: 30 | - osx-arm64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_arm64_python3.11.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '11.0' 3 | MACOSX_SDK_VERSION: 4 | - '11.0' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '11.0' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - arm64-apple-darwin20.0.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.11.* *_cpython 29 | target_platform: 30 | - osx-arm64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_arm64_python3.12.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '11.0' 3 | MACOSX_SDK_VERSION: 4 | - '11.0' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '11.0' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - arm64-apple-darwin20.0.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.12.* *_cpython 29 | target_platform: 30 | - osx-arm64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_arm64_python3.13.____cp313.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '11.0' 3 | MACOSX_SDK_VERSION: 4 | - '11.0' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '11.0' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - arm64-apple-darwin20.0.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.13.* *_cp313 29 | target_platform: 30 | - osx-arm64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/osx_arm64_python3.9.____cpython.yaml: -------------------------------------------------------------------------------- 1 | MACOSX_DEPLOYMENT_TARGET: 2 | - '11.0' 3 | MACOSX_SDK_VERSION: 4 | - '11.0' 5 | c_compiler: 6 | - clang 7 | c_compiler_version: 8 | - '18' 9 | c_stdlib: 10 | - macosx_deployment_target 11 | c_stdlib_version: 12 | - '11.0' 13 | channel_sources: 14 | - conda-forge 15 | channel_targets: 16 | - conda-forge main 17 | cxx_compiler: 18 | - clangxx 19 | cxx_compiler_version: 20 | - '18' 21 | macos_machine: 22 | - arm64-apple-darwin20.0.0 23 | pin_run_as_build: 24 | python: 25 | min_pin: x.x 26 | max_pin: x.x 27 | python: 28 | - 3.9.* *_cpython 29 | target_platform: 30 | - osx-arm64 31 | zip_keys: 32 | - - c_compiler_version 33 | - cxx_compiler_version 34 | -------------------------------------------------------------------------------- /.ci_support/win_64_python3.10.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - vs2019 3 | c_stdlib: 4 | - vs 5 | channel_sources: 6 | - conda-forge 7 | channel_targets: 8 | - conda-forge main 9 | cxx_compiler: 10 | - vs2019 11 | pin_run_as_build: 12 | python: 13 | min_pin: x.x 14 | max_pin: x.x 15 | python: 16 | - 3.10.* *_cpython 17 | target_platform: 18 | - win-64 19 | -------------------------------------------------------------------------------- /.ci_support/win_64_python3.11.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - vs2019 3 | c_stdlib: 4 | - vs 5 | channel_sources: 6 | - conda-forge 7 | channel_targets: 8 | - conda-forge main 9 | cxx_compiler: 10 | - vs2019 11 | pin_run_as_build: 12 | python: 13 | min_pin: x.x 14 | max_pin: x.x 15 | python: 16 | - 3.11.* *_cpython 17 | target_platform: 18 | - win-64 19 | -------------------------------------------------------------------------------- /.ci_support/win_64_python3.12.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - vs2019 3 | c_stdlib: 4 | - vs 5 | channel_sources: 6 | - conda-forge 7 | channel_targets: 8 | - conda-forge main 9 | cxx_compiler: 10 | - vs2019 11 | pin_run_as_build: 12 | python: 13 | min_pin: x.x 14 | max_pin: x.x 15 | python: 16 | - 3.12.* *_cpython 17 | target_platform: 18 | - win-64 19 | -------------------------------------------------------------------------------- /.ci_support/win_64_python3.13.____cp313.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - vs2019 3 | c_stdlib: 4 | - vs 5 | channel_sources: 6 | - conda-forge 7 | channel_targets: 8 | - conda-forge main 9 | cxx_compiler: 10 | - vs2019 11 | pin_run_as_build: 12 | python: 13 | min_pin: x.x 14 | max_pin: x.x 15 | python: 16 | - 3.13.* *_cp313 17 | target_platform: 18 | - win-64 19 | -------------------------------------------------------------------------------- /.ci_support/win_64_python3.9.____cpython.yaml: -------------------------------------------------------------------------------- 1 | c_compiler: 2 | - vs2019 3 | c_stdlib: 4 | - vs 5 | channel_sources: 6 | - conda-forge 7 | channel_targets: 8 | - conda-forge main 9 | cxx_compiler: 10 | - vs2019 11 | pin_run_as_build: 12 | python: 13 | min_pin: x.x 14 | max_pin: x.x 15 | python: 16 | - 3.9.* *_cpython 17 | target_platform: 18 | - win-64 19 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | # This file was generated automatically from conda-smithy. To update this configuration, 2 | # update the conda-forge.yml and/or the recipe/meta.yaml. 3 | # -*- mode: jinja-yaml -*- 4 | 5 | version: 2 6 | 7 | jobs: 8 | build: 9 | working_directory: ~/test 10 | machine: 11 | image: ubuntu-2004:current 12 | steps: 13 | - run: 14 | # The Circle-CI build should not be active, but if this is not true for some reason, do a fast finish. 15 | command: exit 0 16 | 17 | workflows: 18 | version: 2 19 | build_and_test: 20 | jobs: 21 | - build: 22 | filters: 23 | branches: 24 | ignore: 25 | - /.*/ 26 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.patch binary 4 | *.diff binary 5 | meta.yaml text eol=lf 6 | build.sh text eol=lf 7 | bld.bat text eol=crlf 8 | 9 | # github helper pieces to make some files not show up in diffs automatically 10 | .azure-pipelines/* linguist-generated=true 11 | .circleci/* linguist-generated=true 12 | .ci_support/README linguist-generated=true 13 | .drone/* linguist-generated=true 14 | .drone.yml linguist-generated=true 15 | .github/* linguist-generated=true 16 | .travis/* linguist-generated=true 17 | .appveyor.yml linguist-generated=true 18 | .gitattributes linguist-generated=true 19 | .gitignore linguist-generated=true 20 | .travis.yml linguist-generated=true 21 | .scripts/* linguist-generated=true 22 | .woodpecker.yml linguist-generated=true 23 | /LICENSE.txt linguist-generated=true 24 | /README.md linguist-generated=true 25 | azure-pipelines.yml linguist-generated=true 26 | build-locally.py linguist-generated=true 27 | shippable.yml linguist-generated=true 28 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @dhirschfeld @gforsyth @jonashaag @mariusvniekerk @sugatoray @xhochy -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # User content belongs under recipe/. 2 | # Feedstock configuration goes in `conda-forge.yml` 3 | # Everything else is managed by the conda-smithy rerender process. 4 | # Please do not modify 5 | 6 | # Ignore all files and folders in root 7 | * 8 | !/conda-forge.yml 9 | 10 | # Don't ignore any files/folders if the parent folder is 'un-ignored' 11 | # This also avoids warnings when adding an already-checked file with an ignored parent. 12 | !/**/ 13 | # Don't ignore any files/folders recursively in the following folders 14 | !/recipe/** 15 | !/.ci_support/** 16 | 17 | # Since we ignore files/folders recursively, any folders inside 18 | # build_artifacts gets ignored which trips some build systems. 19 | # To avoid that we 'un-ignore' all files/folders recursively 20 | # and only ignore the root build_artifacts folder. 21 | !/build_artifacts/** 22 | /build_artifacts 23 | 24 | *.pyc 25 | 26 | # Rattler-build's artifacts are in `output` when not specifying anything. 27 | /output 28 | # Pixi's configuration 29 | .pixi 30 | -------------------------------------------------------------------------------- /.scripts/build_steps.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here 4 | # will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent 5 | # changes to this script, consider a proposal to conda-smithy so that other feedstocks can also 6 | # benefit from the improvement. 7 | 8 | # -*- mode: jinja-shell -*- 9 | 10 | set -xeuo pipefail 11 | export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}" 12 | source ${FEEDSTOCK_ROOT}/.scripts/logging_utils.sh 13 | 14 | 15 | ( endgroup "Start Docker" ) 2> /dev/null 16 | 17 | ( startgroup "Configuring conda" ) 2> /dev/null 18 | 19 | export PYTHONUNBUFFERED=1 20 | export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}" 21 | export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support" 22 | export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml" 23 | 24 | cat >~/.condarc < /opt/conda/conda-meta/history 36 | micromamba install --root-prefix ~/.conda --prefix /opt/conda \ 37 | --yes --override-channels --channel conda-forge --strict-channel-priority \ 38 | pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" 39 | export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 40 | 41 | # set up the condarc 42 | setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" 43 | 44 | source run_conda_forge_build_setup 45 | 46 | 47 | 48 | # make the build number clobber 49 | make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" 50 | 51 | if [[ "${HOST_PLATFORM}" != "${BUILD_PLATFORM}" ]] && [[ "${HOST_PLATFORM}" != linux-* ]] && [[ "${BUILD_WITH_CONDA_DEBUG:-0}" != 1 ]]; then 52 | EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --no-test" 53 | fi 54 | 55 | 56 | ( endgroup "Configuring conda" ) 2> /dev/null 57 | 58 | if [[ -f "${FEEDSTOCK_ROOT}/LICENSE.txt" ]]; then 59 | cp "${FEEDSTOCK_ROOT}/LICENSE.txt" "${RECIPE_ROOT}/recipe-scripts-license.txt" 60 | fi 61 | 62 | if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then 63 | if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then 64 | EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" 65 | fi 66 | conda debug "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ 67 | ${EXTRA_CB_OPTIONS:-} \ 68 | --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" 69 | 70 | # Drop into an interactive shell 71 | /bin/bash 72 | else 73 | conda-build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ 74 | --suppress-variables ${EXTRA_CB_OPTIONS:-} \ 75 | --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" \ 76 | --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" 77 | ( startgroup "Inspecting artifacts" ) 2> /dev/null 78 | 79 | # inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 80 | command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts --recipe-dir "${RECIPE_ROOT}" -m "${CONFIG_FILE}" || echo "inspect_artifacts needs conda-forge-ci-setup >=4.9.4" 81 | 82 | ( endgroup "Inspecting artifacts" ) 2> /dev/null 83 | ( startgroup "Validating outputs" ) 2> /dev/null 84 | 85 | validate_recipe_outputs "${FEEDSTOCK_NAME}" 86 | 87 | ( endgroup "Validating outputs" ) 2> /dev/null 88 | 89 | ( startgroup "Uploading packages" ) 2> /dev/null 90 | 91 | if [[ "${UPLOAD_PACKAGES}" != "False" ]] && [[ "${IS_PR_BUILD}" == "False" ]]; then 92 | upload_package --validate --feedstock-name="${FEEDSTOCK_NAME}" "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" 93 | fi 94 | 95 | ( endgroup "Uploading packages" ) 2> /dev/null 96 | fi 97 | 98 | ( startgroup "Final checks" ) 2> /dev/null 99 | 100 | touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}" -------------------------------------------------------------------------------- /.scripts/logging_utils.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Provide a unified interface for the different logging 4 | # utilities CI providers offer. If unavailable, provide 5 | # a compatible fallback (e.g. bare `echo xxxxxx`). 6 | 7 | function startgroup { 8 | # Start a foldable group of log lines 9 | # Pass a single argument, quoted 10 | case ${CI:-} in 11 | azure ) 12 | echo "##[group]$1";; 13 | travis ) 14 | echo "$1" 15 | echo -en 'travis_fold:start:'"${1// /}"'\r';; 16 | github_actions ) 17 | echo "::group::$1";; 18 | * ) 19 | echo "$1";; 20 | esac 21 | } 2> /dev/null 22 | 23 | function endgroup { 24 | # End a foldable group of log lines 25 | # Pass a single argument, quoted 26 | 27 | case ${CI:-} in 28 | azure ) 29 | echo "##[endgroup]";; 30 | travis ) 31 | echo -en 'travis_fold:end:'"${1// /}"'\r';; 32 | github_actions ) 33 | echo "::endgroup::";; 34 | esac 35 | } 2> /dev/null 36 | -------------------------------------------------------------------------------- /.scripts/run_docker_build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here 4 | # will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent 5 | # changes to this script, consider a proposal to conda-smithy so that other feedstocks can also 6 | # benefit from the improvement. 7 | 8 | source .scripts/logging_utils.sh 9 | 10 | ( startgroup "Configure Docker" ) 2> /dev/null 11 | 12 | set -xeo pipefail 13 | 14 | THISDIR="$( cd "$( dirname "$0" )" >/dev/null && pwd )" 15 | PROVIDER_DIR="$(basename "$THISDIR")" 16 | 17 | FEEDSTOCK_ROOT="$( cd "$( dirname "$0" )/.." >/dev/null && pwd )" 18 | RECIPE_ROOT="${FEEDSTOCK_ROOT}/recipe" 19 | 20 | if [ -z ${FEEDSTOCK_NAME} ]; then 21 | export FEEDSTOCK_NAME=$(basename ${FEEDSTOCK_ROOT}) 22 | fi 23 | 24 | if [[ "${sha:-}" == "" ]]; then 25 | pushd "${FEEDSTOCK_ROOT}" 26 | sha=$(git rev-parse HEAD) 27 | popd 28 | fi 29 | 30 | docker info 31 | 32 | # In order for the conda-build process in the container to write to the mounted 33 | # volumes, we need to run with the same id as the host machine, which is 34 | # normally the owner of the mounted volumes, or at least has write permission 35 | export HOST_USER_ID=$(id -u) 36 | # Check if docker-machine is being used (normally on OSX) and get the uid from 37 | # the VM 38 | if hash docker-machine 2> /dev/null && docker-machine active > /dev/null; then 39 | export HOST_USER_ID=$(docker-machine ssh $(docker-machine active) id -u) 40 | fi 41 | 42 | ARTIFACTS="$FEEDSTOCK_ROOT/build_artifacts" 43 | 44 | if [ -z "$CONFIG" ]; then 45 | set +x 46 | FILES=`ls .ci_support/linux_*` 47 | CONFIGS="" 48 | for file in $FILES; do 49 | CONFIGS="${CONFIGS}'${file:12:-5}' or "; 50 | done 51 | echo "Need to set CONFIG env variable. Value can be one of ${CONFIGS:0:-4}" 52 | exit 1 53 | fi 54 | 55 | if [ -z "${DOCKER_IMAGE}" ]; then 56 | SHYAML_INSTALLED="$(shyaml -h || echo NO)" 57 | if [ "${SHYAML_INSTALLED}" == "NO" ]; then 58 | echo "WARNING: DOCKER_IMAGE variable not set and shyaml not installed. Trying to parse with coreutils" 59 | DOCKER_IMAGE=$(cat .ci_support/${CONFIG}.yaml | grep '^docker_image:$' -A 1 | tail -n 1 | cut -b 3-) 60 | if [ "${DOCKER_IMAGE}" = "" ]; then 61 | echo "No docker_image entry found in ${CONFIG}. Falling back to quay.io/condaforge/linux-anvil-comp7" 62 | DOCKER_IMAGE="quay.io/condaforge/linux-anvil-comp7" 63 | fi 64 | else 65 | DOCKER_IMAGE="$(cat "${FEEDSTOCK_ROOT}/.ci_support/${CONFIG}.yaml" | shyaml get-value docker_image.0 quay.io/condaforge/linux-anvil-comp7 )" 66 | fi 67 | fi 68 | 69 | mkdir -p "$ARTIFACTS" 70 | DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}" 71 | rm -f "$DONE_CANARY" 72 | 73 | # Allow people to specify extra default arguments to `docker run` (e.g. `--rm`) 74 | DOCKER_RUN_ARGS="${CONDA_FORGE_DOCKER_RUN_ARGS}" 75 | if [ -z "${CI}" ]; then 76 | DOCKER_RUN_ARGS="-it ${DOCKER_RUN_ARGS}" 77 | fi 78 | 79 | ( endgroup "Configure Docker" ) 2> /dev/null 80 | 81 | ( startgroup "Start Docker" ) 2> /dev/null 82 | 83 | export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}" 84 | export IS_PR_BUILD="${IS_PR_BUILD:-False}" 85 | docker pull "${DOCKER_IMAGE}" 86 | docker run ${DOCKER_RUN_ARGS} \ 87 | -v "${RECIPE_ROOT}":/home/conda/recipe_root:rw,z,delegated \ 88 | -v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root:rw,z,delegated \ 89 | -e CONFIG \ 90 | -e HOST_USER_ID \ 91 | -e UPLOAD_PACKAGES \ 92 | -e IS_PR_BUILD \ 93 | -e GIT_BRANCH \ 94 | -e UPLOAD_ON_BRANCH \ 95 | -e CI \ 96 | -e FEEDSTOCK_NAME \ 97 | -e CPU_COUNT \ 98 | -e BUILD_WITH_CONDA_DEBUG \ 99 | -e BUILD_OUTPUT_ID \ 100 | -e flow_run_id \ 101 | -e remote_url \ 102 | -e sha \ 103 | -e BINSTAR_TOKEN \ 104 | -e FEEDSTOCK_TOKEN \ 105 | -e STAGING_BINSTAR_TOKEN \ 106 | "${DOCKER_IMAGE}" \ 107 | bash \ 108 | "/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh" 109 | 110 | # verify that the end of the script was reached 111 | test -f "$DONE_CANARY" 112 | 113 | # This closes the last group opened in `build_steps.sh` 114 | ( endgroup "Final checks" ) 2> /dev/null -------------------------------------------------------------------------------- /.scripts/run_osx_build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # -*- mode: jinja-shell -*- 4 | 5 | source .scripts/logging_utils.sh 6 | 7 | set -xe 8 | 9 | MINIFORGE_HOME="${MINIFORGE_HOME:-${HOME}/miniforge3}" 10 | MINIFORGE_HOME="${MINIFORGE_HOME%/}" # remove trailing slash 11 | export CONDA_BLD_PATH="${CONDA_BLD_PATH:-${MINIFORGE_HOME}/conda-bld}" 12 | 13 | ( startgroup "Provisioning base env with micromamba" ) 2> /dev/null 14 | MICROMAMBA_VERSION="1.5.10-0" 15 | if [[ "$(uname -m)" == "arm64" ]]; then 16 | osx_arch="osx-arm64" 17 | else 18 | osx_arch="osx-64" 19 | fi 20 | MICROMAMBA_URL="https://github.com/mamba-org/micromamba-releases/releases/download/${MICROMAMBA_VERSION}/micromamba-${osx_arch}" 21 | MAMBA_ROOT_PREFIX="${MINIFORGE_HOME}-micromamba-$(date +%s)" 22 | echo "Downloading micromamba ${MICROMAMBA_VERSION}" 23 | micromamba_exe="$(mktemp -d)/micromamba" 24 | curl -L -o "${micromamba_exe}" "${MICROMAMBA_URL}" 25 | chmod +x "${micromamba_exe}" 26 | echo "Creating environment" 27 | "${micromamba_exe}" create --yes --root-prefix "${MAMBA_ROOT_PREFIX}" --prefix "${MINIFORGE_HOME}" \ 28 | --channel conda-forge \ 29 | pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" 30 | echo "Moving pkgs cache from ${MAMBA_ROOT_PREFIX} to ${MINIFORGE_HOME}" 31 | mv "${MAMBA_ROOT_PREFIX}/pkgs" "${MINIFORGE_HOME}" 32 | echo "Cleaning up micromamba" 33 | rm -rf "${MAMBA_ROOT_PREFIX}" "${micromamba_exe}" || true 34 | ( endgroup "Provisioning base env with micromamba" ) 2> /dev/null 35 | 36 | ( startgroup "Configuring conda" ) 2> /dev/null 37 | echo "Activating environment" 38 | source "${MINIFORGE_HOME}/etc/profile.d/conda.sh" 39 | conda activate base 40 | export CONDA_SOLVER="libmamba" 41 | export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 42 | 43 | 44 | 45 | 46 | 47 | echo -e "\n\nSetting up the condarc and mangling the compiler." 48 | setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml 49 | 50 | if [[ "${CI:-}" != "" ]]; then 51 | mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml 52 | fi 53 | 54 | if [[ "${CI:-}" != "" ]]; then 55 | echo -e "\n\nMangling homebrew in the CI to avoid conflicts." 56 | /usr/bin/sudo mangle_homebrew 57 | /usr/bin/sudo -k 58 | else 59 | echo -e "\n\nNot mangling homebrew as we are not running in CI" 60 | fi 61 | 62 | if [[ "${sha:-}" == "" ]]; then 63 | sha=$(git rev-parse HEAD) 64 | fi 65 | 66 | echo -e "\n\nRunning the build setup script." 67 | source run_conda_forge_build_setup 68 | 69 | 70 | 71 | ( endgroup "Configuring conda" ) 2> /dev/null 72 | 73 | echo -e "\n\nMaking the build clobber file" 74 | make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml 75 | 76 | if [[ -f LICENSE.txt ]]; then 77 | cp LICENSE.txt "recipe/recipe-scripts-license.txt" 78 | fi 79 | 80 | if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then 81 | if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then 82 | EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" 83 | fi 84 | conda debug ./recipe -m ./.ci_support/${CONFIG}.yaml \ 85 | ${EXTRA_CB_OPTIONS:-} \ 86 | --clobber-file ./.ci_support/clobber_${CONFIG}.yaml 87 | 88 | # Drop into an interactive shell 89 | /bin/bash 90 | else 91 | 92 | if [[ "${HOST_PLATFORM}" != "${BUILD_PLATFORM}" ]]; then 93 | EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --no-test" 94 | fi 95 | 96 | conda-build ./recipe -m ./.ci_support/${CONFIG}.yaml \ 97 | --suppress-variables ${EXTRA_CB_OPTIONS:-} \ 98 | --clobber-file ./.ci_support/clobber_${CONFIG}.yaml \ 99 | --extra-meta flow_run_id="$flow_run_id" remote_url="$remote_url" sha="$sha" 100 | 101 | ( startgroup "Inspecting artifacts" ) 2> /dev/null 102 | 103 | # inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 104 | command -v inspect_artifacts >/dev/null 2>&1 && inspect_artifacts --recipe-dir ./recipe -m ./.ci_support/${CONFIG}.yaml || echo "inspect_artifacts needs conda-forge-ci-setup >=4.9.4" 105 | 106 | ( endgroup "Inspecting artifacts" ) 2> /dev/null 107 | ( startgroup "Validating outputs" ) 2> /dev/null 108 | 109 | validate_recipe_outputs "${FEEDSTOCK_NAME}" 110 | 111 | ( endgroup "Validating outputs" ) 2> /dev/null 112 | 113 | ( startgroup "Uploading packages" ) 2> /dev/null 114 | 115 | if [[ "${UPLOAD_PACKAGES}" != "False" ]] && [[ "${IS_PR_BUILD}" == "False" ]]; then 116 | upload_package --validate --feedstock-name="${FEEDSTOCK_NAME}" ./ ./recipe ./.ci_support/${CONFIG}.yaml 117 | fi 118 | 119 | ( endgroup "Uploading packages" ) 2> /dev/null 120 | fi -------------------------------------------------------------------------------- /.scripts/run_win_build.bat: -------------------------------------------------------------------------------- 1 | :: PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here 2 | :: will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent 3 | :: changes to this script, consider a proposal to conda-smithy so that other feedstocks can also 4 | :: benefit from the improvement. 5 | 6 | :: INPUTS (required environment variables) 7 | :: CONFIG: name of the .ci_support/*.yaml file for this job 8 | :: CI: azure, github_actions, or unset 9 | :: MINIFORGE_HOME: where to install the base conda environment 10 | :: UPLOAD_PACKAGES: true or false 11 | :: UPLOAD_ON_BRANCH: true or false 12 | 13 | setlocal enableextensions enabledelayedexpansion 14 | 15 | FOR %%A IN ("%~dp0.") DO SET "REPO_ROOT=%%~dpA" 16 | if "%MINIFORGE_HOME%"=="" set "MINIFORGE_HOME=%USERPROFILE%\Miniforge3" 17 | :: Remove trailing backslash, if present 18 | if "%MINIFORGE_HOME:~-1%"=="\" set "MINIFORGE_HOME=%MINIFORGE_HOME:~0,-1%" 19 | call :start_group "Provisioning base env with micromamba" 20 | set "MAMBA_ROOT_PREFIX=%MINIFORGE_HOME%-micromamba-%RANDOM%" 21 | set "MICROMAMBA_VERSION=1.5.10-0" 22 | set "MICROMAMBA_URL=https://github.com/mamba-org/micromamba-releases/releases/download/%MICROMAMBA_VERSION%/micromamba-win-64" 23 | set "MICROMAMBA_TMPDIR=%TMP%\micromamba-%RANDOM%" 24 | set "MICROMAMBA_EXE=%MICROMAMBA_TMPDIR%\micromamba.exe" 25 | 26 | echo Downloading micromamba %MICROMAMBA_VERSION% 27 | if not exist "%MICROMAMBA_TMPDIR%" mkdir "%MICROMAMBA_TMPDIR%" 28 | powershell -ExecutionPolicy Bypass -Command "(New-Object Net.WebClient).DownloadFile('%MICROMAMBA_URL%', '%MICROMAMBA_EXE%')" 29 | if !errorlevel! neq 0 exit /b !errorlevel! 30 | 31 | echo Creating environment 32 | call "%MICROMAMBA_EXE%" create --yes --root-prefix "%MAMBA_ROOT_PREFIX%" --prefix "%MINIFORGE_HOME%" ^ 33 | --channel conda-forge ^ 34 | pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" 35 | if !errorlevel! neq 0 exit /b !errorlevel! 36 | echo Removing %MAMBA_ROOT_PREFIX% 37 | del /S /Q "%MAMBA_ROOT_PREFIX%" >nul 38 | del /S /Q "%MICROMAMBA_TMPDIR%" >nul 39 | call :end_group 40 | 41 | call :start_group "Configuring conda" 42 | 43 | :: Activate the base conda environment 44 | echo Activating environment 45 | call "%MINIFORGE_HOME%\Scripts\activate.bat" 46 | :: Configure the solver 47 | set "CONDA_SOLVER=libmamba" 48 | if !errorlevel! neq 0 exit /b !errorlevel! 49 | set "CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1" 50 | 51 | :: Set basic configuration 52 | echo Setting up configuration 53 | setup_conda_rc .\ ".\recipe" .\.ci_support\%CONFIG%.yaml 54 | if !errorlevel! neq 0 exit /b !errorlevel! 55 | echo Running build setup 56 | CALL run_conda_forge_build_setup 57 | 58 | 59 | if !errorlevel! neq 0 exit /b !errorlevel! 60 | 61 | if EXIST LICENSE.txt ( 62 | echo Copying feedstock license 63 | copy LICENSE.txt "recipe\\recipe-scripts-license.txt" 64 | ) 65 | if NOT [%HOST_PLATFORM%] == [%BUILD_PLATFORM%] ( 66 | if [%CROSSCOMPILING_EMULATOR%] == [] ( 67 | set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --no-test" 68 | ) 69 | ) 70 | 71 | if NOT [%flow_run_id%] == [] ( 72 | set "EXTRA_CB_OPTIONS=%EXTRA_CB_OPTIONS% --extra-meta flow_run_id=%flow_run_id% remote_url=%remote_url% sha=%sha%" 73 | ) 74 | 75 | call :end_group 76 | 77 | :: Build the recipe 78 | echo Building recipe 79 | conda-build.exe "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% 80 | if !errorlevel! neq 0 exit /b !errorlevel! 81 | 82 | call :start_group "Inspecting artifacts" 83 | :: inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 84 | WHERE inspect_artifacts >nul 2>nul && inspect_artifacts --recipe-dir ".\recipe" -m .ci_support\%CONFIG%.yaml || echo "inspect_artifacts needs conda-forge-ci-setup >=4.9.4" 85 | call :end_group 86 | 87 | :: Prepare some environment variables for the upload step 88 | if /i "%CI%" == "github_actions" ( 89 | set "FEEDSTOCK_NAME=%GITHUB_REPOSITORY:*/=%" 90 | set "GIT_BRANCH=%GITHUB_REF:refs/heads/=%" 91 | if /i "%GITHUB_EVENT_NAME%" == "pull_request" ( 92 | set "IS_PR_BUILD=True" 93 | ) else ( 94 | set "IS_PR_BUILD=False" 95 | ) 96 | set "TEMP=%RUNNER_TEMP%" 97 | ) 98 | if /i "%CI%" == "azure" ( 99 | set "FEEDSTOCK_NAME=%BUILD_REPOSITORY_NAME:*/=%" 100 | set "GIT_BRANCH=%BUILD_SOURCEBRANCHNAME%" 101 | if /i "%BUILD_REASON%" == "PullRequest" ( 102 | set "IS_PR_BUILD=True" 103 | ) else ( 104 | set "IS_PR_BUILD=False" 105 | ) 106 | set "TEMP=%UPLOAD_TEMP%" 107 | ) 108 | 109 | :: Validate 110 | call :start_group "Validating outputs" 111 | validate_recipe_outputs "%FEEDSTOCK_NAME%" 112 | if !errorlevel! neq 0 exit /b !errorlevel! 113 | call :end_group 114 | 115 | if /i "%UPLOAD_PACKAGES%" == "true" ( 116 | if /i "%IS_PR_BUILD%" == "false" ( 117 | call :start_group "Uploading packages" 118 | if not exist "%TEMP%\" md "%TEMP%" 119 | set "TMP=%TEMP%" 120 | upload_package --validate --feedstock-name="%FEEDSTOCK_NAME%" .\ ".\recipe" .ci_support\%CONFIG%.yaml 121 | if !errorlevel! neq 0 exit /b !errorlevel! 122 | call :end_group 123 | ) 124 | ) 125 | 126 | exit 127 | 128 | :: Logging subroutines 129 | 130 | :start_group 131 | if /i "%CI%" == "github_actions" ( 132 | echo ::group::%~1 133 | exit /b 134 | ) 135 | if /i "%CI%" == "azure" ( 136 | echo ##[group]%~1 137 | exit /b 138 | ) 139 | echo %~1 140 | exit /b 141 | 142 | :end_group 143 | if /i "%CI%" == "github_actions" ( 144 | echo ::endgroup:: 145 | exit /b 146 | ) 147 | if /i "%CI%" == "azure" ( 148 | echo ##[endgroup] 149 | exit /b 150 | ) 151 | exit /b -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | BSD-3-Clause license 2 | Copyright (c) 2015-2022, conda-forge contributors 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | 1. Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | 2. Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | 3. Neither the name of the copyright holder nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR 21 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 27 | DAMAGE. 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | About python-duckdb-split-feedstock 2 | =================================== 3 | 4 | Feedstock license: [BSD-3-Clause](https://github.com/conda-forge/python-duckdb-feedstock/blob/main/LICENSE.txt) 5 | 6 | Home: https://www.duckdb.org/ 7 | 8 | Package license: MIT 9 | 10 | Summary: An Embeddable Analytical Database 11 | 12 | Development: https://github.com/duckdb/duckdb 13 | 14 | Documentation: https://duckdb.org/docs/index.html 15 | 16 | DuckDB is an embedded database designed to execute analytical SQL queries 17 | fast while embedded in another process. It is designed to be easy to 18 | install and easy to use. 19 | 20 | 21 | Current build status 22 | ==================== 23 | 24 | 25 | 26 | 27 | 28 | 29 | 218 | 219 |
Azure 30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 47 | 52 | 53 | 54 | 59 | 60 | 61 | 66 | 67 | 68 | 73 | 74 | 75 | 80 | 81 | 82 | 87 | 88 | 89 | 94 | 95 | 96 | 101 | 102 | 103 | 108 | 109 | 110 | 115 | 116 | 117 | 122 | 123 | 124 | 129 | 130 | 131 | 136 | 137 | 138 | 143 | 144 | 145 | 150 | 151 | 152 | 157 | 158 | 159 | 164 | 165 | 166 | 171 | 172 | 173 | 178 | 179 | 180 | 185 | 186 | 187 | 192 | 193 | 194 | 199 | 200 | 201 | 206 | 207 | 208 | 213 | 214 | 215 |
VariantStatus
linux_64_python3.10.____cpython 41 | 42 | variant 43 | 44 |
linux_64_python3.11.____cpython 48 | 49 | variant 50 | 51 |
linux_64_python3.12.____cpython 55 | 56 | variant 57 | 58 |
linux_64_python3.13.____cp313 62 | 63 | variant 64 | 65 |
linux_64_python3.9.____cpython 69 | 70 | variant 71 | 72 |
linux_aarch64_python3.10.____cpython 76 | 77 | variant 78 | 79 |
linux_aarch64_python3.11.____cpython 83 | 84 | variant 85 | 86 |
linux_aarch64_python3.12.____cpython 90 | 91 | variant 92 | 93 |
linux_aarch64_python3.13.____cp313 97 | 98 | variant 99 | 100 |
linux_aarch64_python3.9.____cpython 104 | 105 | variant 106 | 107 |
osx_64_python3.10.____cpython 111 | 112 | variant 113 | 114 |
osx_64_python3.11.____cpython 118 | 119 | variant 120 | 121 |
osx_64_python3.12.____cpython 125 | 126 | variant 127 | 128 |
osx_64_python3.13.____cp313 132 | 133 | variant 134 | 135 |
osx_64_python3.9.____cpython 139 | 140 | variant 141 | 142 |
osx_arm64_python3.10.____cpython 146 | 147 | variant 148 | 149 |
osx_arm64_python3.11.____cpython 153 | 154 | variant 155 | 156 |
osx_arm64_python3.12.____cpython 160 | 161 | variant 162 | 163 |
osx_arm64_python3.13.____cp313 167 | 168 | variant 169 | 170 |
osx_arm64_python3.9.____cpython 174 | 175 | variant 176 | 177 |
win_64_python3.10.____cpython 181 | 182 | variant 183 | 184 |
win_64_python3.11.____cpython 188 | 189 | variant 190 | 191 |
win_64_python3.12.____cpython 195 | 196 | variant 197 | 198 |
win_64_python3.13.____cp313 202 | 203 | variant 204 | 205 |
win_64_python3.9.____cpython 209 | 210 | variant 211 | 212 |
216 |
217 |
220 | 221 | Current release info 222 | ==================== 223 | 224 | | Name | Downloads | Version | Platforms | 225 | | --- | --- | --- | --- | 226 | | [![Conda Recipe](https://img.shields.io/badge/recipe-duckdb-green.svg)](https://anaconda.org/conda-forge/duckdb) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/duckdb.svg)](https://anaconda.org/conda-forge/duckdb) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/duckdb.svg)](https://anaconda.org/conda-forge/duckdb) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/duckdb.svg)](https://anaconda.org/conda-forge/duckdb) | 227 | | [![Conda Recipe](https://img.shields.io/badge/recipe-python--duckdb-green.svg)](https://anaconda.org/conda-forge/python-duckdb) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/python-duckdb.svg)](https://anaconda.org/conda-forge/python-duckdb) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/python-duckdb.svg)](https://anaconda.org/conda-forge/python-duckdb) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/python-duckdb.svg)](https://anaconda.org/conda-forge/python-duckdb) | 228 | 229 | Installing python-duckdb-split 230 | ============================== 231 | 232 | Installing `python-duckdb-split` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: 233 | 234 | ``` 235 | conda config --add channels conda-forge 236 | conda config --set channel_priority strict 237 | ``` 238 | 239 | Once the `conda-forge` channel has been enabled, `duckdb, python-duckdb` can be installed with `conda`: 240 | 241 | ``` 242 | conda install duckdb python-duckdb 243 | ``` 244 | 245 | or with `mamba`: 246 | 247 | ``` 248 | mamba install duckdb python-duckdb 249 | ``` 250 | 251 | It is possible to list all of the versions of `duckdb` available on your platform with `conda`: 252 | 253 | ``` 254 | conda search duckdb --channel conda-forge 255 | ``` 256 | 257 | or with `mamba`: 258 | 259 | ``` 260 | mamba search duckdb --channel conda-forge 261 | ``` 262 | 263 | Alternatively, `mamba repoquery` may provide more information: 264 | 265 | ``` 266 | # Search all versions available on your platform: 267 | mamba repoquery search duckdb --channel conda-forge 268 | 269 | # List packages depending on `duckdb`: 270 | mamba repoquery whoneeds duckdb --channel conda-forge 271 | 272 | # List dependencies of `duckdb`: 273 | mamba repoquery depends duckdb --channel conda-forge 274 | ``` 275 | 276 | 277 | About conda-forge 278 | ================= 279 | 280 | [![Powered by 281 | NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](https://numfocus.org) 282 | 283 | conda-forge is a community-led conda channel of installable packages. 284 | In order to provide high-quality builds, the process has been automated into the 285 | conda-forge GitHub organization. The conda-forge organization contains one repository 286 | for each of the installable packages. Such a repository is known as a *feedstock*. 287 | 288 | A feedstock is made up of a conda recipe (the instructions on what and how to build 289 | the package) and the necessary configurations for automatic building using freely 290 | available continuous integration services. Thanks to the awesome service provided by 291 | [Azure](https://azure.microsoft.com/en-us/services/devops/), [GitHub](https://github.com/), 292 | [CircleCI](https://circleci.com/), [AppVeyor](https://www.appveyor.com/), 293 | [Drone](https://cloud.drone.io/welcome), and [TravisCI](https://travis-ci.com/) 294 | it is possible to build and upload installable packages to the 295 | [conda-forge](https://anaconda.org/conda-forge) [anaconda.org](https://anaconda.org/) 296 | channel for Linux, Windows and OSX respectively. 297 | 298 | To manage the continuous integration and simplify feedstock maintenance 299 | [conda-smithy](https://github.com/conda-forge/conda-smithy) has been developed. 300 | Using the ``conda-forge.yml`` within this repository, it is possible to re-render all of 301 | this feedstock's supporting files (e.g. the CI configuration files) with ``conda smithy rerender``. 302 | 303 | For more information please check the [conda-forge documentation](https://conda-forge.org/docs/). 304 | 305 | Terminology 306 | =========== 307 | 308 | **feedstock** - the conda recipe (raw material), supporting scripts and CI configuration. 309 | 310 | **conda-smithy** - the tool which helps orchestrate the feedstock. 311 | Its primary use is in the construction of the CI ``.yml`` files 312 | and simplify the management of *many* feedstocks. 313 | 314 | **conda-forge** - the place where the feedstock and smithy live and work to 315 | produce the finished article (built conda distributions) 316 | 317 | 318 | Updating python-duckdb-split-feedstock 319 | ====================================== 320 | 321 | If you would like to improve the python-duckdb-split recipe or build a new 322 | package version, please fork this repository and submit a PR. Upon submission, 323 | your changes will be run on the appropriate platforms to give the reviewer an 324 | opportunity to confirm that the changes result in a successful build. Once 325 | merged, the recipe will be re-built and uploaded automatically to the 326 | `conda-forge` channel, whereupon the built conda packages will be available for 327 | everybody to install and use from the `conda-forge` channel. 328 | Note that all branches in the conda-forge/python-duckdb-split-feedstock are 329 | immediately built and any created packages are uploaded, so PRs should be based 330 | on branches in forks and branches in the main repository should only be used to 331 | build distinct package versions. 332 | 333 | In order to produce a uniquely identifiable distribution: 334 | * If the version of a package **is not** being increased, please add or increase 335 | the [``build/number``](https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build-number-and-string). 336 | * If the version of a package **is** being increased, please remember to return 337 | the [``build/number``](https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build-number-and-string) 338 | back to 0. 339 | 340 | Feedstock Maintainers 341 | ===================== 342 | 343 | * [@dhirschfeld](https://github.com/dhirschfeld/) 344 | * [@gforsyth](https://github.com/gforsyth/) 345 | * [@jonashaag](https://github.com/jonashaag/) 346 | * [@mariusvniekerk](https://github.com/mariusvniekerk/) 347 | * [@sugatoray](https://github.com/sugatoray/) 348 | * [@xhochy](https://github.com/xhochy/) 349 | 350 | -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- 1 | # This file was generated automatically from conda-smithy. To update this configuration, 2 | # update the conda-forge.yml and/or the recipe/meta.yaml. 3 | # -*- mode: yaml -*- 4 | 5 | stages: 6 | - stage: Check 7 | jobs: 8 | - job: Skip 9 | pool: 10 | vmImage: 'ubuntu-22.04' 11 | variables: 12 | DECODE_PERCENTS: 'false' 13 | RET: 'true' 14 | steps: 15 | - checkout: self 16 | fetchDepth: '2' 17 | - bash: | 18 | git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "` 19 | echo "##vso[task.setvariable variable=log]$git_log" 20 | displayName: Obtain commit message 21 | - bash: echo "##vso[task.setvariable variable=RET]false" 22 | condition: and(eq(variables['Build.Reason'], 'PullRequest'), or(contains(variables.log, '[skip azp]'), contains(variables.log, '[azp skip]'), contains(variables.log, '[skip ci]'), contains(variables.log, '[ci skip]'))) 23 | displayName: Skip build? 24 | - bash: echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET" 25 | name: result 26 | displayName: Export result 27 | - stage: Build 28 | condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true')) 29 | dependsOn: Check 30 | jobs: 31 | - template: ./.azure-pipelines/azure-pipelines-linux.yml 32 | - template: ./.azure-pipelines/azure-pipelines-osx.yml 33 | - template: ./.azure-pipelines/azure-pipelines-win.yml -------------------------------------------------------------------------------- /build-locally.py: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | """exec" "python3" "$0" "$@" #""" # fmt: off # fmt: on 3 | # 4 | # This file has been generated by conda-smithy in order to build the recipe 5 | # locally. 6 | # 7 | # The line above this comment is a bash / sh / zsh guard 8 | # to stop people from running it with the wrong interpreter 9 | import glob 10 | import os 11 | import platform 12 | import subprocess 13 | import sys 14 | from argparse import ArgumentParser 15 | 16 | 17 | def setup_environment(ns): 18 | os.environ["CONFIG"] = ns.config 19 | os.environ["UPLOAD_PACKAGES"] = "False" 20 | os.environ["IS_PR_BUILD"] = "True" 21 | if ns.debug: 22 | os.environ["BUILD_WITH_CONDA_DEBUG"] = "1" 23 | if ns.output_id: 24 | os.environ["BUILD_OUTPUT_ID"] = ns.output_id 25 | if "MINIFORGE_HOME" not in os.environ: 26 | os.environ["MINIFORGE_HOME"] = os.path.join( 27 | os.path.dirname(__file__), "miniforge3" 28 | ) 29 | 30 | # The default cache location might not be writable using docker on macOS. 31 | if ns.config.startswith("linux") and platform.system() == "Darwin": 32 | os.environ["CONDA_FORGE_DOCKER_RUN_ARGS"] = ( 33 | os.environ.get("CONDA_FORGE_DOCKER_RUN_ARGS", "") 34 | + " -e RATTLER_CACHE_DIR=/tmp/rattler_cache" 35 | ) 36 | 37 | 38 | def run_docker_build(ns): 39 | script = ".scripts/run_docker_build.sh" 40 | subprocess.check_call([script]) 41 | 42 | 43 | def run_osx_build(ns): 44 | script = ".scripts/run_osx_build.sh" 45 | subprocess.check_call([script]) 46 | 47 | 48 | def run_win_build(ns): 49 | script = ".scripts/run_win_build.bat" 50 | subprocess.check_call(["cmd", "/D", "/Q", "/C", f"CALL {script}"]) 51 | 52 | 53 | def verify_config(ns): 54 | choices_filter = ns.filter or "*" 55 | valid_configs = { 56 | os.path.basename(f)[:-5] 57 | for f in glob.glob(f".ci_support/{choices_filter}.yaml") 58 | } 59 | if choices_filter != "*": 60 | print(f"filtering for '{choices_filter}.yaml' configs") 61 | print(f"valid configs are {valid_configs}") 62 | if ns.config in valid_configs: 63 | print("Using " + ns.config + " configuration") 64 | return 65 | elif len(valid_configs) == 1: 66 | ns.config = valid_configs.pop() 67 | print("Found " + ns.config + " configuration") 68 | elif ns.config is None: 69 | print("config not selected, please choose from the following:\n") 70 | selections = list(enumerate(sorted(valid_configs), 1)) 71 | for i, c in selections: 72 | print(f"{i}. {c}") 73 | try: 74 | s = input("\n> ") 75 | except KeyboardInterrupt: 76 | print("\nno option selected, bye!", file=sys.stderr) 77 | sys.exit(1) 78 | idx = int(s) - 1 79 | ns.config = selections[idx][1] 80 | print(f"selected {ns.config}") 81 | else: 82 | raise ValueError("config " + ns.config + " is not valid") 83 | if ( 84 | ns.config.startswith("osx") 85 | and platform.system() == "Darwin" 86 | and not os.environ.get("OSX_SDK_DIR") 87 | ): 88 | raise RuntimeError( 89 | "Need OSX_SDK_DIR env variable set. Run 'export OSX_SDK_DIR=$PWD/SDKs' " 90 | "to download the SDK automatically to '$PWD/SDKs/MacOSX.sdk'. " 91 | "Note: OSX_SDK_DIR must be set to an absolute path. " 92 | "Setting this variable implies agreement to the licensing terms of the SDK by Apple." 93 | ) 94 | 95 | 96 | def main(args=None): 97 | p = ArgumentParser("build-locally") 98 | p.add_argument("config", default=None, nargs="?") 99 | p.add_argument( 100 | "--filter", 101 | default=None, 102 | help="Glob string to filter which build choices are presented in interactive mode.", 103 | ) 104 | p.add_argument( 105 | "--debug", 106 | action="store_true", 107 | help="Setup debug environment using `conda debug`", 108 | ) 109 | p.add_argument( 110 | "--output-id", help="If running debug, specify the output to setup." 111 | ) 112 | 113 | ns = p.parse_args(args=args) 114 | verify_config(ns) 115 | setup_environment(ns) 116 | 117 | try: 118 | if ns.config.startswith("linux") or ( 119 | ns.config.startswith("osx") and platform.system() == "Linux" 120 | ): 121 | run_docker_build(ns) 122 | elif ns.config.startswith("osx"): 123 | run_osx_build(ns) 124 | elif ns.config.startswith("win"): 125 | run_win_build(ns) 126 | finally: 127 | recipe_license_file = os.path.join( 128 | "recipe", "recipe-scripts-license.txt" 129 | ) 130 | if os.path.exists(recipe_license_file): 131 | os.remove(recipe_license_file) 132 | 133 | 134 | if __name__ == "__main__": 135 | main() 136 | -------------------------------------------------------------------------------- /conda-forge.yml: -------------------------------------------------------------------------------- 1 | azure: 2 | settings_win: 3 | variables: 4 | SET_PAGEFILE: 'True' 5 | build_platform: 6 | linux_aarch64: linux_64 7 | osx_arm64: osx_64 8 | conda_build: 9 | pkg_format: '2' 10 | conda_forge_output_validation: true 11 | github: 12 | branch_name: main 13 | tooling_branch_name: main 14 | test: native_and_emulated 15 | -------------------------------------------------------------------------------- /recipe/0001-fix-arrowfs-skip-arrow-fs-test-on-windows.patch: -------------------------------------------------------------------------------- 1 | From bcc58420b8bc685059580c56523b076805e894c2 Mon Sep 17 00:00:00 2001 2 | From: Gil Forsyth 3 | Date: Mon, 2 Oct 2023 14:18:16 -0400 4 | Subject: [PATCH 1/4] fix(arrowfs): skip arrow fs test on windows 5 | 6 | --- 7 | tools/pythonpkg/tests/fast/test_filesystem.py | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/tools/pythonpkg/tests/fast/test_filesystem.py b/tools/pythonpkg/tests/fast/test_filesystem.py 11 | index cbf6dac..c20f5d8 100644 12 | --- a/tools/pythonpkg/tests/fast/test_filesystem.py 13 | +++ b/tools/pythonpkg/tests/fast/test_filesystem.py 14 | @@ -139,6 +139,7 @@ class TestPythonFilesystem: 15 | with raises(ModuleNotFoundError): 16 | duckdb_cursor.register_filesystem(None) 17 | 18 | + @mark.skipif(sys.platform.startswith("win"), reason="Untested on windows upstream and fails on conda-forge") 19 | @mark.skipif(sys.version_info < (3, 8), reason="ArrowFSWrapper requires python 3.8 or higher") 20 | def test_arrow_fs_wrapper(self, tmp_path: Path, duckdb_cursor: DuckDBPyConnection): 21 | fs = importorskip('pyarrow.fs') 22 | -------------------------------------------------------------------------------- /recipe/build-duckdb.bat: -------------------------------------------------------------------------------- 1 | @echo on 2 | 3 | %PYTHON% -m pip install tools/pythonpkg -vv 4 | if %ERRORLEVEL% neq 0 exit 1 5 | -------------------------------------------------------------------------------- /recipe/build-duckdb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euxo pipefail 4 | 5 | if [[ "$target_platform" == "linux-ppc64le" ]]; then 6 | # avoid error 'relocation truncated to fit: R_PPC64_REL24' 7 | export CFLAGS="$(echo ${CFLAGS} | sed 's/-fno-plt//g') -fplt" 8 | export CXXFLAGS="$(echo ${CXXFLAGS} | sed 's/-fno-plt//g') -fplt" 9 | fi 10 | 11 | if [[ "$target_platform" == "linux-aarch64" ]]; then 12 | # linux_aarch64 with the jemalloc extension has trouble finding pthread symbols 13 | export CFLAGS="${CFLAGS} -pthread" 14 | export CXXFLAGS="${CXXFLAGS} -pthread" 15 | fi 16 | 17 | ${PYTHON} -m pip install --no-deps --no-build-isolation tools/pythonpkg -vv 18 | -------------------------------------------------------------------------------- /recipe/meta.yaml: -------------------------------------------------------------------------------- 1 | {% set name = "duckdb" %} 2 | {% set version = "1.3.0" %} 3 | 4 | package: 5 | name: python-{{ name|lower }}-split 6 | version: {{ version }} 7 | 8 | source: 9 | url: https://github.com/duckdb/{{ name }}/archive/v{{ version }}.tar.gz 10 | sha256: 9c8c5ac0d26f2a97d81867485cf501fd0491ad6ecaf593118cc6122f2fc8924c 11 | patches: 12 | - 0001-fix-arrowfs-skip-arrow-fs-test-on-windows.patch 13 | 14 | build: 15 | number: 0 16 | script_env: 17 | - SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} 18 | - JEMALLOC_SYS_WITH_LG_PAGE=16 # [aarch64 or ppc64le] 19 | 20 | outputs: 21 | - name: python-{{ name|lower }} 22 | script: build-duckdb.sh # [unix] 23 | script: build-duckdb.bat # [win] 24 | requirements: 25 | build: 26 | - python # [build_platform != target_platform] 27 | - cross-python_{{ target_platform }} # [build_platform != target_platform] 28 | - pybind11 >=2.6 # [build_platform != target_platform] 29 | - {{ stdlib('c') }} 30 | - {{ compiler('c') }} 31 | - {{ compiler('cxx') }} 32 | host: 33 | - pybind11 >=2.6 34 | - python 35 | - pip 36 | - setuptools 37 | - setuptools_scm <7 38 | run: 39 | - python 40 | 41 | test: 42 | imports: 43 | - duckdb 44 | requires: 45 | - pip 46 | - pytest 47 | - mypy 48 | - fsspec 49 | - google-cloud-storage 50 | - pandas 51 | # Remove again 52 | - pytest <8 53 | - pytest-reraise 54 | source_files: 55 | - tools/pythonpkg/tests 56 | commands: 57 | - pip check 58 | # Ensure we output UTF-8 on windows 59 | - set PYTHONIOENCODING=utf-8 # [win] 60 | # ppc64le/aarch64 is emulated and fails to run the test suite here 61 | # Skip slow tests to avoid memory issues in CI, skip stub tests that is fragile under new version of mypy 62 | - pytest -sv tools/pythonpkg/tests --ignore=tools/pythonpkg/tests/slow/ --ignore=tools/pythonpkg/tests/stubs/ # [not (ppc64le or aarch64)] 63 | - name: {{ name|lower }} 64 | build: 65 | noarch: generic 66 | skip: true # [not linux64] 67 | requirements: 68 | run: 69 | - {{ pin_subpackage('python-duckdb', max_pin="x.x.x") }} 70 | test: 71 | imports: 72 | - duckdb 73 | 74 | 75 | about: 76 | home: https://www.duckdb.org/ 77 | license: MIT 78 | license_family: MIT 79 | license_file: LICENSE 80 | summary: An Embeddable Analytical Database 81 | description: | 82 | DuckDB is an embedded database designed to execute analytical SQL queries 83 | fast while embedded in another process. It is designed to be easy to 84 | install and easy to use. 85 | doc_url: https://duckdb.org/docs/index.html 86 | dev_url: https://github.com/duckdb/duckdb 87 | 88 | extra: 89 | recipe-maintainers: 90 | - jonashaag 91 | - sugatoray 92 | - dhirschfeld 93 | - xhochy 94 | - mariusvniekerk 95 | - gforsyth 96 | --------------------------------------------------------------------------------