Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Adding conda install #99

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions .github/workflows/anaconda-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: anaconda-publish

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: publish-to-conda
uses: shimwell/anaconda-publish@main
with:
subDir: 'conda'
channels: '-c fusion-energy -c conda-forge'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
publish: true
test_all: true
# openmc conda install does not support windows currently
convert_win: false
convert_osx: true
5 changes: 5 additions & 0 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python:
- 3.10
- 3.9
- 3.8
- 3.7
47 changes: 47 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% set name = "openmc_dagmc_wrapper" %}

package:
name: "{{ name|lower }}"
# conda package version tag is obtained from the git release version tag
version: {{ GIT_DESCRIBE_TAG }}

source:
path: ..

build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt

requirements:
build:
- python {{ python }}
- setuptools
run:
- neutronics_material_maker
- dagmc_h5m_file_inspector
- dagmc_bounding_box

test:
imports:
- openmc_dagmc_wrapper
requires:
- pytest
# source_files:
# - tests/
# - examples/
# commands:
# - pytest tests


about:
home: "https://github.com/fusion-energy/openmc_dagmc_wrapper"
license: MIT
license_family: MIT
license_file: LICENSE.txt
doc_url: https://github.com/fusion-energy/openmc_dagmc_wrapper
dev_url: https://github.com/fusion-energy/openmc_dagmc_wrapper
summary: A Python package that extends OpenMC base classes to provide convenience features and standardized tallies when simulating DAGMC geometry with OpenMC.

extra:
recipe-maintainers:
- shimwell