Skip to content

Commit 5052143

Browse files
committed
Undoing test fixes
1 parent 0e0ccff commit 5052143

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/contributing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Set up your environment
2525

2626
.. code:: console
2727
28-
pip install -e '.[docs]'
28+
pip install -e '.[dev]'
2929
3030
#. Install SASS.
3131

@@ -83,7 +83,7 @@ the following:
8383

8484
.. code:: console
8585
86-
python setup.py i18n
86+
python setup.py update_translations
8787
8888
This will extract new messages, upload the messages to Transifex, and will
8989
update our local translation files. Changes can be checked in to a branch and
@@ -100,7 +100,7 @@ To release a new version of the theme, core team will take the following steps:
100100
we try to follow `semver <http://semver.org/>`_, so be careful with breaking changes.
101101
#. Update the changelog (``docs/changelog.rst``) with the version information.
102102
#. Run ``grunt build`` to rebuild all the theme assets.
103-
#. Run ``python setup.py i18n`` to compile new translation files and update Transifex
103+
#. Run ``python setup.py update_translations`` to compile new translation files and update Transifex
104104
#. Commit that change.
105105
#. Tag the release in git: ``git tag $NEW_VERSION``.
106106
#. Push the tag to GitHub: ``git push --tags origin``.

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
from io import open
1111
from setuptools import setup
1212

13+
from sphinx_rtd_theme import __version__
1314

14-
class LocalizeCommand(distutils.cmd.Command):
15+
16+
class UpdateTranslationsCommand(distutils.cmd.Command):
1517

1618
description = "Run all localization commands"
1719

@@ -53,15 +55,15 @@ def run(self):
5355

5456
setup(
5557
name='sphinx_rtd_theme',
56-
version='0.4.3.dev0',
58+
version=__version__,
5759
url='https://github.com/rtfd/sphinx_rtd_theme/',
5860
license='MIT',
5961
author='Dave Snider, Read the Docs, Inc. & contributors',
6062
author_email='[email protected]',
6163
description='Read the Docs theme for Sphinx',
6264
long_description=open('README.rst', encoding='utf-8').read(),
6365
cmdclass={
64-
'i18n': LocalizeCommand,
66+
'update_translations': UpdateTranslationsCommand,
6567
'transifex': TransifexCommand,
6668
},
6769
zip_safe=False,
@@ -81,7 +83,7 @@ def run(self):
8183
]
8284
},
8385
install_requires=[
84-
'sphinx<2.0'
86+
'sphinx'
8587
],
8688
extras_require={
8789
'dev': [

0 commit comments

Comments
 (0)