No project description provided
Project description
whl2conda
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.
Features
-
Performance: because it does not need to create conda environments for building, this is much faster than solutions involving conda-build.
-
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.
-
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.
-
Project configuration: project-specific options can be saved in project's
pyproject.toml
file. -
Install support: supports installing conda package into a conda environment for testing prior to deployment.
-
Hides pypi dependencies: if the original pypi dependencies are included in the python dist-info included in the conda package, this can result in problems if pip or other python packaging tools are used in the conda environment. To avoid this, whl2conda changes these dependencies to extras.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for whl2conda-23.8.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2292b8161cb095c7d088a233ddcd79fb9742d53b2f373e2571441e8590d9837d |
|
MD5 | 53a58d6c5a7e3a921dc325ee722125b0 |
|
BLAKE2b-256 | bf497f60c544e0d462881a7d093db0cfaea7facc9b0b8bd6b9b3f6d42f86875d |