setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. long_description_content_type='text/markdown',
  29. packages=find_packages(),
  30. install_requires=read('requirements.txt'),
  31. package_data={'sysdweb': [
  32. 'templates/static/css/*',
  33. 'templates/static/fonts/*',
  34. 'templates/static/img/*',
  35. 'templates/static/js/*',
  36. 'templates/views/*'
  37. ]
  38. },
  39. entry_points={
  40. 'console_scripts': [
  41. 'sysdweb = sysdweb.main:main'
  42. ]
  43. },
  44. classifiers=[
  45. 'Development Status :: 5 - Production/Stable',
  46. 'Environment :: Web Environment',
  47. 'Framework :: Bottle',
  48. 'Intended Audience :: End Users/Desktop',
  49. 'Intended Audience :: System Administrators',
  50. 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
  51. 'Natural Language :: English',
  52. 'Operating System :: POSIX :: Linux',
  53. 'Programming Language :: Python :: 3',
  54. 'Topic :: System',
  55. 'Topic :: Utilities',
  56. ],
  57. project_urls={
  58. 'Bug Reports': 'https://github.com/ogarcia/sysdweb/issues',
  59. 'Source': 'https://github.com/ogarcia/sysdweb',
  60. },
  61. )