From 552fdac1cca9f815515e14e12c41914ead633b57 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 26 Oct 2024 19:42:19 +0100 Subject: [PATCH] remove cli benchmarking --- .github/workflows/cli.yml | 53 --------------------------------------- README.md | 2 +- docs/index.md | 8 ------ docs/meta/faq.md | 2 -- 4 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 .github/workflows/cli.yml diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml deleted file mode 100644 index e384a9de9..000000000 --- a/.github/workflows/cli.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: CLI experience - -on: - push: - branches: - - master - pull_request: - branches: - - master - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} - cancel-in-progress: true - -env: - STABLE_PYTHON_VERSION: '3.12' - HYPERFINE_VERSION: '1.18.0' - -jobs: - response-time: - name: CLI responsiveness with latest Python - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python ${{ env.STABLE_PYTHON_VERSION }} - uses: actions/setup-python@v5 - with: - python-version: ${{ env.STABLE_PYTHON_VERSION }} - - - name: Install UV - uses: astral-sh/setup-uv@v3 - - - name: Install hyperfine - uses: taiki-e/install-action@v2 - with: - tool: hyperfine@${{ env.HYPERFINE_VERSION }} - - - name: Install other tools - run: uv pip install --system --upgrade flit poetry pipenv - - - name: Install ourself - run: | - uv pip install --system . - uv pip install --system ./backend - - - name: Benchmark - run: | - hyperfine -m 100 --warmup 10 -i pipenv - hyperfine -m 100 --warmup 10 poetry - hyperfine -m 100 --warmup 10 -i flit - hyperfine -m 100 --warmup 10 hatch diff --git a/README.md b/README.md index 2fc32a263..e453bb20e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Hatch is a modern, extensible Python project manager. - Easy [publishing](https://hatch.pypa.io/latest/publish/) to PyPI or other indices - [Version](https://hatch.pypa.io/latest/version/) management - Best practice [project generation](https://hatch.pypa.io/latest/config/project-templates/) -- Responsive [CLI](https://hatch.pypa.io/latest/cli/about/), ~2-3x [faster](https://github.com/pypa/hatch/actions/workflows/cli.yml) than equivalent tools +- Responsive [CLI](https://hatch.pypa.io/latest/cli/about/) See the [Why Hatch?](https://hatch.pypa.io/latest/why/) page for more information. diff --git a/docs/index.md b/docs/index.md index 882f6cf27..2549f100a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -91,14 +91,6 @@ Hatch is a modern, extensible Python project manager. See the [Why Hatch?](why.m [:octicons-arrow-right-24: Project setup](intro.md#setup) -- :material-speedometer:{ .lg .middle } __Responsive CLI__ - - --- - - Hatch is up to 3x faster than equivalent tools - - [:octicons-arrow-right-24: CLI reference](cli/about.md) - ## License diff --git a/docs/meta/faq.md b/docs/meta/faq.md index a85496aa0..78fd4f9c5 100644 --- a/docs/meta/faq.md +++ b/docs/meta/faq.md @@ -201,6 +201,4 @@ The only caveat is that currently there is no support for re-creating an environ ## Fast CLI? -The claim about being faster than other tools is [based on timings](https://github.com/pypa/hatch/actions/workflows/cli.yml) that are always checked in CI. - Hatch achieves this by using lazy imports, lazily performing computation manually and with [functools.cached_property](https://docs.python.org/3/library/functools.html#functools.cached_property), using hacks like `not not ...` instead of `bool(...)`, etc.