Skip to content

Commit cc01a51

Browse files
authored
Merge pull request #1116 from astrojuanlu/static-metadata
Use static setuptools metadata
2 parents 17d51de + 68aed97 commit cc01a51

File tree

2 files changed

+58
-62
lines changed

2 files changed

+58
-62
lines changed

setup.cfg

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
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.18
37+
Jinja2 <3.1
38+
tests_require =
39+
pytest
40+
41+
[options.extras_require]
42+
dev =
43+
transifex-client
44+
sphinxcontrib-httpdomain
45+
bump2version
46+
47+
[options.entry_points]
48+
sphinx.html_themes =
49+
sphinx_rtd_theme = sphinx_rtd_theme
50+
51+
[options.package_data]
52+
sphinx_rtd_theme =
53+
theme.conf
54+
*.html
55+
static/css/*.css
56+
static/css/fonts/*.*
57+
static/js/*.js
58+
159
[bumpversion]
260
current_version = 1.0.1alpha1
361
commit = false

setup.py

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

8787

8888
setup(
89-
name='sphinx_rtd_theme',
9089
version='1.0.1alpha1',
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-
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
120-
install_requires=[
121-
'sphinx>=1.6',
122-
'docutils<0.18',
123-
'Jinja2<3.1',
124-
],
125-
tests_require=[
126-
'pytest',
127-
],
128-
extras_require={
129-
'dev': [
130-
'transifex-client',
131-
'sphinxcontrib-httpdomain',
132-
'bump2version',
133-
],
134-
},
135-
classifiers=[
136-
'Framework :: Sphinx',
137-
'Framework :: Sphinx :: Theme',
138-
'Development Status :: 5 - Production/Stable',
139-
'License :: OSI Approved :: MIT License',
140-
'Environment :: Console',
141-
'Environment :: Web Environment',
142-
'Intended Audience :: Developers',
143-
'Programming Language :: Python :: 2.7',
144-
'Programming Language :: Python :: 3',
145-
'Programming Language :: Python :: 3.6',
146-
'Programming Language :: Python :: 3.7',
147-
'Programming Language :: Python :: 3.8',
148-
'Programming Language :: Python :: 3.9',
149-
'Operating System :: OS Independent',
150-
'Topic :: Documentation',
151-
'Topic :: Software Development :: Documentation',
152-
],
153-
project_urls={
154-
'Homepage': 'https://sphinx-rtd-theme.readthedocs.io/',
155-
'Source Code': 'https://github.com/readthedocs/sphinx_rtd_theme',
156-
'Issue Tracker': 'https://github.com/readthedocs/sphinx_rtd_theme/issues',
157-
},
15896
)

0 commit comments

Comments
 (0)