diff --git a/.github/workflows/python_deploy_dev.yml b/.github/workflows/python_deploy_dev.yml index fd93e23..a99d00b 100644 --- a/.github/workflows/python_deploy_dev.yml +++ b/.github/workflows/python_deploy_dev.yml @@ -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: 'plate-simulation' 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 }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2248025..cde59fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: exclude: \.mdj$ - 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 diff --git a/meta.yaml b/recipe.yaml similarity index 65% rename from meta.yaml rename to recipe.yaml index 2166b0f..d606656 100644 --- a/meta.yaml +++ b/recipe.yaml @@ -1,17 +1,20 @@ -{% set name = "plate-simulation" %} -{% set version = "0.2.0a1" %} +schema_version: 1 + +context: + name: plate-simulation + version: 0.2.0a1 package: - name: {{ name|lower }} - version: {{ version }} + name: ${{ name|lower }} + version: ${{ version }} source: - path: ../{{ name }} # Used to build the package from the source code + 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: @@ -51,12 +54,16 @@ requirements: - zarr >=2.14.2,<2.15.0 - tbb 2021.12.* - python-tzdata 2023.4.* - run_constrained: + run_constraints: - __glibc >=2.17 about: + summary: Create a specialized mesh, model and simulation for a particular parameterization of the halfspace + overburden and plate geological setting. license: MIT license_file: LICENSE + homepage: https://www.mirageoscience.com/mining-industry-software/geoscience-analyst/python-integration/ + repository: https://github.com/MiraGeoscience/plate-simulation + documentation: https://mirageoscience-plate-simulation.readthedocs-hosted.com/en/release-0.1.0/ extra: recipe-maintainers: diff --git a/tests/version_test.py b/tests/version_test.py index e21117e..487b251 100644 --- a/tests/version_test.py +++ b/tests/version_test.py @@ -30,7 +30,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() @@ -40,7 +40,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():