Skip to main content

Build conda packages directly from pure python wheels

Project description

whl2conda

pypi version conda version documentation
PyPI - Python Version GitHub
CI codecov GitHub issues

Generate conda packages directly from pure python wheels

whl2conda is a command line utility to build and test conda packages generated directly from pure python wheels.

  • Performance: because it does not need to create conda environments in order to build, this is much faster than solutions involving conda-build.

  • Dependency renaming: renames pypi package dependencies to their corresponding conda name. Automatically renames packages from known list collected from conda-forge and supports user-specified rename patterns as well.

  • Multiple package formats: can generate both V1 ('.tar.bz2') and V2 ('.conda') conda package formats. Can also generate a unpacked directory tree for debugging or additional user customization.

  • Project configuration: whl2conda project-specific options can be read from project's pyproject.toml file.

  • Test install support: supports installing conda package into a conda environment for testing prior to deployment.

  • Hides pypi dependencies: rewrites the original pip/pypi dependencies in the installed dist-info to avoid compatibility issues.

Installation

With pip:

pip install whl2conda

With conda (upcoming):

conda install -c conda-forge whl2conda

Quick usage

Generate a conda package in same directory as wheel file:

whl2conda build dist/mypackage-1.2.3-py3-none-any.whl

Add default tool options to pyproject.toml

whl2conda config --generate-pyproject pyproject.toml

Build both wheel and conda package for project:

whl2conda build --build-wheel my-project-root

Create python 3.10 test environment for generated conda package:

whl2conda install dist/mypackage-1.2.3.-py_0.conda --create -n testenv \
  --extra pytest python=3.10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whl2conda-24.5.0.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

whl2conda-24.5.0-py3-none-any.whl (75.2 kB view details)

Uploaded Python 3

File details

Details for the file whl2conda-24.5.0.tar.gz.

File metadata

  • Download URL: whl2conda-24.5.0.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for whl2conda-24.5.0.tar.gz
Algorithm Hash digest
SHA256 f2d6a634015cd910f45afb4982e5938d4ba1d7c0e8cb56f1e15271743b09808c
MD5 ff57e00ec51523a7e1918c3df3ec7cb1
BLAKE2b-256 fa9ec2ce8888a64634c64b6a72b240ea46579409d2e439861aa6f4bdcaecf860

See more details on using hashes here.

File details

Details for the file whl2conda-24.5.0-py3-none-any.whl.

File metadata

  • Download URL: whl2conda-24.5.0-py3-none-any.whl
  • Upload date:
  • Size: 75.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for whl2conda-24.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 749336a903c8c0f5c4aa65d2170b371633d2045980d321cb55737837e6872270
MD5 a01b2f8c57a40a48a204570ec8427324
BLAKE2b-256 d2d796a83d90039837819388931eb6a87ef8247dff3e17d36537fc18c53a4765

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page