diff --git a/conda/build.sh b/conda/build.sh deleted file mode 100755 index 53d2334e..00000000 --- a/conda/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -if [[ $PKG_NAME == "premise-bw25" ]]; then - python -m pip install --no-deps --ignore-installed .[bw25] -elif [[ $PKG_NAME == "premise-bw2" ]]; then - python -m pip install --no-deps --ignore-installed .[bw2] -else - python -m pip install --no-deps --ignore-installed . -fi diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml index fb042e7b..4fc9683c 100644 --- a/conda/conda_build_config.yaml +++ b/conda/conda_build_config.yaml @@ -1,6 +1,3 @@ -python: - - 3.10 - - 3.11 - -numpy: - - 1.26.4 \ No newline at end of file +bw: + - bw2 + - bw25 \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml index 385eed8e..4b3ebfa8 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,116 +1,59 @@ {% set name = "premise" %} {% set version = environ.get('VERSION', "0.0.0") %} + package: - name: {{ name }} + name: {{ name }}-{{ bw }} version: {{ version }} source: path: .. + +{% set bw2data_versions = { + "bw2": "bw2data <4.0.0", + "bw25": "bw2data >=4.0.0" +} %} + build: noarch: python + script: python -m pip install --no-deps --ignore-installed ".[{{ bw }}]" number: 0 -outputs: - - name: {{ name }} - build: - noarch: python - requirements: - host: - - python - - setuptools - run: - - python - - bottleneck - - bw2data - - bw2io - - ecoinvent_interface - - constructive_geometries>=0.9.5 - - cryptography - - datapackage - - numpy <2.0.0 - - pandas - - platformdirs - - prettytable - - pyarrow - - pycountry - - pyYaml - - requests - - schema - - sparse>=0.14.0 - - wurst>=0.4 - - xarray<=2024.2.0 - - tqdm - - unfold - - name: {{ name }}-bw25 - build: - noarch: python - requirements: - host: - - python - - setuptools - run: - - python - - bottleneck - - bw2calc >=2.0.1 - - bw2data >=4.0.3 - - bw2io >=0.9.4 - - ecoinvent_interface - - constructive_geometries>=0.9.5 - - cryptography - - datapackage - - numpy <2.0.0 - - pandas - - platformdirs - - prettytable - - pyarrow - - pycountry - - pyYaml - - requests - - schema - - sparse>=0.14.0 - - wurst>=0.4 - - xarray<=2024.2.0 - - tqdm - - unfold - - name: {{ name }}-bw2 - build: - noarch: python - requirements: - host: - - python - - setuptools - run: - - python - - bottleneck - - bw2calc ==1.8.2 - - bw2data ==3.6.6 - - bw2io ==0.8.12 - - ecoinvent_interface - - constructive_geometries>=0.9.5 - - cryptography - - datapackage - - numpy <2.0.0 - - pandas - - platformdirs - - prettytable - - pyarrow - - pycountry - - pyYaml - - requests - - schema - - sparse>=0.14.0 - - wurst>=0.4 - - xarray<=2024.2.0 - - tqdm - - unfold +requirements: + host: + - python + - setuptools + run: + - {{ bw2data_versions[bw] }} + - python + - bottleneck + - bw2io + - ecoinvent_interface + - constructive_geometries>=0.9.5 + - cryptography + - datapackage + - numpy <2.0.0 + - pandas + - platformdirs + - prettytable + - pyarrow + - pycountry + - pyYaml + - requests + - schema + - sparse>=0.14.0 + - wurst>=0.4 + - xarray<=2024.2.0 + - tqdm + - unfold + + channels: + - conda-forge + - defaults -test: - imports: - - premise about: home: https://github.com/polca/premise