Skip to content

Commit

Permalink
Publish docs on tags, fix version in quickstart (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Jan 25, 2025
1 parent 776e2ca commit bb738dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ concurrency:
on:
push:
tags:
- '8.*.*'
- 'docs'
- 'docs-next'
branches:
Expand Down
4 changes: 2 additions & 2 deletions docs/0.quickstart-substrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/dipdup/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'poetry',
'pyvenv',
'pyenv',
'uv',
)
ENV_VARS = (
'SHELL',
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand All @@ -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,
)


Expand Down

0 comments on commit bb738dc

Please sign in to comment.