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

Thank you! #1151

Open
raybellwaves opened this issue Nov 1, 2024 · 0 comments
Open

Thank you! #1151

raybellwaves opened this issue Nov 1, 2024 · 0 comments

Comments

@raybellwaves
Copy link
Contributor

raybellwaves commented Nov 1, 2024

Once the discussions tab is open (#1150) this can be moved here.

Thank you for this package! It's great and solves my issue. I was using boa to build a conda package but it keep timing out in CI. I recently switch to ratter-build with great success. I want to document somethings I learn along the way to help anyone else trying this.

Switching the boa/recipe.yaml to a rattler build recipe.yaml took me a little bit as I have to look up some expected fields for the spec. My recipe is fairly basic so only have to switch a few things

source.git_url -> source.path

source:
  git_url: ../

->

source:
  path: ../

test.imports -> tests.python.imports

test:
  imports:
    - "mypkg"

->

tests:
  - python:
      imports:
        - "mypkg"

about.home -> about.homepage

about:
  home: "URL"

->

about:
  homepage: "URL"

In CI I switched from:

    - boa build boa-base-recipe --output-folder /tmp/conda
    - boa build boa-recipe --output-folder /tmp/conda
    - for package in "/tmp/conda/noarch"/*;
        do curl -u "${ARTIFACTORY_CLOUD_PUBLISH_USERNAME}:${ARTIFACTORY_CLOUD_PUBLISH_PASSWORD}" -T "$package" "$CONDA_ARTIFACTORY_URL";
      done

to

    - rattler-build build --recipe rattler-build-base-recipe/recipe.yaml --output-dir /tmp/conda
    - rattler-build build --recipe rattler-build-recipe/recipe.yaml --channel https://XXX.jfrog.io/artifactory/api/conda/conda/dtn --channel https://XXX.jfrog.io/artifactory/api/conda/conda --output-dir /tmp/conda
    - for package in "/tmp/conda/noarch"/*;
        do curl -u "${ARTIFACTORY_CLOUD_PUBLISH_USERNAME}:${ARTIFACTORY_CLOUD_PUBLISH_PASSWORD}" -T "$package" "$CONDA_ARTIFACTORY_URL";
      done

Note I have a mypkg-base with no deps and mypkg will full deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant