Commit graph

268 commits

Author SHA1 Message Date
Brad Warren
be5bcfe463 Remove optional dependencies (#4088)
* Stop using already_listening in standalone

* remove already_listening

* remove psutil entirely

* fix #595

* Add basic perform test

* make pep8 happy

* Add test_perform_eacces

* add _setup_perform_error

* Add test_perform_unexpected_socket_error

* add test_perform_eaddrinuse_no_retry

* add test_perform_eaddrinuse_retry

* cleanup tests

* stop using dnspython

* don't install dns extras in tox

* remove dns extras from setup.py

* Add simple_verify back to DNS response

* remove dnspython from oldest tests
2017-01-30 16:55:54 -08:00
Brad Warren
bb669528b3 Remove old references to pep8 in our code (#4073) 2017-01-19 11:21:25 -08:00
Brad Warren
39f5551305 Merge the manual and script plugins (#3890)
* Start of combined manual/script plugin

* Return str from hooks.execute, not bytes

* finish manual/script rewrite

* delete old manual and script plugins

* manually specify we want chall.token

* use consistent quotes

* specify chall for uri

* s/script/hook

* fix spacing on instructions

* remove unneeded response argument

* make achall more helpful

* simplify perform

* remove old test files

* add start of manual_tests

* fix ParseTest.test_help

* stop using manual_test_mode in cli tests

* Revert "make achall more helpful"

This reverts commit 54b01cea30.

* use bad response/validation methods on achalls

* simplify perform and cleanup environment

* finish manual tests

* Add HTTP manual hook integration test

* add manual http scripts

* Add manual DNS script integration test

* remove references to the script plugin

* they're hooks, not scripts

* add --manual-public-ip-logging-ok to integration tests

* use --pref-chall for dns integration

* does dns work?

* validate hooks

* test hook validation

* Revert "does dns work?"

This reverts commit 1224cc2961.

* busy wait in manual-http-auth

* remove DNS script test for now

* Fix challenge prefix and add trailing .

* Add comment about universal_newlines

* Fix typo from 0464ba2c4

* fix nits and typos

* Generalize HookCOmmandNotFound error

* Add verify_exe_exists

* Don't duplicate code in hooks.py

* Revert changes to hooks.py

* Use consistent hook error messages
2016-12-22 08:24:08 -08:00
Peter Eckersley
0956e61c7c Remove the sphinxcontrib.programout [docs]dependency (#3830)
- By making a static text file at release time, and including that
   instead.
2016-11-30 10:47:10 -08:00
Joona Hoikkala
d741e684d0 Script plugin (#3521)
* Script plugin initial commit

* Fix auth script path

* Return correct responses

* Added DNS-01 support

* Report the challenge pref correctly

* Use config root from certbot constants rather than hardcoded

* Remove prehook and rename posthook to cleanup for clarity

* Refactoring

* Docs

* Refactoring

* Refactoring continued, working now

* Use global preferred-challenges argument in favor of local

* Added http-01 as fallback challenge if not defined

* Do not continue if auth script not defined

* Skip unnecessary steps when running

* Read config values from correct places

* Tests and minor fixes

* Make Python 2.6 happy again

* Added CERTBOT_AUTH_OUTPUT and better tests

* Lint & Py3 fixes

* Make Python 2.6 happy again

* Doc changes

* Refactor hook execute and reuse in script plugin

* Refactored hook validation

* Added long_description for plugin help text

* Refactored env var writing
2016-11-07 15:22:48 -08:00
Erica Portnoy
d54cb76432 Remove the curses dialog, thereby deprecating the --help and --dialog command line options (#3665)
* Remove the curses dialog, thereby deprecating the --help and --dialog command line options

* Deprecate --dialog and suppress --text
2016-10-21 15:45:57 -07:00
Peter Eckersley
e1d8ba4977 Merge pull request #3269 from yan12125/python3-certonly
Python 3 support for certonly
2016-08-05 14:43:55 -07:00
Yen Chi Hsuan
8a09a7ed67 Python 3 support for certonly 2016-07-30 23:07:02 +08:00
Joona Hoikkala
9bd361b28d
Remove psutil dependency 2016-07-25 11:13:16 +03:00
Brad Warren
340e4dc0f2 Remove unused nosexcover dependency 2016-06-17 10:50:02 -07:00
Brad Warren
b324845a9c fixes #1080 2016-05-31 15:24:19 -07:00
Brad Warren
5b2ab14711 Revert "Pin old pkginfo version"
This reverts commit 4919814dd1.
2016-05-25 16:50:18 -07:00
Brad Warren
4919814dd1 Pin old pkginfo version 2016-05-23 15:39:00 -07:00
Brad Warren
a65fca486c Specify minimum parsedatetime version 2016-05-06 11:57:12 -07:00
Brad Warren
b956a968c6 this commit was authored by the Certbot Project 2016-04-14 16:56:02 -07:00
Brad Warren
e3aba30ec4 Change Certbot author and description 2016-04-13 16:37:38 -07:00
Brad Warren
3961b70deb s/letsencrypt/certbot 2016-04-13 16:03:59 -07:00
Peter Eckersley
2656d97260 Update entry point 2016-03-11 11:53:58 -08:00
Erik Rose
55b63fca0d Require setuptools>=1.0 in all packages that use the cryptography lib.
When pip-installing any of these packages, pip hit our permissive, any-version "setuptools" dependency first and then ignored all subsequent, more constrained ones, like cryptography's "setuptools>=1.0". See https://github.com/pypa/pip/issues/988. It thus, on a box with setuptools 0.9.8, stuck with that version. Then, at runtime, letsencrypt crashed because pkg_resources couldn't satisfy cryptography's setuptools>=1.0 requirement.

This change lets us pip-install our packages and have it work. We'll need to make sure our direct requirements (all of them) satisfy the more constrained requirements of our dependencies. Yes, it is disgusting.
2016-03-03 18:02:38 -05:00
Brad Warren
96618a0608 Revert "version < 2.0"
This reverts commit 564d37c0fd.
2016-03-02 14:49:39 -08:00
Brad Warren
564d37c0fd version < 2.0 2016-02-29 15:39:19 -08:00
Brad Warren
45ee1eb889 Merge branch 'testing-dev-extras' 2016-02-12 16:19:57 -08:00
Brad Warren
04be86ce4b Remove entry point 2016-02-03 14:49:48 -08:00
Erik Rose
7189778927 Merge the downgrade of the ConfigArgParse dependency to 0.9.3. 2016-01-25 18:32:36 -05:00
Erik Rose
65fbeede69 Downgrade declared ConfigArgParse requirement. Fix #2243. 2016-01-20 16:24:21 -05:00
Erik Rose
e1bd1645b6 Revert moving mock to test_requires.
We'll take this up later, but I don't want to hold up the new le-auto on this debate.
2016-01-15 18:25:26 -05:00
Erik Rose
ecbe2a5c69 Merge master in to get the unconditionalization of dependencies. 2016-01-15 13:43:36 -05:00
Erik Rose
5d93678303 Make ConfigArgParse dependencies unconditional as well.
None of this is ideal, since we're making the dependencies tighter than they theoretically need to be, but the behavior of the old le-auto makes this necessary to make it succeed in practice (when using LE wheels).

Once we move to the new le-auto (which pins everything and makes setup.py dependencies irrelevant for auto installs), we should redo this using env markers as in https://github.com/letsencrypt/letsencrypt/pull/2177. We're too afraid to do it now.

Similarly, we're too afraid to change how we handle argparse right now, despite that it should be required directly by us under 2.6. In practice, ConfigArgParse pulls it in for us, so we're okay as long as it continues to do that.
2016-01-14 16:40:47 -05:00
Erik Rose
ed562645e0 Master master into letsencrypt-auto-release so Travis will build it. 2016-01-11 21:45:16 -05:00
Erik Rose
6c05197a43 Remove mock as an install requirement.
The motivation is to free us of a reliance on a rather modern version of setuptools, which caused le-auto failures for people on Wheezy and other older distros. (The alternative would have been to forcibly upgrade setuptools as the old le-auto did, but less is more.)

Mock is used only in tests, so we move it to tests_require. It will still be installed automatically when setup.py test is run. Give all packages a test_suite so this works.

The "testing" extra remains for optional packages not required for the nose tests but used in tox. However, the extra is much less useful now and is a candidate for deletion. We could roll the list of packages therein into the tox config so as not to favor any particular package.

Remove tests_require=install_requires, which I don't think does anything useful, since install requirements are implicitly installed when running setup.py test.

Fix tests to pass with mock removed. We had to stop them pulling down LE from PyPI, since the current version there (0.1.1) requires mock and explodes when `letsencrypt` is run.
2016-01-11 21:26:41 -05:00
Jakub Warmuz
86d6d27045
Clean up dev/testing extras messup (fixes #2140). 2016-01-10 18:37:41 +00:00
Peter Eckersley
bf4793039a Merge remote-tracking branch 'origin/master' into pyopenssl 2016-01-10 02:39:54 -08:00
Erik Rose
f2586fbc11 Merge master in so Travis will test this PR. 2016-01-08 17:08:30 -05:00
bmw
96b55c8f34 Revert "Don't use cryptography version 1.2" 2016-01-08 17:02:35 -05:00
Erik Rose
1d719bd89c Teach le-auto about dependencies that are conditional on the Python version. 2016-01-08 15:31:22 -05:00
Brad Warren
36679c2daa Merge branch 'master' into pyopenssl 2016-01-08 14:27:07 -05:00
Brad Warren
b039c884d8 Don't use cryptography version 1.2 2016-01-08 14:09:44 -05:00
Brad Warren
0f239e0029 Add comment about dependency version 2016-01-07 13:04:29 -05:00
Rémy HUBSCHER
6a026597f4 Move validator to compatibility-test — Refs #1997 2015-12-24 00:41:27 +01:00
Peter Eckersley
d348d4c051 Merge pull request #1914 from Natim/remove-InvalidPlatformWarning
Guarantee a true SSLContext object with Python 2
2015-12-22 18:18:30 -08:00
Rémy HUBSCHER
212f04fd92 @kuba review 2015-12-20 16:03:12 +01:00
Rémy HUBSCHER
6958710030 @pde review. 2015-12-17 10:13:09 +01:00
Rémy HUBSCHER
69ea4662c3 Guarantee a true SSLContext object with Python 2 2015-12-16 15:25:31 +01:00
Marius Gedminas
85dc829d9f Order imports alphabetically 2015-12-03 10:51:16 +02:00
Marius Gedminas
51f17115c6 Allow older ConfigArgParse for users of modern Pythons
(I think this is a bad idea because of
https://github.com/pypa/pip/issues/3025, but letsencrypt maintainers
insist, so *shrug*.  Also the same problem exists for the versioned
'mock' dependency, so I'm not introducing a new one here.)
2015-12-03 10:22:50 +02:00
Marius Gedminas
9fbec030a2 Require ConfigArgParse >= 0.10 for Python 2.6 support 2015-12-03 10:07:31 +02:00
Jakub Warmuz
09fa1153d9
Merge remote-tracking branch 'github/letsencrypt/master' into py2.6-3 2015-10-17 07:28:04 +00:00
Brad Warren
69711e432f Merge branch 'simplefs' 2015-10-16 17:37:43 -07:00
Jakub Warmuz
1802b87a12
Revert "Remove Python 2.6 support."
This reverts commit 31d37a3953.
2015-10-11 16:01:52 +00:00
Jakub Warmuz
f0214ddf9a
Merge commit 'a2c41ca7f539303cb413ba3e73d3669633063150' into standalone2 2015-10-07 19:07:44 +00:00
Jakub Warmuz
c3e28fa909
Merge remote-tracking branch 'github/letsencrypt/master' into mock-2.6 2015-10-05 19:31:05 +00:00
Jakub Warmuz
560d12a40c
Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-04 10:24:47 +00:00
Jakub Warmuz
4ef7a6e63f
Merge remote-tracking branch 'github/letsencrypt/master' into release 2015-10-04 10:08:38 +00:00
Jakub Warmuz
d88455a1b9
Rename simplefs to webroot 2015-10-04 09:30:39 +00:00
Jakub Warmuz
5d54871ca2
Merge remote-tracking branch 'github/letsencrypt/master' into simplefs 2015-10-04 09:26:04 +00:00
Jakub Warmuz
3f08932479
Merge remote-tracking branch 'github/letsencrypt/master' into mock-2.6 2015-10-04 08:41:01 +00:00
Jakub Warmuz
315b357781
Hide null installer (fixes #789). 2015-09-28 19:08:57 +00:00
Jakub Warmuz
7d3a49b9e7
Add twine and wheel to [dev] 2015-09-27 11:10:39 +00:00
Jakub Warmuz
45a0cd2799
Fix include_package_data. 2015-09-27 08:11:40 +00:00
Jakub Warmuz
3d638caeb7
Unify quotes in setup.py scripts 2015-09-27 06:32:27 +00:00
Jakub Warmuz
033ed589cc
Development Status :: 3 - Alpha 2015-09-27 06:23:13 +00:00
Jakub Warmuz
b5036e36ad
Unify setup.py: description/url/author/author_email. 2015-09-27 06:23:12 +00:00
Jakub Warmuz
746016be6c
Sync version strings to 0.1.0.dev0, pin same repo deps. 2015-09-27 06:23:12 +00:00
Peter Eckersley
e7cbdc4f9a Revert reversion
Revert "Revert "ManualAuthenticator -> Authenticator""

(commit required a pip reinstall but was not inherently broken)

This reverts commit 6f1b1570b1.
2015-09-26 18:20:13 -07:00
Peter Eckersley
6f1b1570b1 Revert "ManualAuthenticator -> Authenticator"
This reverts commit 81f0a973a3.

This was breaking the client.  Not sure if/how it passed any tests?
2015-09-26 17:48:45 -07:00
bmw
a21bb67ede Merge pull request #832 from kuba/setuptools
Explicit dependency on setuptools (pkg_resources).
2015-09-26 12:53:35 -07:00
Jakub Warmuz
faa6cbdd71
Standalone 2.0 2015-09-26 17:43:59 +00:00
Jakub Warmuz
d337865f48
add missing pkg_resources comment 2015-09-26 10:54:24 +00:00
Jakub Warmuz
08c0c4aeba
Explicit dependency on setuptools (pkg_resources). 2015-09-26 10:52:28 +00:00
Jakub Warmuz
81f0a973a3
ManualAuthenticator -> Authenticator 2015-09-26 09:07:08 +00:00
Peter Eckersley
c7b4bebd23 Merge remote-tracking branch 'origin/master' into rm-py26 2015-09-15 18:08:14 -07:00
Jakub Warmuz
33c2aed021
Merge remote-tracking branch 'github/letsencrypt/master' into lint 2015-09-11 07:15:10 +00:00
Jakub Warmuz
809f4966d6
Require pep8 in [testing] 2015-09-11 07:04:13 +00:00
Jakub Warmuz
03a9a2a89e
SimpleFS plugin (fixes #742) 2015-09-02 19:52:06 +00:00
Jakub Warmuz
c6e4c7dea1
setup.py: update/fix deps. 2015-09-01 19:57:41 +00:00
Jakub Warmuz
a74eff5fbd
Revert "Revert PR #708."
This reverts commit 70e311b43f.
2015-08-28 06:40:19 +00:00
Jacob Hoffman-Andrews
70e311b43f Revert PR #708.
https://github.com/letsencrypt/letsencrypt/pull/708 broke the Boulder CI build
because Travis runs Ubuntu 12.04, which has an older setuptools. See
https://github.com/letsencrypt/boulder/issues/681.
2015-08-27 13:38:32 -07:00
bmw
ed509d15b2 Merge pull request #708 from kuba/mock-2.6
mock<1.1.0 only for py2.6.
2015-08-27 12:22:16 -04:00
Jakub Warmuz
2e90ecf1b0
Add basic manpages for all binaries (fixes #700). 2015-08-22 14:12:16 +00:00
Jakub Warmuz
a7df468347
mock<1.1.0 only for py2.6. 2015-08-22 11:01:28 +00:00
Jacob Hoffman-Andrews
31d37a3953 Remove Python 2.6 support.
Fixes https://github.com/letsencrypt/letsencrypt/issues/515
2015-07-23 10:20:47 -07:00
Jakub Warmuz
33d7f205fa
Merge remote-tracking branch 'github/letsencrypt/master' into dvsni-verify
Conflicts:
	acme/acme/challenges.py
2015-07-18 06:51:26 +00:00
Jakub Warmuz
b943fab35a
Require argparse only in Python 2.6.
Fixes packaging issues.
2015-07-15 15:38:30 +00:00
Jakub Warmuz
c2a8195f19
Move _pyopenssl_cert_or_req_san to acme. 2015-07-13 11:02:27 +00:00
Jakub Warmuz
b9df69af9f
Basic dev/test setup for separate package subdirectories. 2015-07-10 16:38:42 +00:00
Jakub Warmuz
b0c72410ba
Unified vector loading in letsencrypt. 2015-07-10 15:49:18 +00:00
Jakub Warmuz
19c73249ca
Sort vectors: acme/testdata, separate acme and letsencrypt. 2015-07-10 15:16:48 +00:00
Jakub Warmuz
4ebc20402b
Pin mock<1.1.0 (Python 2.6 support). 2015-07-10 07:21:07 +00:00
Jakub Warmuz
02e7154c0d
Drop M2Crypto 2015-07-06 12:18:27 +00:00
Jakub Warmuz
61aa29d28c
Drop PyCrypto. 2015-07-06 12:18:22 +00:00
Jakub Warmuz
9197fa6b5c
acme: M2Crypto -> pyOpenSSL 2015-07-06 12:18:17 +00:00
Jakub Warmuz
e0293d81f3
acme: drop PyCrypto and use cryptography instead.
- Use cryptography in acme.jose.jwa/jwk.
- Change Crypto.Random to os.urandom,
  c.f. https://cryptography.io/en/latest/random-numbers/?highlight=urandom
2015-07-05 20:36:20 +00:00
Jakub Warmuz
a0acf7c703
acme.verify.simple_http_simple_verify 2015-06-29 07:50:31 +00:00
Jakub Warmuz
7d775ae9f3
Add null installer, integration tests for install/run
Fixes #438.
2015-06-26 13:26:09 +00:00
Jakub Warmuz
3789922c0b
Move AugeasConfigurator to letsencrypt_apache.
https://github.com/letsencrypt/lets-encrypt-preview/pull/531#issuecomment-114285541
2015-06-25 17:55:49 +00:00
Jakub Warmuz
c5bf273024
setup.py: separate install_requires 2015-06-22 21:58:13 +00:00
Jakub Warmuz
c5d4f91bf7
Remove old messages and network 2015-06-22 04:52:07 +00:00
James Kasten
99ff33e581 Merge pull request #502 from kuba/manual
ManualAuthenticator for SimpleHTTP
2015-06-19 13:45:14 -04:00
Jakub Warmuz
ed7ba28211
Pin jsonschema (quickfix for missing functools32).
https://github.com/Julian/jsonschema/issues/233
2015-06-19 08:17:49 +00:00
William Budington
a873e8ea33 functools32 required - add to setup.py 2015-06-18 17:45:04 -07:00