Name | whl2conda JSON |
Version |
24.4.0
JSON |
| download |
home_page | None |
Summary | Build conda packages directly from pure python wheels |
upload_time | 2024-04-14 22:01:16 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
build
conda
wheel
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# whl2conda
[![pypi version](https://img.shields.io/pypi/v/whl2conda.svg)](https://pypi.org/project/whl2conda/)
[![conda version](https://img.shields.io/conda/vn/conda-forge/whl2conda)](https://anaconda.org/conda-forge/whl2conda)
[![documentation](https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat)](https://zuzukin.github.io/whl2conda/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/whl2conda)
![GitHub](https://img.shields.io/github/license/analog-cbarber/whl2conda)
[![CI](https://github.com/zuzukin/whl2conda/actions/workflows/python-package-conda.yml/badge.svg)](https://github.com/zuzukin/whl2conda/actions/workflows/python-package-conda.yml) [![codecov](https://codecov.io/gh/zuzukin/whl2conda/graph/badge.svg?token=097C3MBNIX)](https://codecov.io/gh/zuzukin/whl2conda)
![GitHub issues](https://img.shields.io/github/issues/analog-cbarber/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.
* **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](https://zuzukin.github.io/whl2conda/latest/guide/renaming.html#hide-pip).
## Installation
With pip:
```bash
pip install whl2conda
```
With conda (upcoming):
```bash
conda install -c conda-forge whl2conda
```
## Quick usage
Generate a conda package in same directory as wheel file:
```bash
whl2conda build dist/mypackage-1.2.3-py3-none-any.whl
```
Add default tool options to `pyproject.toml`
```bash
whl2conda config --generate-pyproject pyproject.toml
```
Build both wheel and conda package for project:
```bash
whl2conda build --build-wheel my-project-root
```
Create python 3.10 test environment for generated conda package:
```bash
whl2conda install dist/mypackage-1.2.3.-py_0.conda --create -n testenv \
--extra pytest python=3.10
```
Raw data
{
"_id": null,
"home_page": null,
"name": "whl2conda",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "build, conda, wheel",
"author": null,
"author_email": "Christopher Barber <christopher.barber@analog.com>",
"download_url": "https://files.pythonhosted.org/packages/51/fa/4eb2212829d01bab1c738c9ead8ad4b51377a1a7eba426c828e7acb75de7/whl2conda-24.4.0.tar.gz",
"platform": null,
"description": "# whl2conda \n\n[![pypi version](https://img.shields.io/pypi/v/whl2conda.svg)](https://pypi.org/project/whl2conda/)\n[![conda version](https://img.shields.io/conda/vn/conda-forge/whl2conda)](https://anaconda.org/conda-forge/whl2conda)\n[![documentation](https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat)](https://zuzukin.github.io/whl2conda/) \n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/whl2conda)\n![GitHub](https://img.shields.io/github/license/analog-cbarber/whl2conda) \n[![CI](https://github.com/zuzukin/whl2conda/actions/workflows/python-package-conda.yml/badge.svg)](https://github.com/zuzukin/whl2conda/actions/workflows/python-package-conda.yml) [![codecov](https://codecov.io/gh/zuzukin/whl2conda/graph/badge.svg?token=097C3MBNIX)](https://codecov.io/gh/zuzukin/whl2conda)\n![GitHub issues](https://img.shields.io/github/issues/analog-cbarber/whl2conda)\n\n\n**Generate conda packages directly from pure python wheels**\n\n*whl2conda* is a command line utility to build and test conda packages\ngenerated directly from pure python wheels.\n\n* **Performance**: because it does not need to create conda environments\n in order to build, this is *much* faster than solutions involving *conda-build*.\n\n* **Dependency renaming**: renames pypi package dependencies to their \n corresponding conda name. Automatically renames packages from known\n list collected from conda-forge and supports user-specified rename\n patterns as well.\n\n* **Multiple package formats**: can generate both V1 ('.tar.bz2') and V2 ('.conda')\n conda package formats. Can also generate a unpacked directory tree for debugging\n or additional user customization.\n\n* **Project configuration**: *whl2conda* project-specific options can be read from\n project's `pyproject.toml` file.\n\n* **Test install support**: supports installing conda package into a conda\n environment for testing prior to deployment.\n\n* **Hides pypi dependencies**: rewrites the original pip/pypi dependencies in the\n installed dist-info to avoid [compatibility issues](https://zuzukin.github.io/whl2conda/latest/guide/renaming.html#hide-pip).\n\n\n## Installation\n\nWith pip:\n\n```bash\npip install whl2conda\n```\n\nWith conda (upcoming):\n\n```bash\nconda install -c conda-forge whl2conda\n```\n\n## Quick usage\n\nGenerate a conda package in same directory as wheel file:\n\n```bash\nwhl2conda build dist/mypackage-1.2.3-py3-none-any.whl\n```\n\nAdd default tool options to `pyproject.toml`\n\n```bash\nwhl2conda config --generate-pyproject pyproject.toml\n```\nBuild both wheel and conda package for project:\n\n```bash\nwhl2conda build --build-wheel my-project-root\n```\n\nCreate python 3.10 test environment for generated conda package:\n\n```bash\nwhl2conda install dist/mypackage-1.2.3.-py_0.conda --create -n testenv \\\n --extra pytest python=3.10\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Build conda packages directly from pure python wheels",
"version": "24.4.0",
"project_urls": {
"documentation": "https://zuzukin.github.io/whl2conda/",
"homepage": "https://github.com/analog-cbarber/whl2conda",
"repository": "https://github.com/analog-cbarber/whl2conda"
},
"split_keywords": [
"build",
" conda",
" wheel"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dd5acab5dd6c3e61e1c552f6ce501afaa54cd4f1dd1bc72c415faf2f94b21552",
"md5": "c4b63c0247baf1e2070057581749a27f",
"sha256": "4ce3c1be57ea25fd8871dfef325c9a3d61644f3068f1aff2328bad7cccf8be7a"
},
"downloads": -1,
"filename": "whl2conda-24.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c4b63c0247baf1e2070057581749a27f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 69596,
"upload_time": "2024-04-14T22:01:19",
"upload_time_iso_8601": "2024-04-14T22:01:19.288703Z",
"url": "https://files.pythonhosted.org/packages/dd/5a/cab5dd6c3e61e1c552f6ce501afaa54cd4f1dd1bc72c415faf2f94b21552/whl2conda-24.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "51fa4eb2212829d01bab1c738c9ead8ad4b51377a1a7eba426c828e7acb75de7",
"md5": "b236767c2ff6330b9744d1f7753bba4c",
"sha256": "4246be5c9b03e9c1f0463176a060ed21090de1db49915ebffaaf6d17edc51b34"
},
"downloads": -1,
"filename": "whl2conda-24.4.0.tar.gz",
"has_sig": false,
"md5_digest": "b236767c2ff6330b9744d1f7753bba4c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 54480,
"upload_time": "2024-04-14T22:01:16",
"upload_time_iso_8601": "2024-04-14T22:01:16.647504Z",
"url": "https://files.pythonhosted.org/packages/51/fa/4eb2212829d01bab1c738c9ead8ad4b51377a1a7eba426c828e7acb75de7/whl2conda-24.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-14 22:01:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "analog-cbarber",
"github_project": "whl2conda",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "whl2conda"
}