mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Replaces references
This commit is contained in:
parent
8e622f1c8e
commit
9bc33cd8ae
4 changed files with 5 additions and 9 deletions
|
|
@ -73,10 +73,10 @@ parts:
|
|||
build-packages: [gcc, libffi-dev, libssl-dev, git, libaugeas-dev, python3-dev]
|
||||
build-environment:
|
||||
- SNAPCRAFT_PYTHON_VENV_ARGS: --upgrade
|
||||
# Constraints are passed through the environment variable PIP_CONSTRAINTS instead of using the
|
||||
# Constraints are passed through the environment variable PIP_CONSTRAINTS instead of using the
|
||||
# parts.[part_name].constraints option available in snapcraft.yaml when the Python plugin is
|
||||
# used. This is done to let these constraints be applied not only on the certbot package
|
||||
# build, but also on any isolated build that pip could trigger when building wheels for
|
||||
# build, but also on any isolated build that pip could trigger when building wheels for
|
||||
# dependencies. See https://github.com/certbot/certbot/pull/8443 for more info.
|
||||
- PIP_CONSTRAINT: $SNAPCRAFT_PART_SRC/snap-constraints.txt
|
||||
override-build: |
|
||||
|
|
@ -85,7 +85,7 @@ parts:
|
|||
snapcraftctl build
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
python3 "${SNAPCRAFT_PART_SRC}/tools/strip_hashes.py" "${SNAPCRAFT_PART_SRC}/letsencrypt-auto-source/pieces/dependency-requirements.txt" | grep -v python-augeas >> "${SNAPCRAFT_PART_SRC}/snap-constraints.txt"
|
||||
python3 "${SNAPCRAFT_PART_SRC}/tools/strip_hashes.py" "${SNAPCRAFT_PART_SRC}/tools/certbot_constraints.txt" | grep -v python-augeas >> "${SNAPCRAFT_PART_SRC}/snap-constraints.txt"
|
||||
python3 "${SNAPCRAFT_PART_SRC}/tools/strip_hashes.py" "${SNAPCRAFT_PART_SRC}/tools/pipstrap_constraints.txt" >> "${SNAPCRAFT_PART_SRC}/snap-constraints.txt"
|
||||
echo "$(python3 "${SNAPCRAFT_PART_SRC}/tools/merge_requirements.py" "${SNAPCRAFT_PART_SRC}/snap-constraints.txt")" > "${SNAPCRAFT_PART_SRC}/snap-constraints.txt"
|
||||
snapcraftctl set-version `grep -oP "__version__ = '\K.*(?=')" "${SNAPCRAFT_PART_SRC}/certbot/certbot/__init__.py"`
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Specifies Python package versions for development and building Docker images.
|
||||
# It includes in particular packages not specified in letsencrypt-auto's requirements file.
|
||||
# Some dev package versions specified here may be overridden by higher level constraints
|
||||
# files during tests (eg. letsencrypt-auto-source/pieces/dependency-requirements.txt).
|
||||
# files during tests (eg. tools/certbot_constraints.txt).
|
||||
alabaster==0.7.10
|
||||
apacheconfig==0.3.2
|
||||
apipkg==1.4
|
||||
|
|
|
|||
|
|
@ -14,10 +14,6 @@ WORKDIR /opt/certbot
|
|||
|
||||
# Copy certbot code
|
||||
COPY CHANGELOG.md README.rst src/
|
||||
# We keep the relative path to the requirements file the same because, as of
|
||||
# writing this, tools/pip_install.py is used in the Dockerfile for Certbot
|
||||
# plugins and this script expects to find the requirements file there.
|
||||
COPY letsencrypt-auto-source/pieces/dependency-requirements.txt letsencrypt-auto-source/pieces/
|
||||
COPY tools tools
|
||||
COPY acme src/acme
|
||||
COPY certbot src/certbot
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ for PLUGIN_PATH in "${CERTBOT_DIR}"/certbot-dns-*; do
|
|||
bash "${CERTBOT_DIR}"/tools/snap/generate_dnsplugins_postrefreshhook.sh $PLUGIN_PATH
|
||||
# Create constraints file
|
||||
"${CERTBOT_DIR}"/tools/merge_requirements.py tools/dev_constraints.txt \
|
||||
<("${CERTBOT_DIR}"/tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt) \
|
||||
<("${CERTBOT_DIR}"/tools/strip_hashes.py tools/certbot_constraints.txt) \
|
||||
<("${CERTBOT_DIR}"/tools/strip_hashes.py tools/pipstrap_constraints.txt) \
|
||||
> "${PLUGIN_PATH}"/snap-constraints.txt
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue