forked from mc706/py-mailinator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (27 loc) · 882 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from setuptools import setup
import re
VERSIONFILE="pymailinator/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
major, minor, patch = verstr.split('.')
release = "%s.%s" %(major, minor)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
# Setup
setup(
name='py-mailinator',
version=verstr,
url='https://github.com/mc706/py-mailinator',
author='Ryan McDevitt',
author_email='[email protected]',
license='MIT License',
packages=['pymailinator'],
include_package_data=True,
description='Python API wrapper for mailinator',
download_url = 'https://github.com/mc706/py-mailinator/tarball/' + release,
keywords = ['mailinator', 'api', 'email'],
classifiers = [],
)