You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

62 lines
1.6 KiB

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Setup for the Python KISS Module.
  5. Source: https://git.scd31.com/laptopdude90/kiss2
  6. """
  7. import os
  8. import setuptools
  9. import sys
  10. __title__ = 'kiss2'
  11. __version__ = '7.0.2'
  12. __author__ = 'Stephen Downward VA1QLE <stephen@stephendownward.ca>' # NOQA pylint: disable=R0801
  13. __copyright__ = 'Copyright 2017 Greg Albrecht(kiss), Stephen Downward(kiss2), and Contributors' # NOQA pylint: disable=R0801
  14. __license__ = 'Apache License, Version 2.0' # NOQA pylint: disable=R0801
  15. def publish():
  16. """Function for publishing package to pypi."""
  17. if sys.argv[-1] == 'publish':
  18. os.system('python setup.py sdist')
  19. os.system('twine upload dist/*')
  20. sys.exit()
  21. publish()
  22. setuptools.setup(
  23. name=__title__,
  24. version=__version__,
  25. description='Python KISS Module V2.',
  26. author='Stephen Downward',
  27. author_email='stephen@stephendownward.ca',
  28. packages=['kiss2'],
  29. package_data={'': ['LICENSE']},
  30. package_dir={'kiss2': 'kiss2'},
  31. license=open('LICENSE').read(),
  32. long_description=open('README.rst').read(),
  33. url='https://git.scd31.com/laptopdude90/kiss2',
  34. zip_safe=False,
  35. setup_requires=[
  36. 'coverage >= 4.4.1',
  37. 'nose >= 1.3.7',
  38. 'dummyserial >= 1.0.0',
  39. 'aprs > 6.9',
  40. 'mocket >= 1.8.2'
  41. ],
  42. install_requires=['pyserial >= 3.4'],
  43. classifiers=[
  44. 'Topic :: Communications :: Ham Radio',
  45. 'Programming Language :: Python',
  46. 'License :: OSI Approved :: Apache Software License'
  47. ],
  48. keywords=[
  49. 'Ham Radio', 'APRS', 'KISS'
  50. ]
  51. )