certbot: 0.39.0 -> 1.0.0
This commit is contained in:
parent
af2eaec41a
commit
d07796b871
@ -1,6 +1,6 @@
|
|||||||
From 411b8a413baf39e9b967949b17a992e81a11abfe Mon Sep 17 00:00:00 2001
|
From 0de195de31dc311976af52a7c2b547bc23af2691 Mon Sep 17 00:00:00 2001
|
||||||
From: Frederik Rietdijk <fridh@fridh.nl>
|
From: Frederik Rietdijk <fridh@fridh.nl>
|
||||||
Date: Tue, 29 Oct 2019 14:08:07 +0100
|
Date: Sat, 14 Dec 2019 19:27:14 +0100
|
||||||
Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
|
Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
|
||||||
versions
|
versions
|
||||||
|
|
||||||
@ -18,13 +18,13 @@ line 137, in parse
|
|||||||
ValueError: invalid version number '41.4.0.post20191022'
|
ValueError: invalid version number '41.4.0.post20191022'
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
setup.py | 15 +--------------
|
certbot/setup.py | 15 +--------------
|
||||||
1 file changed, 1 insertion(+), 14 deletions(-)
|
1 file changed, 1 insertion(+), 14 deletions(-)
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
diff --git a/certbot/setup.py b/certbot/setup.py
|
||||||
index 1f4838c90..831528d77 100644
|
index c1bf914..7456bf2 100644
|
||||||
--- a/setup.py
|
--- a/certbot/setup.py
|
||||||
+++ b/setup.py
|
+++ b/certbot/setup.py
|
||||||
@@ -3,7 +3,6 @@ import os
|
@@ -3,7 +3,6 @@ import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
@ -40,7 +40,7 @@ index 1f4838c90..831528d77 100644
|
|||||||
-# However environment markers are supported only with setuptools >= 36.2.
|
-# However environment markers are supported only with setuptools >= 36.2.
|
||||||
-# So this dependency is not added for old Linux distributions with old setuptools,
|
-# So this dependency is not added for old Linux distributions with old setuptools,
|
||||||
-# in order to allow these systems to build certbot from sources.
|
-# in order to allow these systems to build certbot from sources.
|
||||||
pywin32_req = 'pywin32>=224'
|
pywin32_req = 'pywin32>=227' # do not forget to edit pywin32 dependency accordingly in windows-installer/construct.py
|
||||||
-if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
|
-if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
|
||||||
- install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
|
- install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
|
||||||
-elif 'bdist_wheel' in sys.argv[1:]:
|
-elif 'bdist_wheel' in sys.argv[1:]:
|
||||||
@ -56,5 +56,5 @@ index 1f4838c90..831528d77 100644
|
|||||||
dev_extras = [
|
dev_extras = [
|
||||||
'astroid==1.6.5',
|
'astroid==1.6.5',
|
||||||
--
|
--
|
||||||
2.23.0
|
2.24.1
|
||||||
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
From 8ddf2697508eca514a0dde4646ad14ac3ba34b2a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Florian Klink <flokli@flokli.de>
|
|
||||||
Date: Fri, 18 Oct 2019 16:06:50 +0200
|
|
||||||
Subject: [PATCH] pebble_artifacts: hardcode pebble location
|
|
||||||
|
|
||||||
---
|
|
||||||
certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
|
||||||
index 2b1557928..d2603c51a 100644
|
|
||||||
--- a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
|
||||||
+++ b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
|
||||||
@@ -22,6 +22,7 @@ def fetch(workspace):
|
|
||||||
|
|
||||||
|
|
||||||
def _fetch_asset(asset, suffix):
|
|
||||||
+ return "@pebble@"
|
|
||||||
asset_path = os.path.join(ASSETS_PATH, '{0}_{1}_{2}'.format(asset, PEBBLE_VERSION, suffix))
|
|
||||||
if not os.path.exists(asset_path):
|
|
||||||
asset_url = ('https://github.com/letsencrypt/pebble/releases/download/{0}/{1}_{2}'
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
@ -1,19 +1,18 @@
|
|||||||
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook, nginx, pebble }:
|
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook }:
|
||||||
|
|
||||||
|
|
||||||
python37Packages.buildPythonApplication rec {
|
python37Packages.buildPythonApplication rec {
|
||||||
pname = "certbot";
|
pname = "certbot";
|
||||||
version = "0.39.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1s32xg2ljz7ci78wc8rqkjvgrz7vprb7fkznrlf9a4blm55pp54c";
|
sha256 = "180x7gcpfbrzw8k654s7b5nxdy2yg61lq513dykyn3wz4gssw465";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./0001-pebble_artifacts-hardcode-pebble-location.patch
|
|
||||||
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
|
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -43,9 +42,8 @@ python37Packages.buildPythonApplication rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
cd certbot
|
||||||
substituteInPlace certbot/util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
substituteInPlace certbot/_internal/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
||||||
substituteInPlace certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py --replace "@pebble@" "${pebble}/bin/pebble"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -55,15 +53,7 @@ python37Packages.buildPythonApplication rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tests currently time out, because they're trying to do network access
|
doCheck = true;
|
||||||
# Upstream issue: https://github.com/certbot/certbot/issues/7450
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
PATH="$out/bin:${nginx}/bin:$PATH" pytest certbot-ci/certbot_integration_tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontUseSetuptoolsCheck = true;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = src.meta.homepage;
|
homepage = src.meta.homepage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user