Merge pull request #4 from lifeonmarspt/pkoch_cleanup

Cleanup installation
This commit is contained in:
Paulo Köch
2017-04-05 11:02:37 +01:00
committed by GitHub
6 changed files with 34 additions and 39 deletions
-1
View File
@@ -1 +0,0 @@
See LICENSE
+2 -4
View File
@@ -1,4 +1,2 @@
include LICENSE.txt
include README.md
recursive-include docs *
recursive-include certbot_route53/tests/testdata *
include LICENSE
include README
+12 -15
View File
@@ -3,32 +3,29 @@
### Before you start
It's expected that the root hosted zone for the domain in question already exists in your account.
It's expected that the root hosted zone for the domain in question already
exists in your account.
### Setup
1. Create a virtual environment
2. Make sure you have libssl-dev (or your regional equivalent) installed.
`pycparser` suffers from
https://github.com/eliben/pycparser/issues/148, which is why we need to
recompile it, which depends on `libssl-dev`.
2. Update its pip and setuptools (`VENV/bin/pip install -U setuptools pip`)
to avoid problems with cryptography's dependency on setuptools>=11.3.
3. Install by adding these to your requirements.txt file:
```
--no-binary pycparser
-e git+https://github.com/certbot/certbot.git#egg=certbot
-e git+https://github.com/certbot/certbot.git#egg=acme&subdirectory=acme
certbot-route53
```
We need DNS01 support in certbot, which is only available in master for now.
3. Make sure you have libssl-dev and libffi (or your regional equivalents)
installed. You might have to set compiler flags to pick things up (I have to
use `CPPFLAGS=-I/usr/local/opt/openssl/include
LDFLAGS=-L/usr/local/opt/openssl/lib` on my macOS to pick up brew's openssl,
for example).
4. Install this package.
### How to use it
Make sure you have access to AWS's Route53 service, either through IAM roles or
via `.aws/credentials`.
via `.aws/credentials`. Check out
(sample-aws-policy.json)[sample-aws-policy.json].
To generate a certificate:
```
+2 -2
View File
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
+2 -17
View File
@@ -6,24 +6,10 @@ from setuptools import find_packages
version = '0.1.5'
install_requires = [
'acme>=0.9.0.dev0',
'certbot>=0.9.0.dev0',
'PyOpenSSL',
'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary?
'setuptools', # pkg_resources
'acme>=0.9.0',
'certbot>=0.9.0',
'zope.interface',
'boto3',
'dnspython',
]
if sys.version_info < (2, 7):
install_requires.append('mock<1.1.0')
else:
install_requires.append('mock')
docs_extras = [
'Sphinx>=1.0', # autodoc_member_order = 'bysource', autodoc_default_flags
'sphinx_rtd_theme',
]
setup(
@@ -51,7 +37,6 @@ setup(
'Topic :: Utilities',
],
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
keywords=['certbot', 'route53', 'aws'],
entry_points={
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# I just wanted a place to dump the incantations I use for testing.
set -e
brew install openssl libffi
rm -rf scratch; mkdir scratch
virtualenv scratch/venv -p /usr/local/bin/python2.7
scratch/venv/bin/pip install -U pip setuptools
CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib scratch/venv/bin/pip install -e .
scratch/venv/bin/certbot certonly -n --agree-tos --test-cert --email pkoch@lifeonmars.pt -a certbot-route53:auth -d pkoch.lifeonmars.pt --work-dir scratch --config-dir scratch --logs-dir scratch
rm -rf scratch