Skip to content

Commit 1421fb5

Browse files
committed
Use static setuptools metadata
1 parent 3db4e2f commit 1421fb5

File tree

2 files changed

+57
-60
lines changed

2 files changed

+57
-60
lines changed

setup.cfg

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
[metadata]
2+
name = sphinx_rtd_theme
3+
url = https://github.com/readthedocs/sphinx_rtd_theme
4+
license = MIT
5+
author = Dave Snider, Read the Docs, Inc. & contributors
6+
author_email = [email protected]
7+
description = Read the Docs theme for Sphinx
8+
long_description = file: README.rst
9+
project_urls =
10+
Homepage = https://sphinx-rtd-theme.readthedocs.io/
11+
Source Code = https://github.com/readthedocs/sphinx_rtd_theme
12+
Issue Tracker = https://github.com/readthedocs/sphinx_rtd_theme/issues
13+
classifiers =
14+
Framework :: Sphinx
15+
Framework :: Sphinx :: Theme
16+
Development Status :: 5 - Production/Stable
17+
License :: OSI Approved :: MIT License
18+
Environment :: Console
19+
Environment :: Web Environment
20+
Intended Audience :: Developers
21+
Programming Language :: Python :: 2.7
22+
Programming Language :: Python :: 3
23+
Programming Language :: Python :: 3.6
24+
Programming Language :: Python :: 3.7
25+
Programming Language :: Python :: 3.8
26+
Programming Language :: Python :: 3.9
27+
Operating System :: OS Independent
28+
Topic :: Documentation
29+
Topic :: Software Development :: Documentation
30+
[options]
31+
include_package_data = True
32+
zip_safe = False
33+
packages = sphinx_rtd_theme
34+
install_requires =
35+
sphinx >=1.6
36+
docutils <0.17 # https://github.com/sphinx-doc/sphinx/issues/9001
37+
tests_require =
38+
pytest
39+
40+
[options.extras_require]
41+
dev =
42+
transifex-client
43+
sphinxcontrib-httpdomain
44+
bump2version
45+
46+
[options.entry_points]
47+
sphinx.html_themes =
48+
sphinx_rtd_theme = sphinx_rtd_theme
49+
50+
[options.package_data]
51+
sphinx_rtd_theme =
52+
theme.conf
53+
*.html
54+
static/css/*.css
55+
static/css/fonts/*.*
56+
static/js/*.js
57+
158
[bumpversion]
259
current_version = 0.5.2
360
commit = false

setup.py

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -86,71 +86,11 @@ def run(self):
8686

8787

8888
setup(
89-
name='sphinx_rtd_theme',
9089
version='0.5.2',
91-
url='https://github.com/readthedocs/sphinx_rtd_theme',
92-
license='MIT',
93-
author='Dave Snider, Read the Docs, Inc. & contributors',
94-
author_email='[email protected]',
95-
description='Read the Docs theme for Sphinx',
96-
long_description=open('README.rst', encoding='utf-8').read(),
9790
cmdclass={
9891
'update_translations': UpdateTranslationsCommand,
9992
'transifex': TransifexCommand,
10093
'build_assets': WebpackBuildCommand,
10194
'watch': WebpackDevelopCommand,
10295
},
103-
zip_safe=False,
104-
packages=['sphinx_rtd_theme'],
105-
package_data={'sphinx_rtd_theme': [
106-
'theme.conf',
107-
'*.html',
108-
'static/css/*.css',
109-
'static/css/fonts/*.*'
110-
'static/js/*.js',
111-
]},
112-
include_package_data=True,
113-
# See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
114-
entry_points = {
115-
'sphinx.html_themes': [
116-
'sphinx_rtd_theme = sphinx_rtd_theme',
117-
]
118-
},
119-
install_requires=[
120-
'sphinx>=1.6',
121-
'docutils<0.17', # https://github.com/sphinx-doc/sphinx/issues/9001
122-
],
123-
tests_require=[
124-
'pytest',
125-
],
126-
extras_require={
127-
'dev': [
128-
'transifex-client',
129-
'sphinxcontrib-httpdomain',
130-
'bump2version',
131-
],
132-
},
133-
classifiers=[
134-
'Framework :: Sphinx',
135-
'Framework :: Sphinx :: Theme',
136-
'Development Status :: 5 - Production/Stable',
137-
'License :: OSI Approved :: MIT License',
138-
'Environment :: Console',
139-
'Environment :: Web Environment',
140-
'Intended Audience :: Developers',
141-
'Programming Language :: Python :: 2.7',
142-
'Programming Language :: Python :: 3',
143-
'Programming Language :: Python :: 3.6',
144-
'Programming Language :: Python :: 3.7',
145-
'Programming Language :: Python :: 3.8',
146-
'Programming Language :: Python :: 3.9',
147-
'Operating System :: OS Independent',
148-
'Topic :: Documentation',
149-
'Topic :: Software Development :: Documentation',
150-
],
151-
project_urls={
152-
'Homepage': 'https://sphinx-rtd-theme.readthedocs.io/',
153-
'Source Code': 'https://github.com/readthedocs/sphinx_rtd_theme',
154-
'Issue Tracker': 'https://github.com/readthedocs/sphinx_rtd_theme/issues',
155-
},
15696
)

0 commit comments

Comments
 (0)