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

Add datacube-compute #28143

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
53 changes: 53 additions & 0 deletions recipes/datacube-compute/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
context:
name: datacube-compute
version: 0.0.6

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

source:
url: https://github.com/auspatious/datacube-compute/archive/${{ version }}.tar.gz
sha256: 4706e086e4fb5049c88cfd28ea2dfda2f40c56146834e09fb59e8956d5be801a

build:
number: 0
script:
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
- SETUPTOOLS_SCM_PRETEND_VERSION=${{ version }} ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For windows support

Suggested change
- SETUPTOOLS_SCM_PRETEND_VERSION=${{ version }} ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
- set SETUPTOOLS_SCM_PRETEND_VERSION=${{ version }} # [win]
- export SETUPTOOLS_SCM_PRETEND_VERSION=${{ version }} # [unix]
- ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

skip: win
Comment on lines +17 to +18
Copy link
Member Author

@weiji14 weiji14 Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't quite figured out the syntax to set an environment variable after looking at https://github.com/conda/ceps/blob/main/cep-0014.md#script-section (see attempt at 2f2c4df), so skipping Windows builds for now to workaround the SyntaxError.


requirements:
build:
- ${{ compiler('rust') }}
- cargo-bundle-licenses
host:
- pip
- python
- setuptools
- setuptools-rust
- setuptools-scm >=3.4
- wheel
run:
- numpy
- python
- xarray

tests:
- python:
imports:
- datacube_compute
pip_check: true

about:
summary: A library with fast implementations of algorithms for processing satellite images.
license: Apache-2.0
license_file:
- THIRDPARTY.yml
- LICENSE
homepage: https://github.com/auspatious/datacube-compute

extra:
recipe-maintainers:
- alexgleith
- weiji14