Skip to content

Commit

Permalink
Move meta.yml to meta.yaml, and fixed extraction of project name from…
Browse files Browse the repository at this point in the history
… pyproject.toml
  • Loading branch information
aidanheerdegen committed Aug 16, 2024
1 parent 477e883 commit e4684b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions conda/meta.yml → conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{% set version = data.get('version') %}
{% set pyproj = load_file_data('../pyproject.toml', from_recipe_dir=True) %}
{% set project = pyproj.get('project') %}
{% set name = project.get('name') %}

package:
name: um2nc
name: {{ name }}
version: "{{ version }}"

build:
Expand All @@ -23,7 +24,7 @@ requirements:
host:
- python
- pip
- setupools >=61.0.0
- setuptools >=61.0.0
- versioneer
run:
- python >=3.10
Expand All @@ -39,7 +40,7 @@ test:
source_files:
- test/**
commands:
- py.test
- pytest

about:
home: https://github.com/access-nri/um2nc-standalone
Expand Down

0 comments on commit e4684b8

Please sign in to comment.