
- update .github/workflows/wheels2.yml
  https://cibuildwheel.readthedocs.io/en/stable/setup/

- check ./tools/upstream-check.py

- update version in include/gemmi/version.hpp
- bash ./run-tests.sh a
- VERSION=$(grep -Po '\d\.\d\.\d' include/gemmi/version.hpp)

- git commit -a -m "change version number to $VERSION"

- make and test source package for PyPI:
  git clone . /tmp/gemmi-copy
  python3 -m build --sdist --outdir=dist/ /tmp/gemmi-copy
  rm -rf /tmp/gemmi-copy
  twine check dist/gemmi-$VERSION.tar.gz
  python3.11 -m pip uninstall gemmi
  python3.11 -m pip install dist/gemmi-$VERSION.tar.gz
  PYTHON=python3.11 NO_DOCTEST=1 ./run-tests.sh n i

- git push

- run https://github.com/project-gemmi/gemmi/actions/workflows/wheels2.yml
- download artifact with wheels and unpack to wheelhouse/
- run https://github.com/project-gemmi/gemmi/actions/workflows/testwheel.yml
- check if all wheels have the same content:
  tools/compare_wheels.py wheelhouse/*.whl
- twine upload dist/gemmi-$VERSION.tar.gz
- twine upload wheelhouse/*.whl

- tag:
  git tag -a v$VERSION -m v$VERSION
  git push --follow-tags


obsolete steps that were previously used to build wheels:
- make Linux wheels (the existing build/ directory may get in the way):
  DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
  docker pull $DOCKER_IMAGE
  docker run --rm -e PLAT=manylinux2010_x86_64 -v `pwd`:/io $DOCKER_IMAGE /io/tools/linux-wheels.sh
- when AppVeyor build completes download Windows wheels artifacts
  from https://ci.appveyor.com/project/wojdyr/gemmi
  and put them where Linux wheels are: ./wheelhouse

