-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
31 lines (27 loc) · 1.05 KB
/
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
29
30
31
#!/usr/bin/env python
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import Command,setup
import pymodem
long_description = pymodem.description
version = pymodem.version
class GenerateReadme(Command):
description = "Generates README file from long_description"
user_options = []
def initialize_options(self): pass
def finalize_options(self): pass
def run(self):
open("README","w").write(long_description)
setup(name='pymodem',
version = version,
description = 'Simple Python interface to generic terminal and (specifically) GSM modem devices. Includes general serial connection/chat, AT command, SMS (including GSM.03.38) support.',
long_description = long_description,
author = 'Paul Chakravarti',
author_email = '[email protected]',
url = 'https://github.com/paulchakravarti/pymodem',
cmdclass = { 'readme' : GenerateReadme },
packages = ['pymodem'],
license = 'MIT',
classifiers = [ "Topic :: Terminals :: Serial" ]
)