setup.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python
  2. from setuptools import setup
  3. import os, glob
  4. requirements = [i for i in open('requirements.txt').read().split('\n') if not i.startswith('--') and len(i) > 0]
  5. def get_long_description(fname):
  6. try:
  7. import pypandoc
  8. return pypandoc.convert(fname, 'rst')
  9. except:
  10. return open(os.path.join(os.path.dirname(__file__), fname)).read()
  11. setup(name='pygpio',
  12. version='0.3.3',
  13. description="An abstract interface for GPIO libraries",
  14. long_description=get_long_description('README.md'),
  15. author='Gwilyn Saunders',
  16. author_email='gwilyn.saunders@mk2es.com.au',
  17. url='https://git.mk2es.com/gwillz/pygpio',
  18. packages=['pygpio', 'pygpio.backends'],
  19. install_requires=requirements,
  20. classifiers=[
  21. 'Operating System :: POSIX',
  22. 'Operating System :: POSIX :: BSD',
  23. 'Operating System :: POSIX :: Linux',
  24. 'Operating System :: Unix',
  25. 'Programming Language :: Python :: 3',
  26. 'Programming Language :: Python :: 3.3',
  27. 'Programming Language :: Python :: 3.4'
  28. ]
  29. )