Skip to content

whl2conda convert

Usage

usage: whl2conda convert <wheel> [options]
       whl2conda convert [<project-root>] [options]

Generates a conda package from a pure python wheel

Input options

  [<wheel> | <project-root>]
            Either path to a wheel file to convert or a project root
            directory containing a pyproject.toml or setup.py file.
  --project-root <dir>, --root <dir>
            Project root directory. This is a directory containing either a
            pyproject.toml or a (deprecated) setup.py file. This option may
            not be used if the project directory was given as the positional
            argument.

            If not specified, the project root will be located by searching
            the wheel directory and its parent directories, or if no wheel
            given, will default to the current directory.
  --from-pypi <package-spec>
            Download package satisfying <package-spec> from standard pypi.org repository.
  --from-index <index-url> <package-spec>
            Download package satisfying <package-spec> from repository at <index-url>.
  -w <dir>, --wheel-dir <dir>
            Location of wheel directory. Defaults to dist/ subdirectory of 
            project.
  --ignore-pyproject
            Ignore settings from pyproject.toml file, if any
  --update-stdrenames, --no-update-stdrenames
            Whether to update list of standard pypi to conda renames from internet. 
            Default from settings: False

Output options

  --out-dir <dir>, --out <dir>
            Output directory for conda package. Defaults to wheel directory
            or else project dist directory.
  --overwrite
            Overwrite existing output files.
  --format {V1,tar.bz2,V2,conda,tree}, --out-format {V1,tar.bz2,V2,conda,tree}
            Output package format (None)
  --build-wheel
            Build wheel
  --build-number BUILD_NUMBER
            Specify build number. Otherwise taken from wheel.

Override options

  --name <package-name>
            Override package name
  -R <pip-name> <conda-name>, --dependency-rename <pip-name> <conda-name>
            Rename pip dependency for conda. May be specified muliple times.
  -A <conda-dep>, --add-dependency <conda-dep>
            Add an additional conda dependency. May be specified multiple times.
  -D <pip-name>, --drop-dependency <pip-name>
            Drop dependency with given name from conda dependency list.
            May be specified multiple times.
  -K, --keep-pip-dependencies
            Retain pip dependencies in python dist_info of conda package.
  --python <version-spec>
            Set/override python dependency.

Help and debug options

  -n, --dry-run
            Do not write any files.
  --batch, --not-interactive
            Batch mode - disable interactive prompts.
  --yes     Answer 'yes' or choose default to all interactive questions
  -v, --verbose
            Increase verbosity.
  -q, --quiet
            Less verbose output
  -h, -?, --help
            Show usage and exit.