-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (40 loc) · 1.41 KB
/
setup.py
File metadata and controls
41 lines (40 loc) · 1.41 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
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='mcdevitt.ryan@gmail.com',
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 = [
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Communications :: Email",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
],
)