Compare commits
49 Commits
test-pytho
...
core20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b188b0eed0 | ||
|
|
5c49b05ef2 | ||
|
|
d918e91561 | ||
|
|
abc86e8c38 | ||
|
|
85c28c430e | ||
|
|
d2867e9485 | ||
|
|
e12d4c95da | ||
|
|
c33090781b | ||
|
|
7929c5b959 | ||
|
|
bdeec26a92 | ||
|
|
a22be8cf65 | ||
|
|
89ff65ee31 | ||
|
|
34ba5a698b | ||
|
|
95433251c5 | ||
|
|
eb1e3074f6 | ||
|
|
89ce759fd1 | ||
|
|
a1480ddbdc | ||
|
|
f60b815981 | ||
|
|
042b3c18b6 | ||
|
|
13445094c8 | ||
|
|
7e3d8e21ac | ||
|
|
7e67466789 | ||
|
|
e1a8f3f05b | ||
|
|
3749dd3c9b | ||
|
|
3ba1abb0dc | ||
|
|
c77874cb32 | ||
|
|
f962845cb8 | ||
|
|
614330ab7a | ||
|
|
7642ef1395 | ||
|
|
b9e6f54229 | ||
|
|
a5aa13aaa5 | ||
|
|
630cf08667 | ||
|
|
ad39799a0a | ||
|
|
07861efed5 | ||
|
|
6bcbe204fd | ||
|
|
298e4b8402 | ||
|
|
58e7d67e9e | ||
|
|
2dd8c35280 | ||
|
|
600b3affad | ||
|
|
265e6087e7 | ||
|
|
fe5a50f0b6 | ||
|
|
f6f68e42b0 | ||
|
|
a49f3ce0e1 | ||
|
|
b186afab0a | ||
|
|
38dc0b317b | ||
|
|
1fb25304fa | ||
|
|
bedf5a3742 | ||
|
|
fd7d3be3cf | ||
|
|
bf674074df |
@@ -21,7 +21,8 @@ source "${DIR}/common.sh"
|
||||
RegisterQemuHandlers
|
||||
ResolveArch "${SNAP_ARCH}"
|
||||
|
||||
tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt > snap-constraints.txt
|
||||
tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt \
|
||||
| grep -v python-augeas > snap-constraints.txt
|
||||
|
||||
pushd "${DIR}/packages"
|
||||
"${CERTBOT_DIR}/tools/simple_http_server.py" 8080 >/dev/null 2>&1 &
|
||||
|
||||
@@ -14,7 +14,8 @@ source "${DIR}/common.sh"
|
||||
|
||||
RegisterQemuHandlers
|
||||
|
||||
tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt > "${DIR}/snap-constraints.txt"
|
||||
tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt \
|
||||
| grep -v python-augeas > "${DIR}/snap-constraints.txt"
|
||||
for SNAP_ARCH in ${TARGET_ARCHS}; do
|
||||
ResolveArch "${SNAP_ARCH}"
|
||||
DownloadQemuStatic "${QEMU_ARCH}" "${DIR}"
|
||||
@@ -24,7 +25,7 @@ for SNAP_ARCH in ${TARGET_ARCHS}; do
|
||||
-v "${DIR}/qemu-${QEMU_ARCH}-static:/usr/bin/qemu-${QEMU_ARCH}-static" \
|
||||
-v "${DIR}:/workspace" \
|
||||
-w "/workspace" \
|
||||
"${DOCKER_ARCH}/ubuntu:18.04" \
|
||||
"${DOCKER_ARCH}/ubuntu:20.04" \
|
||||
sh -c "\
|
||||
apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3 python3-venv python3-dev libffi-dev libssl-dev gcc \
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
snap/local/packages/cffi/cffi-1.14.0-cp38-cp38-linux_aarch64.whl
Normal file
BIN
snap/local/packages/cffi/cffi-1.14.0-cp38-cp38-linux_aarch64.whl
Normal file
Binary file not shown.
BIN
snap/local/packages/cffi/cffi-1.14.0-cp38-cp38-linux_armv7l.whl
Normal file
BIN
snap/local/packages/cffi/cffi-1.14.0-cp38-cp38-linux_armv7l.whl
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,7 +15,7 @@ description: |
|
||||
- Help you revoke the certificate if that ever becomes necessary.
|
||||
confinement: classic
|
||||
grade: devel
|
||||
base: core18
|
||||
base: core20
|
||||
adopt-info: certbot
|
||||
|
||||
apps:
|
||||
@@ -26,7 +26,7 @@ apps:
|
||||
AUGEAS_LENS_LIB: "$SNAP/usr/share/augeas/lenses/dist"
|
||||
LD_LIBRARY_PATH: "$SNAP/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"
|
||||
renew:
|
||||
command: certbot -q renew
|
||||
command: bin/certbot -q renew
|
||||
daemon: oneshot
|
||||
environment:
|
||||
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
|
||||
@@ -35,58 +35,42 @@ apps:
|
||||
# Run approximately twice a day with randomization
|
||||
timer: 00:00~24:00/2
|
||||
|
||||
|
||||
parts:
|
||||
python-augeas:
|
||||
plugin: python
|
||||
source: git://github.com/basak/python-augeas
|
||||
source-branch: snap
|
||||
python-version: python3
|
||||
build-packages: [libaugeas-dev]
|
||||
acme:
|
||||
plugin: python
|
||||
source: .
|
||||
source-subdir: acme
|
||||
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
|
||||
python-version: python3
|
||||
# To build cryptography and cffi if needed
|
||||
build-packages: [libffi-dev, libssl-dev]
|
||||
certbot:
|
||||
plugin: python
|
||||
source: .
|
||||
source-subdir: certbot
|
||||
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
|
||||
python-version: python3
|
||||
after: [acme]
|
||||
python-packages:
|
||||
- git+https://github.com/basak/python-augeas.git@snap
|
||||
- ./acme
|
||||
- ./certbot
|
||||
- ./certbot-apache
|
||||
- ./certbot-nginx
|
||||
stage:
|
||||
- -usr/lib/python3.8/sitecustomize.py # maybe unnecessary
|
||||
# Prefer cffi
|
||||
- -lib/python3.8/site-packages/augeas.py
|
||||
stage-packages:
|
||||
- libaugeas0
|
||||
# added to stage python:
|
||||
- libpython3-stdlib
|
||||
- libpython3.8-stdlib
|
||||
- libpython3.8-minimal
|
||||
- python3-pip
|
||||
- python3-setuptools
|
||||
- python3-wheel
|
||||
- python3-venv
|
||||
- python3-minimal
|
||||
- python3-distutils
|
||||
- python3-pkg-resources
|
||||
- python3.8-minimal
|
||||
# To build cryptography and cffi if needed
|
||||
build-packages: [libffi-dev, libssl-dev, git, libaugeas-dev, python3-dev]
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
snapcraftctl set-version `cd $SNAPCRAFT_PART_SRC && git describe|sed s/^v//`
|
||||
# Workaround for lack of site-packages leading to empty sitecustomize.py
|
||||
stage:
|
||||
- -usr/lib/python3.6/sitecustomize.py
|
||||
certbot-apache:
|
||||
plugin: python
|
||||
source: .
|
||||
source-subdir: certbot-apache
|
||||
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
|
||||
python-version: python3
|
||||
after: [python-augeas, certbot]
|
||||
stage-packages: [libaugeas0]
|
||||
stage:
|
||||
# Prefer cffi
|
||||
- -lib/python3.6/site-packages/augeas.py
|
||||
certbot-nginx:
|
||||
plugin: python
|
||||
source: .
|
||||
source-subdir: certbot-nginx
|
||||
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
|
||||
python-version: python3
|
||||
# This is the last step, compile pycache now as there should be no conflicts.
|
||||
override-prime: |
|
||||
snapcraftctl prime
|
||||
./usr/bin/python3 -m compileall -q .
|
||||
# After certbot-apache to not rebuild duplicates (essentially sharing what was already staged,
|
||||
# like zope)
|
||||
after: [certbot-apache]
|
||||
snapcraftctl set-version `cd $SNAPCRAFT_PART_SRC/certbot && git describe|sed s/^v//`
|
||||
|
||||
wrappers:
|
||||
plugin: dump
|
||||
source: .
|
||||
|
||||
Reference in New Issue
Block a user