Skip to content

A Hatch plugin to enable building a conda package from your pyproject.toml without having to write a separate conda build recipe meta.yaml file

License

Notifications You must be signed in to change notification settings

conda-incubator/hatch-conda-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hatch-conda-build

Conda package builder for Hatch. Hatch is modern, extensible Python project manager.

Usage

Add hatch-conda-build within the build-system.requires field in your pyproject.toml file.

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

Additionally conda-build must be in your current path when running a hatch build.

Options

Additional builder configuration can be set in the following toml header.

[tool.hatch.build.targets.conda]
...

Following table contains available customization of builder behavior.

Option Type Default Description
channels list[str] ['conda-forge'] Channels used for package build and testing
default_numpy_version str "1.22" Default numpy version for build

Building Conda Package

The builder plugin name is called conda.

To start build process, run hatch build -t conda:

$ hatch build -t conda
[conda]
...

License

Plugin hatch-conda-build is distributed under the terms of the MIT license.

About

A Hatch plugin to enable building a conda package from your pyproject.toml without having to write a separate conda build recipe meta.yaml file

Topics

Resources

License

Stars

Watchers

Forks

Languages