whl2conda


Namewhl2conda JSON
Version 24.5.0 PyPI version JSON
download
home_pageNone
SummaryBuild conda packages directly from pure python wheels
upload_time2024-05-05 16:32:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords build conda wheel
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # 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/fa/9e/c2ce8888a64634c64b6a72b240ea46579409d2e439861aa6f4bdcaecf860/whl2conda-24.5.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.5.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": "d2d796a83d90039837819388931eb6a87ef8247dff3e17d36537fc18c53a4765",
                "md5": "a01b2f8c57a40a48a204570ec8427324",
                "sha256": "749336a903c8c0f5c4aa65d2170b371633d2045980d321cb55737837e6872270"
            },
            "downloads": -1,
            "filename": "whl2conda-24.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a01b2f8c57a40a48a204570ec8427324",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 75187,
            "upload_time": "2024-05-05T16:32:15",
            "upload_time_iso_8601": "2024-05-05T16:32:15.897368Z",
            "url": "https://files.pythonhosted.org/packages/d2/d7/96a83d90039837819388931eb6a87ef8247dff3e17d36537fc18c53a4765/whl2conda-24.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa9ec2ce8888a64634c64b6a72b240ea46579409d2e439861aa6f4bdcaecf860",
                "md5": "ff57e00ec51523a7e1918c3df3ec7cb1",
                "sha256": "f2d6a634015cd910f45afb4982e5938d4ba1d7c0e8cb56f1e15271743b09808c"
            },
            "downloads": -1,
            "filename": "whl2conda-24.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ff57e00ec51523a7e1918c3df3ec7cb1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 59081,
            "upload_time": "2024-05-05T16:32:13",
            "upload_time_iso_8601": "2024-05-05T16:32:13.450964Z",
            "url": "https://files.pythonhosted.org/packages/fa/9e/c2ce8888a64634c64b6a72b240ea46579409d2e439861aa6f4bdcaecf860/whl2conda-24.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-05 16:32:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "analog-cbarber",
    "github_project": "whl2conda",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "whl2conda"
}
        
Elapsed time: 3.56378s