diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 742d61fa4..bc4acc250 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,6 @@ concurrency: on: push: tags: - - '8.*.*' - 'docs' - 'docs-next' branches: diff --git a/docs/0.quickstart-substrate.md b/docs/0.quickstart-substrate.md index 6cdcf9e7e..f63768e18 100644 --- a/docs/0.quickstart-substrate.md +++ b/docs/0.quickstart-substrate.md @@ -7,7 +7,7 @@ navigation.icon: "stars" # Quickstart ::banner{type="warning"} -Substrate support is in early preview stage. API and features may change in the future. +Substrate support is in beta stage. API and features may change in the future. :: This page will guide you through the steps to get your first selective indexer up and running in a few minutes without getting too deep into the details. @@ -29,7 +29,7 @@ See the [Installation](../docs/1.getting-started/1.installation.md) page for all After installation, run the following command to switch to the preview branch: ```shell [Terminal] -dipdup self install -f -r feat/substrate +dipdup self install -f -v 8.2.0rc1 ``` ## Create a project diff --git a/src/dipdup/install.py b/src/dipdup/install.py index ed3ec548b..f2ae97493 100755 --- a/src/dipdup/install.py +++ b/src/dipdup/install.py @@ -26,6 +26,7 @@ 'poetry', 'pyvenv', 'pyenv', + 'uv', ) ENV_VARS = ( 'SHELL', @@ -183,6 +184,7 @@ def install( update: bool = False, with_pdm: bool = False, with_poetry: bool = False, + with_uv: bool = False, ) -> None: """Install DipDup and its dependencies with pipx""" if ref and path: @@ -237,10 +239,14 @@ def install( for pm, with_pm in ( ('pdm', with_pdm), ('poetry', with_poetry), + ('uv', with_uv), ): if pm in pipx_packages: if update: env.run_cmd('pipx', 'upgrade', '--python', python_inter_pipx, pm, *pipx_args) + # NOTE: Installed from other sources; skip + elif env._commands.get(pm): + pass elif with_pm or force or quiet or ask(f'Install `{pm}`?', False): echo(f'Installing `{pm}`') env.run_cmd('pipx', 'install', '--python', python_inter_pipx, *pipx_args, pm) @@ -294,6 +300,7 @@ def cli() -> None: parser.add_argument('-e', '--editable', action='store_true', help='Install DipDup in editable mode') parser.add_argument('--with-pdm', action='store_true', help='Install PDM') parser.add_argument('--with-poetry', action='store_true', help='Install Poetry') + parser.add_argument('--with-uv', action='store_true', help='Install uv') args = parser.parse_args() if not args.quiet: @@ -313,6 +320,7 @@ def cli() -> None: update=args.update, with_pdm=args.with_pdm, with_poetry=args.with_poetry, + with_uv=args.with_uv, )