From 2f0100eda51f272cf4e1e1f9e23637bc3b88aa45 Mon Sep 17 00:00:00 2001 From: Christopher Barber Date: Wed, 7 Feb 2024 15:54:13 -0500 Subject: [PATCH] Fix convert examples in renames section of doc --- doc/guide/renaming.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/guide/renaming.md b/doc/guide/renaming.md index 5b46840..cce238b 100644 --- a/doc/guide/renaming.md +++ b/doc/guide/renaming.md @@ -87,7 +87,7 @@ You can add one or more extra package dependencies using the `-A` / `--add-depen option. This can be a conda package name and version spec, e.g.: ```bash -$ whl2conda -A 'extra-package >=1.2.3' ... +$ whl2conda convert -A 'extra-package >=1.2.3' ... ``` You can use this to add dependencies for conda packages that perhaps @@ -99,14 +99,14 @@ Likewise, you can drop packages using `-D` / `--drop-dependency` with just the package name: ```bash -$ whl2conda -D 'some-pypi-only-package' +$ whl2conda convert -D 'some-pypi-only-package' ``` This option also allows you to use [python regular expressions][python-re] to drop any package that matches a pattern: ```bash -$ whl2conda -D 'acme-.*' +$ whl2conda convert -D 'acme-.*' ``` ### Renaming dependencies @@ -120,19 +120,19 @@ be replaced with the named capture group with given name. === "plain" ```bash - $ whl2conda -R acme-widgets acme.widgets + $ whl2conda convert -R acme-widgets acme.widgets ``` === "regular expression" ``` - $ whl2conda -R 'acme-(.*)' 'acme.$1' + $ whl2conda convert -R 'acme-(.*)' 'acme.$1' ``` === "named regular expression" ``` - $ whl2conda -R 'acme-(?P.*)' 'acme.${part}' + $ whl2conda convert -R 'acme-(?P.*)' 'acme.${part}' ``` ### Renaming converted package @@ -143,7 +143,7 @@ otherwise from the name in the wheel. This can be overriden using the `--name` command line option: ```bash -$ whl2conda acme-widgets-1.2.3-py3-None-any.whl --name acme-pywidgets +$ whl2conda convert acme-widgets-1.2.3-py3-None-any.whl --name acme-pywidgets ``` ## Specifying rules in pyproject.toml file