Fork from Djrill and rename to "anymail"

This commit is contained in:
medmunds
2016-02-27 11:10:58 -08:00
parent f95d5d66dc
commit 921dd5d0d6
30 changed files with 68 additions and 60 deletions

View File

@@ -1,16 +1,18 @@
from setuptools import setup
import re
# define __version__ and __minor_version__ from djrill/_version.py,
# but without importing from djrill (which would break setup)
with open("djrill/_version.py") as f:
code = compile(f.read(), "djrill/_version.py", 'exec')
# define __version__ and __minor_version__ from anymail/_version.py,
# but without importing from anymail (which would break setup)
__version__ = "UNSET"
__minor_version__ = "UNSET"
with open("anymail/_version.py") as f:
code = compile(f.read(), "anymail/_version.py", 'exec')
exec(code)
def long_description_from_readme(rst):
# In release branches, freeze some external links to refer to this X.Y version:
if not "dev" in __version__:
if "dev" not in __version__:
rst = re.sub(r'branch=master', 'branch=v' + __minor_version__, rst) # Travis build status
rst = re.sub(r'/latest', '/v' + __minor_version__, rst) # ReadTheDocs
return rst
@@ -19,27 +21,27 @@ with open('README.rst') as f:
long_description = long_description_from_readme(f.read())
setup(
name="djrill",
name="django-anymail",
version=__version__,
description='Mandrill transactional email for Django',
keywords="django, mailchimp, mandrill, email, email backend",
author="Kenneth Love <kenneth@brack3t.com>, Chris Jones <chris@brack3t.com>",
author_email="kenneth@brack3t.com",
url="https://github.com/brack3t/Djrill/",
description='Multi-ESP transactional email for Django',
keywords="django, email, email backend, mailgun, mandrill, postmark, sendgrid",
author="Mike Edmunds <medmunds@gmail.com>",
author_email="medmunds@gmail.com",
url="https://github.com/anymail/anymail/",
license="BSD License",
packages=["djrill"],
packages=["anymail"],
zip_safe=False,
install_requires=["requests>=1.0.0", "django>=1.4"],
include_package_data=True,
test_suite="runtests.runtests",
tests_require=["mock", "six"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"License :: OSI Approved :: BSD License",