setup.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import os
  2. from setuptools import setup, find_packages
  3. here = os.path.abspath(os.path.dirname(__file__))
  4. about = {}
  5. with open(os.path.join(here, 'pywebio', '__version__.py')) as f:
  6. exec(f.read(), about)
  7. with open('README.md') as f:
  8. readme = f.read()
  9. setup(
  10. name=about['__package__'],
  11. version=about['__version__'],
  12. description=about['__description__'],
  13. long_description=readme,
  14. long_description_content_type='text/markdown',
  15. author=about['__author__'],
  16. author_email=about['__author_email__'],
  17. url=about['__url__'],
  18. license=about['__license__'],
  19. python_requires=">=3.5.2",
  20. packages=find_packages(),
  21. package_data={
  22. # data files need to be listed both here (which determines what gets
  23. # installed) and in MANIFEST.in (which determines what gets included
  24. # in the sdist tarball)
  25. "pywebio": [
  26. "html/codemirror/darcula.css",
  27. "html/codemirror/active-line.js",
  28. "html/codemirror/matchbrackets.js",
  29. "html/codemirror/loadmode.js",
  30. "html/codemirror/python.js",
  31. "html/css/bootstrap.min.css",
  32. "html/css/mditor.min.css",
  33. "html/css/jquery.toast.min.css",
  34. "html/css/mditor.min.css.map",
  35. "html/css/app.css",
  36. "html/css/codemirror.min.css",
  37. "html/js/FileSaver.min.js",
  38. "html/js/mditor.min.js",
  39. "html/js/.DS_Store",
  40. "html/js/codemirror.js",
  41. "html/js/pywebio.js",
  42. "html/js/mustache.min.js",
  43. "html/js/jquery.min.js",
  44. "html/js/bootstrap.min.js",
  45. "html/js/bs-custom-file-input.min.js",
  46. "html/js/popper.min.js",
  47. "html/js/jquery.toast.min.js",
  48. "html/js/require.min.js",
  49. "html/js/codemirror.min.js",
  50. "html/image/favicon_open_16.png",
  51. "html/image/favicon_closed_32.png",
  52. "html/index_cdn.html",
  53. "html/index.html",
  54. ],
  55. },
  56. classifiers=[
  57. "Programming Language :: Python :: 3",
  58. "Programming Language :: Python :: 3.5",
  59. "Programming Language :: Python :: 3.6",
  60. "Programming Language :: Python :: 3.7",
  61. "Programming Language :: Python :: 3.8",
  62. ],
  63. install_requires=[
  64. 'tornado>=4.3.0', # After this version, the new async/await keywords in Python 3.5 are supported
  65. ],
  66. extras_require={
  67. 'flask': ['flask'],
  68. },
  69. project_urls={
  70. 'Documentation': 'https://pywebio.readthedocs.io',
  71. 'Source': 'https://github.com/wang0618/PyWebIO',
  72. },
  73. )