setup.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env python2.7
  2. # -*- coding: utf-8 -*-
  3. # Copyright (c) 2014-2016 Tomek Wójcik <tomek@bthlabs.pl>
  4. #
  5. # Permission is hereby granted, free of charge, to any person obtaining a copy
  6. # of this software and associated documentation files (the "Software"), to deal
  7. # in the Software without restriction, including without limitation the rights
  8. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. # copies of the Software, and to permit persons to whom the Software is
  10. # furnished to do so, subject to the following conditions:
  11. #
  12. # The above copyright notice and this permission notice shall be included in
  13. # all copies or substantial portions of the Software.
  14. #
  15. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. # THE SOFTWARE.
  22. #
  23. import codecs
  24. from setuptools import setup
  25. import pie_time
  26. with codecs.open('README.rst', 'r', 'utf-8') as desc_f:
  27. long_description = desc_f.read()
  28. with codecs.open('requirements.txt', 'r', 'utf-8') as requirements_f:
  29. requirements = requirements_f.read().split('\n')
  30. SCRIPTS = [
  31. 'pie_time = pie_time.scripts.pie_time:main'
  32. ]
  33. DOWNLOAD_URL = (
  34. 'https://git.bthlabs.pl/tomekwojcik/pie-time/archive/v%s.tar.gz' %
  35. pie_time.__version__
  36. )
  37. setup(
  38. name="pie_time",
  39. version=pie_time.__version__,
  40. packages=[
  41. 'pie_time',
  42. 'pie_time.cards',
  43. 'pie_time.scripts'
  44. ],
  45. include_package_data=True,
  46. test_suite='nose.collector',
  47. zip_safe=False,
  48. platforms='any',
  49. tests_require=[
  50. 'nose',
  51. ],
  52. author=pie_time.__author__.encode('utf-8'),
  53. author_email='tomek@bthlabs.pl',
  54. maintainer=pie_time.__author__.encode('utf-8'),
  55. maintainer_email='tomek@bthlabs.pl',
  56. url='https://pie-time.bthlabs.pl/',
  57. download_url=DOWNLOAD_URL,
  58. description='Desk clock for your Raspberry Pi.',
  59. long_description=long_description,
  60. license='https://git.bthlabs.pl/tomekwojcik/pie-time/src/master/LICENSE',
  61. classifiers=[],
  62. install_requires=requirements,
  63. entry_points={
  64. 'console_scripts': SCRIPTS
  65. }
  66. )