#!/bin/bash
set -e -x
if [ -z "${TRAVIS_TAG}" ]; then
# Not a release
exit 0
fi
PACKAGE_VERSION=$(python ".ci/package-version.py")
PYPI_VERSION=$(python ".ci/pypi-check.py" "${PYMODULE}")
if [ "${PACKAGE_VERSION}" == "${PYPI_VERSION}" ]; then
echo "${PYMODULE}-${PACKAGE_VERSION} is already published on PyPI"
exit 0
fi
# Check if all expected wheels have been built and uploaded.
release_platforms=(
"macosx_10_??_x86_64"
"manylinux1_i686"
"manylinux1_x86_64"
"win32"
"win_amd64"
)
P="${PYMODULE}-${PACKAGE_VERSION}"
expected_wheels=()
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
abitag=$(python -c \
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
maj='${pyver}'.split('.')[0], \
min='${pyver}'.split('.')[1],
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') else ''))")
for plat in "${release_platforms[@]}"; do
expected_wheels+=("${P}-${abitag}-${plat}.whl")
done
done
rm -rf dist/*.whl dist/*.tar.*
python setup.py sdist
python ".ci/s3-download-release.py" --destdir=dist/ "${P}"
_file_exists() { [[ -f $1 ]]; }
for distfile in "${expected_wheels[@]}"; do
if ! _file_exists dist/${distfile}; then
echo "Expected wheel ${distfile} not found."
exit 1
fi
done
python -m twine upload dist/*.whl dist/*.tar.*
>commitdiff
|
Age | Commit message (Expand) | Author |
2024-06-26 | etc: Add explicit ‘--substitute-urls’ in guix-daemon service files....Having substitute URLs explicitly listed in the service startup file
makes it clearer what should be modified to permanently change the list
of substitute URLs.
* config-daemon.ac: Rename ‘guix_substitute_urls’ to
‘GUIX_SUBSTITUTE_URLS’ and substitute it.
* nix/local.mk (etc/guix-%.service, etc/init.d/guix-daemon)
(etc/guix-%.conf): Substitute it.
* etc/guix-daemon.conf.in, etc/guix-daemon.service.in,
etc/init.d/guix-daemon.in: Add an explicit ‘--substitute-urls’ option.
Change-Id: Ie491b7fab5c42e54dca582801c03805a85de2bf9
| Ludovic Courtès |
2024-03-11 | etc: systemd services: switch to "journal" for output and error logging....The "syslog" method has been deprecated for years, and issues a warning:
Standard output type syslog is obsolete, automatically updating to
journal. Please update your unit file, and consider removing the setting
altogether.
Fixes: #48323
* etc/guix-daemon.service.in (StandardOutput): Use "journal"
(StandardError): Likewise.
* etc/guix-publish.service.in (StandardOutput): Likewise.
(StandardError): Likewise.
| Vagrant Cascadian |
2022-10-23 | etc: systemd services shouldn't ‘RemainAfterExit’....* etc/guix-daemon.service.in (RemainAfterExit): Don't.
* etc/guix-publish.service.in (RemainAfterExit): Likewise don't.
| Tobias Geerinckx-Rice |
2022-10-23 | etc: Add ‘Restart=always’ to both systemd services....* etc/guix-daemon.service.in (Restart): ‘Always’ do.
* etc/guix-publish.service.in (Restart): Likewise.
| Tobias Geerinckx-Rice |
2022-10-23 | etc: Add ‘OOMPolicy=continue’ to guix-daemon.service....* etc/guix-daemon.service.in (OOMPolicy): Continue.
| Tobias Geerinckx-Rice |