setup.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. from __future__ import absolute_import, print_function
  4. import io
  5. import os
  6. import re
  7. from glob import glob
  8. from os.path import basename
  9. from os.path import dirname
  10. from os.path import join
  11. from os.path import relpath
  12. from os.path import splitext
  13. from setuptools import find_packages
  14. from setuptools import setup
  15. def read(*names, **kwargs):
  16. return io.open(
  17. join(dirname(__file__), *names),
  18. encoding=kwargs.get('encoding', 'utf8')
  19. ).read()
  20. setup(
  21. name='sphinx-sleekcat-theme',
  22. version='0.1.0',
  23. license='BSD',
  24. description='A theme based on the https://github.com/ionelmc/sphinx-py3doc-enhanced-theme',
  25. long_description='%s\n%s' % (read('README.rst'), re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst'))),
  26. author='Pyrocko Developer Team',
  27. author_email='contact@ionelmc.ro',
  28. url='https://github.com/pyrocko/spinx-sleekcat-theme',
  29. packages=find_packages('src'),
  30. package_dir={'': 'src'},
  31. py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
  32. include_package_data=True,
  33. zip_safe=False,
  34. classifiers=[
  35. # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
  36. 'Development Status :: 5 - Production/Stable',
  37. 'Intended Audience :: Developers',
  38. 'License :: OSI Approved :: BSD License',
  39. 'Operating System :: Unix',
  40. 'Operating System :: POSIX',
  41. 'Operating System :: Microsoft :: Windows',
  42. 'Programming Language :: Python',
  43. 'Programming Language :: Python :: 2.6',
  44. 'Programming Language :: Python :: 2.7',
  45. 'Programming Language :: Python :: 3',
  46. 'Programming Language :: Python :: 3.3',
  47. 'Programming Language :: Python :: 3.4',
  48. 'Programming Language :: Python :: Implementation :: CPython',
  49. 'Programming Language :: Python :: Implementation :: PyPy',
  50. 'Topic :: Utilities',
  51. ],
  52. entry_points = {
  53. 'sphinx_themes': [
  54. 'path = sphinx_sleekcat_theme:get_html_theme_path',
  55. ]
  56. },
  57. keywords=[
  58. # eg: 'keyword1', 'keyword2', 'keyword3',
  59. ],
  60. install_requires=[
  61. # eg: 'aspectlib==1.1.1', 'six>=1.7',
  62. ],
  63. extras_require={
  64. # eg:
  65. # 'rst': ['docutils>=0.11'],
  66. # ':python_version=="2.6"': ['argparse'],
  67. },
  68. )