diff options
author | Benjamin Balder Bach <benjamin@overtag.dk> | 2022-08-19 19:03:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 19:03:45 +0300 |
commit | cc01a5109c38c177625455f4af031b83c1759139 (patch) | |
tree | 7d3f58453b27cebbb503c4a795617581d339f249 | |
parent | 17d51de046df30eab14400d2484f3a04087c8609 (diff) | |
parent | 68aed9751a0f7277fe06f17f54d37708b81553c8 (diff) |
Merge pull request #1116 from astrojuanlu/static-metadata
Use static setuptools metadata
-rw-r--r-- | setup.cfg | 58 | ||||
-rw-r--r-- | setup.py | 62 |
2 files changed, 58 insertions, 62 deletions
@@ -1,3 +1,61 @@ +[metadata] +name = sphinx_rtd_theme +url = https://github.com/readthedocs/sphinx_rtd_theme +license = MIT +author = Dave Snider, Read the Docs, Inc. & contributors +author_email = dev@readthedocs.org +description = Read the Docs theme for Sphinx +long_description = file: README.rst +project_urls = + Homepage = https://sphinx-rtd-theme.readthedocs.io/ + Source Code = https://github.com/readthedocs/sphinx_rtd_theme + Issue Tracker = https://github.com/readthedocs/sphinx_rtd_theme/issues +classifiers = + Framework :: Sphinx + Framework :: Sphinx :: Theme + Development Status :: 5 - Production/Stable + License :: OSI Approved :: MIT License + Environment :: Console + Environment :: Web Environment + Intended Audience :: Developers + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Operating System :: OS Independent + Topic :: Documentation + Topic :: Software Development :: Documentation +[options] +include_package_data = True +zip_safe = False +packages = sphinx_rtd_theme +install_requires = + sphinx >=1.6 + docutils <0.18 + Jinja2 <3.1 +tests_require = + pytest + +[options.extras_require] +dev = + transifex-client + sphinxcontrib-httpdomain + bump2version + +[options.entry_points] +sphinx.html_themes = + sphinx_rtd_theme = sphinx_rtd_theme + +[options.package_data] +sphinx_rtd_theme = + theme.conf + *.html + static/css/*.css + static/css/fonts/*.* + static/js/*.js + [bumpversion] current_version = 1.0.1alpha1 commit = false @@ -86,73 +86,11 @@ class TransifexCommand(distutils.cmd.Command): setup( - name='sphinx_rtd_theme', version='1.0.1alpha1', - url='https://github.com/readthedocs/sphinx_rtd_theme', - license='MIT', - author='Dave Snider, Read the Docs, Inc. & contributors', - author_email='dev@readthedocs.org', - description='Read the Docs theme for Sphinx', - long_description=open('README.rst', encoding='utf-8').read(), cmdclass={ 'update_translations': UpdateTranslationsCommand, 'transifex': TransifexCommand, 'build_assets': WebpackBuildCommand, 'watch': WebpackDevelopCommand, }, - zip_safe=False, - packages=['sphinx_rtd_theme'], - package_data={'sphinx_rtd_theme': [ - 'theme.conf', - '*.html', - 'static/css/*.css', - 'static/css/fonts/*.*', - 'static/js/*.js', - ]}, - include_package_data=True, - # See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package - entry_points = { - 'sphinx.html_themes': [ - 'sphinx_rtd_theme = sphinx_rtd_theme', - ] - }, - python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', - install_requires=[ - 'sphinx>=1.6', - 'docutils<0.18', - 'Jinja2<3.1', - ], - tests_require=[ - 'pytest', - ], - extras_require={ - 'dev': [ - 'transifex-client', - 'sphinxcontrib-httpdomain', - 'bump2version', - ], - }, - classifiers=[ - 'Framework :: Sphinx', - 'Framework :: Sphinx :: Theme', - 'Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: MIT License', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Operating System :: OS Independent', - 'Topic :: Documentation', - 'Topic :: Software Development :: Documentation', - ], - project_urls={ - 'Homepage': 'https://sphinx-rtd-theme.readthedocs.io/', - 'Source Code': 'https://github.com/readthedocs/sphinx_rtd_theme', - 'Issue Tracker': 'https://github.com/readthedocs/sphinx_rtd_theme/issues', - }, ) |