setup.py 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #! /usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # vim:fenc=utf-8
  4. #
  5. # Copyright © 2016-2018 Óscar García Amor <ogarcia@connectical.com>
  6. #
  7. # Distributed under terms of the GNU GPLv3 license.
  8. import sysdweb as project
  9. import os
  10. from setuptools import find_packages
  11. from setuptools import setup
  12. # Utility function to read the README file.
  13. # Used for the long_description. It's nice, because now 1) we have a top level
  14. # README file and 2) it's easier to type in the README file than to put a raw
  15. # string in below ...
  16. def read(fname):
  17. return open(os.path.join(os.path.dirname(__file__), fname)).read()
  18. setup(
  19. name = project.NAME,
  20. version = project.VERSION,
  21. author = project.AUTHOR_NAME,
  22. author_email = project.AUTHOR_EMAIL,
  23. description = project.DESCRIPTION,
  24. license = project.LICENSE,
  25. keywords = project.KEYWORDS,
  26. url = project.URL,
  27. long_description=read('README.md'),
  28. packages=find_packages(),
  29. install_requires=read('requirements.txt'),
  30. package_data={'sysdweb': [
  31. 'templates/static/css/*',
  32. 'templates/static/fonts/*',
  33. 'templates/static/img/*',
  34. 'templates/static/js/*',
  35. 'templates/views/*'
  36. ]
  37. },
  38. entry_points={
  39. 'console_scripts': [
  40. 'sysdweb = sysdweb.main:main'
  41. ]
  42. },
  43. classifiers=[
  44. 'Development Status :: 5 - Production/Stable',
  45. 'Environment :: Web Environment',
  46. 'Framework :: Bottle',
  47. 'Intended Audience :: End Users/Desktop',
  48. 'Intended Audience :: System Administrators',
  49. 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
  50. 'Natural Language :: English',
  51. 'Operating System :: POSIX :: Linux',
  52. 'Programming Language :: Python :: 3',
  53. 'Topic :: System',
  54. 'Topic :: Utilities',
  55. ],
  56. project_urls={
  57. 'Bug Reports': 'https://github.com/ogarcia/sysdweb/issues',
  58. 'Source': 'https://github.com/ogarcia/sysdweb',
  59. },
  60. )