##// END OF EJS Templates
interfaces: make `dirstate` Protocol class methods abstract...
interfaces: make `dirstate` Protocol class methods abstract Now all known Protocol methods that should be implemented by the subclass are abstract. See cdd4bc69bfc1 for details. Note that this will break the `git` extension more, because there are a bunch of methods that aren't implemented that should be, in favor of some very old methods that won't be called (like `add()` and `drop()`). It's already broken, so I'm not taking the time to figure out how to modernize it right now. It's not detected by pytype because the only instantiation of `gitdirstate` is in `git/__init__.py`, which was already excluded from pytype checking for some other reason. AT least with this, it 1) doesn't get forgotten about, and 2) will require changing the interface if/when the core dirstate class evolves.

File last commit:

r53162:ea9cbb0f stable
r53405:2ac368d0 default
Show More
build-windows-wheels.bat
37 lines | 1.2 KiB | application/x-msdownload | BatchLexer
/ contrib / packaging / build-windows-wheels.bat
@echo off
REM - This is a convenience script to build all of the wheels outside of the CI
REM - system. It requires the cibuildwheel package to be installed, and the
REM - executable on PATH, as well as `msgfmt.exe` from gettext and the x86,
REM - amd64, and arm64 compilers from VS BuildTools. These can be obtained by
REM - running `contrib/install-windows-dependencies.ps1`.
REM - None of the variable set here live past this script exiting.
setlocal
REM - Build translations; requires msgfmt.exe on PATH.
set MERCURIAL_SETUP_FORCE_TRANSLATIONS=1
REM - Prevent building pypy wheels, which is broken.
set CIBW_SKIP=pp*
REM - Disable warning about not being able to test without an arm64 runner.
set CIBW_TEST_SKIP=*-win_arm64
REM - arm64 support starts with py39, but the first arm64 installer wasn't
REM - available until py311, so skip arm64 on the older, EOL versions.
set CIBW_ARCHS=x86 AMD64
set CIBW_BUILD=cp38-* cp39-* cp310-*
cibuildwheel --output-dir dist/wheels
if %errorlevel% neq 0 exit /b %errorlevel%
set CIBW_ARCHS=x86 AMD64 ARM64
set CIBW_BUILD=cp311-* cp312-* cp313-*
cibuildwheel --output-dir dist/wheels
if %errorlevel% neq 0 exit /b %errorlevel%