Skip to content
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
63 changes: 63 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build Distributions

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-wheel:
name: Build wheel
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install hatch
run: pip install hatch

- name: Build wheel
run: hatch build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl

build-conda:
name: Build conda package
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.12'

- name: Install conda-build and hatch-conda-build
shell: bash -l {0}
run: |
conda install -y conda-build
pip install hatch hatch-conda-build

- name: Build conda package
shell: bash -l {0}
run: hatch build -t conda

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: conda-package
path: dist/conda/*.conda
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-conda-build"]
build-backend = "hatchling.build"


[project]
Expand All @@ -21,10 +20,9 @@ dependencies = [
"numpy",
]

[tool.setuptools.packages.find]
include = ["sealir", "sealir.*"]


[tool.black]
line-length = 79
target-version = ['py312']

[tool.hatch.build.targets.conda]
channels = ["numba", "defaults"]
Loading