Commit 587f4e58 authored by Zhang, Chen's avatar Zhang, Chen
Browse files

update conda build config

parent 671706da
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ jobs:
      - name: Build Conda Package
        run: |
          # boa uses mamba to resolve dependencies
          conda install -y anaconda-client boa
          cd conda.recipe
          VERSION=$(versioningit ../) conda mambabuild --output-folder . -c conda-forge . || exit 1
          conda verify noarch/imars3d*.tar.bz2 || exit 1
+10 −7
Original line number Diff line number Diff line
# load information from setup.cfg/setup.py
{% set data = load_setup_py_data() %}
{% set license = data.get('license') %}
{% set description = data.get('description') %}
{% set url = data.get('url') %}
{% set pyproject = load_file_data('pyproject.toml') %}
{% set project = pyproject.get('project', {}) %}
{% set license = project.get('license').get('text') %}
{% set description = project.get('description') %}
{% set project_url = pyproject.get('project', {}).get('urls') %}
{% set url = project_url.get('homepage') %}
# this will get the version set by environment variable
{% set version = environ.get('VERSION') %}
{% set version_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %}
{% set version_number = version.split('+')[0] %}
{% set build_number = 0 %}

package:
  name: imars3d
  version: {{ version }}
  version: {{ version_number }}

source:
  path: ..

build:
  noarch: python
  number: {{ version_number }}
  number: {{ build_number }}
  string: py{{py}}
  script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv

+4 −2
Original line number Diff line number Diff line
@@ -27,9 +27,11 @@ dependencies:
  # utils
  - pre-commit
  # packaging
  - build
  - conda-build
  - anaconda-client
  - boa
  - conda-build < 4
  - conda-verify
  - python-build
  # doc
  - pydocstyle
  - sphinx
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@ description = "Neutron imaging data analysis at ORNL"
dynamic = ["version"]
requires-python = ">=3.10"
license = { text = "BSD 3-Clause License" }
dependencies = [
  "astropy",
]

[project.urls]
homepage = "https://github.com/ornlneutronimaging/iMars3D"