| 1 |  |  | #!/usr/bin/env python | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2 |  |  | # -*- encoding: utf-8 -*- | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3 |  |  | from __future__ import absolute_import | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4 |  |  | from __future__ import print_function | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5 |  |  | import io | 
            
                                                                                                            
                            
            
                                    
            
            
                | 6 |  |  | import re | 
            
                                                                                                            
                            
            
                                    
            
            
                | 7 |  |  | from glob import glob | 
            
                                                                                                            
                            
            
                                    
            
            
                | 8 |  |  | from os.path import basename | 
            
                                                                                                            
                            
            
                                    
            
            
                | 9 |  |  | from os.path import dirname | 
            
                                                                                                            
                            
            
                                    
            
            
                | 10 |  |  | from os.path import join | 
            
                                                                                                            
                            
            
                                    
            
            
                | 11 |  |  | from os.path import splitext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 12 |  |  | from setuptools import find_packages | 
            
                                                                                                            
                            
            
                                    
            
            
                | 13 |  |  | from setuptools import setup | 
            
                                                                                                            
                            
            
                                    
            
            
                | 14 |  |  |  | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 15 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 16 |  |  | def read(*names, **kwargs): | 
            
                                                                        
                            
            
                                    
            
            
                | 17 |  |  |     return io.open( | 
            
                                                                        
                            
            
                                    
            
            
                | 18 |  |  |         join(dirname(__file__), *names), | 
            
                                                                        
                            
            
                                    
            
            
                | 19 |  |  |         encoding=kwargs.get('encoding', 'utf8') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 20 |  |  |     ).read() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 21 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 22 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 23 |  |  | setup( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 24 |  |  |     name='apex-radio', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 25 |  |  |     version='0.0.1', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 26 |  |  |     license='Apache Software License', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 27 |  |  |     description='APEX reference implementation.', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 28 |  |  |     long_description='%s\n%s' % ( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 29 |  |  |         re.compile('^.. start-badges.*^.. end-badges', re.M | re.S).sub('', read('README.rst')), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 30 |  |  |         re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 31 |  |  |     ), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 32 |  |  |     author='Jeffrey Phillips Freeman (WI2ARD)', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 33 |  |  |     author_email='[email protected]', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 34 |  |  |     url='https://github.com/Syncleus/apex', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 35 |  |  |     packages=find_packages('src'), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 36 |  |  |     package_dir={'': 'src'}, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 37 |  |  |     py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 38 |  |  |     include_package_data=True, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 39 |  |  |     zip_safe=False, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 40 |  |  |     classifiers=[ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 41 |  |  |         # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers | 
            
                                                                                                            
                            
            
                                    
            
            
                | 42 |  |  |         'Development Status :: 2 - Pre-Alpha', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 43 |  |  |         'Intended Audience :: End Users/Desktop', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 44 |  |  |         'License :: OSI Approved :: Apache Software License', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 45 |  |  |         'Operating System :: Unix', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 46 |  |  |         'Operating System :: POSIX', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 47 |  |  |         'Operating System :: Microsoft :: Windows', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 48 |  |  |         'Programming Language :: Python', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 49 |  |  |         'Programming Language :: Python :: 2.7', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 50 |  |  |         'Programming Language :: Python :: 3', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 51 |  |  |         'Programming Language :: Python :: 3.3', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 52 |  |  |         'Programming Language :: Python :: 3.4', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 53 |  |  |         'Programming Language :: Python :: 3.5', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 54 |  |  |         'Programming Language :: Python :: Implementation :: PyPy', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 55 |  |  |         'Environment :: Console', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 56 |  |  |         'Environment :: No Input/Output (Daemon)', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 57 |  |  |         'Natural Language :: English', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 58 |  |  |         # uncomment if you test on these interpreters: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 59 |  |  |         # 'Programming Language :: Python :: Implementation :: IronPython', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 60 |  |  |         # 'Programming Language :: Python :: Implementation :: Jython', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 61 |  |  |         # 'Programming Language :: Python :: Implementation :: Stackless', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 62 |  |  |         'Topic :: Communications :: Ham Radio', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 63 |  |  |     ], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 64 |  |  |     keywords=[ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 65 |  |  |         'Ham Radio', 'APEX', 'APRS' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 66 |  |  |     ], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 67 |  |  |     install_requires=[ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 68 |  |  |         'click', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 69 |  |  |         'pynmea2 >= 1.4.2', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 70 |  |  |         'pyserial >= 2.7', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 71 |  |  |         'requests >= 2.7.0', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 72 |  |  |         'cachetools >= 1.1.5' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 73 |  |  |     ], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 74 |  |  |     extras_require={ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 75 |  |  |         # eg: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 76 |  |  |         #   'rst': ['docutils>=0.11'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 77 |  |  |         #   ':python_version=="2.6"': ['argparse'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 78 |  |  |     }, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 79 |  |  |     entry_points={ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 80 |  |  |         'console_scripts': [ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 81 |  |  |             'apex = apex.cli:main', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 82 |  |  |         ] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 83 |  |  |     }, | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 84 |  |  | ) | 
            
                                                        
            
                                    
            
            
                | 85 |  |  |  |