...
  View open merge request
Commits (9)
......@@ -4,11 +4,25 @@ pgp-mime-lib
Simple Python package to send
[PGP/MIME](https://www.ietf.org/rfc/rfc3156.txt) multipart/encrypted
and multipart/signed emails. Uses the
[python-gnupg](https://gnupg.readthedocs.io/en/latest/) Python module to talk to
gpg.
[pgpy](https://github.com/SecurityInnovation/PGPy) Python module that
implements the OpenPGP protocol.
The package is agnostic with respect to key management: recipients'
public keys are not permanently stored in a keyring, but are passed
along with each message by the caller.
Python compatibility: 2.7 / 3.5+
## Running SMTP tests
To have the test suite send you a signed and encrypted email, set up the following environment
variables before running the tests:
- `SMTP_SERVER`
- `SMTP_USER`
- `SMTP_PASSWORD`
- `SMTP_RECIPIENT`
- `SMTP_PUBLIC_KEY` (a PGP public key file)
In `tox.ini` you can use [setenv](https://tox.readthedocs.io/en/latest/config.html#conf-setenv) or
[passenv](https://tox.readthedocs.io/en/latest/config.html#conf-passenv).
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,7 +6,8 @@ authors = ["AI <info@autistici.org>"]
[tool.poetry.dependencies]
python = "~2.7 || ^3.5"
python-gnupg = "^0.4.4"
pgpy = "^0.4.3"
six = { version = "1.10.0", python = "~2.7" }
[tool.poetry.dev-dependencies]
tox = "^3.7"
......
......@@ -10,7 +10,8 @@ setup(
author_email="info@autistici.org",
url="https://git.autistici.org/ai/pgp-mime-lib.git",
install_requires=[
"python-gnupg",
"pgpy",
"six==1.10.0;python_version<'3.4'",
],
packages=find_packages(),
zip_safe=False,
......