forked from bfontaine/freesms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (34 loc) · 1.11 KB
/
Copy pathsetup.py
File metadata and controls
37 lines (34 loc) · 1.11 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
# -*- coding: UTF-8 -*-
import setuptools
from distutils.core import setup
# http://stackoverflow.com/a/7071358/735926
import re
VERSIONFILE='freesms/__init__.py'
verstrline = open(VERSIONFILE, 'rt').read()
VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % VERSIONFILE)
setup(
name='freesms',
version=verstr,
author='Baptiste Fontaine',
author_email='b@ptistefontaine.fr',
packages=['freesms'],
url='https://github.com/bfontaine/freesms',
license=open('LICENSE', 'r').read(),
description='Send SMS with Free Mobile',
long_description="""\
freesms is a Python interface to Free mobile SMS API.""",
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
],
)