Update on publishing Wheels

PIERRE AUGIER pierre.augier at univ-grenoble-alpes.fr
Fri Nov 15 13:58:52 UTC 2024


These are very good news! Thanks Pierre-Yves and Matt Harbison!

1. Note that the wheels can be installed and tested with pipx with

```
pipx install mercurial --pip-args=--pre
pipx inject mercurial hg-git hg-evolve
```

2. Note that another simple way to install recent Mercurial (with the Rust extension on Linux and C on macOS and Windows) with hg-evolve and hg-git is with conda-forge (https://github.com/conda-forge/miniforge)

```
conda activate base
pip install conda-app
conda-app install mercurial
```

This is the simplest way to get modern Mercurial setup for beginners. A reasonable ~/.hgrc is written by default so that hg-git, evolve and topic are enabled.

3. Unfortunately, hg-git is not tested against Mercurial 6.9 (https://foss.heptapod.net/mercurial/hg-git/activity)

It could make sense given the importance of hg-git that Mercurial core-developers ensure that they do not release a Mercurial release that would break hg-git.

4. After Mercurial 6.9 is released, there would be simple ways to install and manage Mercurial environment with pipx, uv and conda-app.

Having a command to be able to simply set auto-completion (like many other modern tools) would become very useful. Something like that:

```
echo 'eval "$(hg generate-shell-completion bash)"' >> ~/.bashrc
```

See https://bz.mercurial-scm.org/show_bug.cgi?id=6918

Best regards,
Pierre

----- Mail original -----
> De: "Pierre-Yves David" <pierre-yves.david at ens-lyon.org>
> À: "mercurial" <mercurial at lists.mercurial-scm.org>
> Cc: "Matt Harbison" <mharbison72 at gmail.com>
> Envoyé: Vendredi 15 Novembre 2024 02:08:24
> Objet: Re: Update on publishing Wheels

> We are now able to build new target:
> 
> - Windows arm64
> - Linux musl variant
> - Linux arm64
> 
> Wheels for the newly tagged 6.9rc1 have been uploaded to pypi (except for the
> macos and linux arm64 one that should arrive soon)
> On 11/13/24 21:18, Pierre-Yves David wrote:
> 
> 
> 
> 
> Hello everyone
> 
> Here is a quick update on our progress toward offering wheels for Mercurial
> 
> # Current CI state
> 
> 
> Over the past few weeks, we consolidated the CI to actually build (the easy
> part) but also tests the resulting wheels (the harder part).
> 
> As the result the CI is currently building wheels for :
> 
>    * Linux (x86_64) (testing 3.8, 3.11. 3.12 and 3.13)
>    * Mac (x86_64) (testing 3.10)
>    * Windows (x86, AMD64) (testing 3.9 AMD64)
> 
> 
> # Nightly builds !
> 
> 
> "Nightly" build are available in the heptapod's pypi repository for the project:
> 
> [ https://foss.heptapod.net/mercurial/mercurial-devel/-/packages/ |
> https://foss.heptapod.net/mercurial/mercurial-devel/-/packages/ ]
> 
> 
> Please consider testing these nightly as soon as possible to confirm they fit
> your needs.
> 
> However, be warned that about any contributor can publish package to this
> repository, so it does not offer the same security guarantee as the official
> packages. We will look into tightening access to it in the future.
> 
> # Release wheels !
> 
> 
> For the actual release, the releases managers will manually build the wheels on
> secure machine.
> 
> So you can expect Linux wheel at release time but expect a small delay until we
> do the initial setup of secure builder for macos and Windows. There is nothing
> complicated about these setup as we know how to build them.
> 
> # What next
> 
> As you probably noticed, the "arm" variant of the wheels are currently missing.
> We will work toward providing them over the next cycle.
> 
> There is no difficulty expected toward building ARM version, we just needs bit
> more time to setup the CI and the workers when necessary. So expect news on
> that front soon.
> 
> In addition, plan to look into building wheel for more flavor in the coming
> month. Especially, wheel containing the Rust extensions.
> 
> Finally, you can expect to soon see a 6.9rc1 release tagged and some of the
> associated wheels pushed to pypi for testing.
> 
> # Acknowledgement
> 
> 
> Huge thanks to Matt Harbison for providing Runners and knowledge for MacOs and
> Windows, we could not have made it without his support.
> 
> 
> Cheers,
> --
> Pierre-Yves David
> 
> _______________________________________________
> Mercurial mailing list [ mailto:Mercurial at lists.mercurial-scm.org |
> Mercurial at lists.mercurial-scm.org ] [
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial |
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial ]
> --
> Pierre-Yves David
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial


More information about the Mercurial mailing list