Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions .github/workflows/python_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ concurrency:
jobs:
call-workflow-conda-publish:
name: Publish development conda package on JFrog Artifactory
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_conda_package.yml@main
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_rattler_package.yml@main
with:
package-name: 'param-sweeps'
python-version: '3.10'
virtual-repo-names: '["public-conda-dev"]'
source-repo-names: '["public-conda-dev-local", "conda-forge-dev-remote"]'
publish-repo-names: '["public-conda-dev"]'
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
exclude_types: [jupyter]
- id: check-toml
- id: check-yaml
exclude: ^meta.yaml$
exclude: ^recipe.yaml$
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
Expand Down
39 changes: 22 additions & 17 deletions meta.yaml → recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{% set name = "param-sweeps" %}
{% set version = "0.3.0a1" %}
schema_version: 1

context:
name: param-sweeps
version: 0.3.0a1

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

source:
# url: https://github.com/MiraGeoscience/{{ name }}/archive/v{{ version }}.tar.gz
# sha256: 51e51c36d20fab27e3bb4a91c0a53bcbb0568f3fbf79fb9cf967db5bf665371d
path: ../{{ name }}
path: ../${{ name }}

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0
noarch: python
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

requirements:
host:
Expand All @@ -26,24 +29,26 @@ requirements:
- numpy >=1.26.0,<1.27.0
- geoh5py >=0.10.0b1,<0.11.0a.dev

test:
imports:
- param_sweeps
commands:
- pip check
requires:
- pip
tests:
- python:
imports:
- param_sweeps
- requirements:
run:
- pip
script:
- pip check

about:
home: https://www.mirageoscience.com/mining-industry-software/python-integration/
summary: 'A Parameter sweeper for applications driven by ui.json files.'
summary: A Parameter sweeper for applications driven by ui.json files.
description: |
The param-sweeps library contains two main modules. One is for generating sweep files,
and the other is to run a sweep over some number of parameters in a driver application.
license: MIT
license_file:
- LICENSE
dev_url: https://github.com/MiraGeoscience/param-sweeps
homepage: https://www.mirageoscience.com/mining-industry-software/python-integration/
repository: https://github.com/MiraGeoscience/param-sweeps

extra:
recipe-maintainers:
Expand Down
4 changes: 2 additions & 2 deletions tests/version_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_pyproject_version():


def get_conda_recipe_version():
path = Path(__file__).resolve().parents[1] / "meta.yaml"
path = Path(__file__).resolve().parents[1] / "recipe.yaml"

with open(str(path), encoding="utf-8") as file:
content = file.read()
Expand All @@ -41,7 +41,7 @@ def get_conda_recipe_version():

recipe = yaml.safe_load(rendered_yaml)

return recipe["package"]["version"]
return recipe["context"]["version"]


def test_version_is_consistent():
Expand Down