Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to rattler-build #10

Merged
merged 6 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 22 additions & 40 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 33 additions & 23 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ github:
branch_name: main
tooling_branch_name: main
test: native_and_emulated
conda_build_tool: rattler-build
conda_install_tool: pixi
44 changes: 44 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
# -*- mode: toml -*-

[project]
name = "k9s-feedstock"
version = "3.45.4"
description = "Pixi configuration for conda-forge/k9s-feedstock"
authors = ["@conda-forge/k9s"]
channels = ["conda-forge"]
platforms = ['linux-64', 'osx-64', 'win-64']

[dependencies]
conda-build = ">=24.1"
conda-forge-ci-setup = "4.*"
rattler-build = "*"

[tasks]
inspect-all = "inspect_artifacts --all-packages"
build = "rattler-build build --recipe recipe"
"build-osx_64_" = "rattler-build build --recipe recipe -m .ci_support/osx_64_.yaml"
"inspect-osx_64_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_64_.yaml"
"build-osx_arm64_" = "rattler-build build --recipe recipe -m .ci_support/osx_arm64_.yaml"
"inspect-osx_arm64_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_arm64_.yaml"
"build-win_64_" = "rattler-build build --recipe recipe -m .ci_support/win_64_.yaml"
"inspect-win_64_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/win_64_.yaml"
"build-linux_64_" = "rattler-build build --recipe recipe -m .ci_support/linux_64_.yaml"
"inspect-linux_64_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_.yaml"
"build-linux_aarch64_" = "rattler-build build --recipe recipe -m .ci_support/linux_aarch64_.yaml"
"inspect-linux_aarch64_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_aarch64_.yaml"
"build-linux_ppc64le_" = "rattler-build build --recipe recipe -m .ci_support/linux_ppc64le_.yaml"
"inspect-linux_ppc64le_" = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_ppc64le_.yaml"

[feature.smithy.dependencies]
conda-smithy = "*"

[feature.smithy.tasks]
build-locally = "python ./build-locally.py"
smithy = "conda-smithy"
rerender = "conda-smithy rerender"
lint = "conda-smithy lint recipe"

[environments]
smithy = ["smithy"]
42 changes: 20 additions & 22 deletions recipe/meta.yaml → recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,54 @@
{% set name = "k9s" %}
{% set version = "0.40.5" %}
context:
name: k9s
version: 0.40.5

package:
name: {{ name|lower }}
version: {{ version }}
name: ${{ name|lower }}
version: ${{ version }}

source:
- url: https://github.com/derailed/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: e8f886bd95de67b8239b5444776604d45530aee8bb779229425855e7e1d37d4e
folder: src
target_directory: src
- url: https://raw.githubusercontent.com/xi2/xz/refs/heads/master/LICENSE
sha256: 5c640056d513f276d56635af7a0bed81cb7eac02a31b6e56d40c416557a8d8ce
folder: xz-LICENSE-1
target_directory: xz-LICENSE-1
- url: https://raw.githubusercontent.com/tukaani-project/xz/refs/heads/master/COPYING
sha256: aedbbc280610875b83e246f05957369f84acf9abdb86b884a9ff2f5dd65e8ffb
folder: xz-LICENSE-2
target_directory: xz-LICENSE-2
- url: https://gitlab.com/cznic/mathutil/-/raw/master/LICENSE
sha256: 5c640056d513f276d56635af7a0bed81cb7eac02a31b6e56d40c416557a8d8ce
folder: mathutil-LICENSE
sha256: bfa9bf72a72ca009fd62a8f84fca3dca67e51d93af96352723646599898b6cf5
target_directory: mathutil-LICENSE

build:
script:
- cd src
- go-licenses save . --ignore github.com/derailed/popeye --ignore github.com/xi2/xz --ignore modernc.org/mathutil --save_path ../library_licenses
- go build -v -o $PREFIX/bin/k9s # [not win]
- go build -v -o %LIBRARY_BIN%\k9s.exe # [win]
# Clear out cache to avoid file not removable warnings
- chmod -R u+w $(go env GOPATH) && rm -r $(go env GOPATH) # [unix]
number: 0
- if: win
then: go build -v -o %LIBRARY_BIN%\k9s.exe
else: go build -v -o $PREFIX/bin/k9s
number: 1

requirements:
build:
- {{ compiler('go-nocgo') }}
- ${{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- k9s --help
tests:
- script: k9s --help

about:
home: https://k9scli.io
homepage: https://k9scli.io
summary: 🐶 Kubernetes CLI To Manage Your Clusters In Style!
license: Apache-2.0
license_family: Apache
license_file:
- src/LICENSE
- library_licenses/
- xz-LICENSE-1/LICENSE
- xz-LICENSE-2/COPYING
- mathutil-LICENSE/LICENSE
dev_url: https://github.com/derailed/k9s
doc_url: https://k9scli.io
repository: https://github.com/derailed/k9s
documentation: https://k9scli.io

extra:
recipe-maintainers:
Expand Down
Loading