##// 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:

r53136:4d825ad1 stable
r53405:2ac368d0 default
Show More
build-one-linux-wheel.sh
28 lines | 655 B | application/x-sh | BashLexer
/ contrib / build-one-linux-wheel.sh
#!/bin/bash
# build a single linux wheel within a prepared imaged based on manylinux images
#
#
#
set -eu
# enforce that the translation are built
export MERCURIAL_SETUP_FORCE_TRANSLATIONS=1
if [ $# -lt 2 ]; then
echo "usage $0 PYTHONTAG DEST_DIR" >&2
echo "" >&2
echo 'PYTHONTAG should be of the form "cp310-cp310"' >&2
exit 64
fi
py_tag=$1
destination_directory=$2
tmp_wheel_dir=./tmp-wheelhouse
if [ -e $tmp_wheel_dir ]; then
rm -rf $tmp_wheel_dir
fi
/opt/python/$py_tag/bin/python setup.py bdist_wheel --dist-dir $tmp_wheel_dir
# adjust it to make it universal
auditwheel repair $tmp_wheel_dir/*.whl -w $destination_directory