diff --git a/.github/workflows/anaconda-publish.yml b/.github/workflows/anaconda-publish.yml new file mode 100644 index 0000000..3df265d --- /dev/null +++ b/.github/workflows/anaconda-publish.yml @@ -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 diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml new file mode 100644 index 0000000..59d8986 --- /dev/null +++ b/conda/conda_build_config.yaml @@ -0,0 +1,5 @@ +python: + - 3.10 + - 3.9 + - 3.8 + - 3.7 diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000..a09eba4 --- /dev/null +++ b/conda/meta.yaml @@ -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