diff --git a/docs/contributing.rst b/docs/contributing.rst index ab6dc57..7136fbd 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -25,7 +25,7 @@ Set up your environment .. code:: console - pip install -e '.[docs]' + pip install -e '.[dev]' #. Install SASS. @@ -83,7 +83,7 @@ the following: .. code:: console - python setup.py i18n + python setup.py update_translations This will extract new messages, upload the messages to Transifex, and will 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: we try to follow `semver `_, so be careful with breaking changes. #. Update the changelog (``docs/changelog.rst``) with the version information. #. Run ``grunt build`` to rebuild all the theme assets. -#. Run ``python setup.py i18n`` to compile new translation files and update Transifex +#. Run ``python setup.py update_translations`` to compile new translation files and update Transifex #. Commit that change. #. Tag the release in git: ``git tag $NEW_VERSION``. #. Push the tag to GitHub: ``git push --tags origin``. diff --git a/setup.py b/setup.py index ad2b96c..ecfa575 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,10 @@ import distutils.cmd from io import open from setuptools import setup +from sphinx_rtd_theme import __version__ -class LocalizeCommand(distutils.cmd.Command): + +class UpdateTranslationsCommand(distutils.cmd.Command): description = "Run all localization commands" @@ -53,7 +55,7 @@ class TransifexCommand(distutils.cmd.Command): setup( name='sphinx_rtd_theme', - version='0.4.3.dev0', + version=__version__, url='https://github.com/rtfd/sphinx_rtd_theme/', license='MIT', author='Dave Snider, Read the Docs, Inc. & contributors', @@ -61,7 +63,7 @@ setup( description='Read the Docs theme for Sphinx', long_description=open('README.rst', encoding='utf-8').read(), cmdclass={ - 'i18n': LocalizeCommand, + 'update_translations': UpdateTranslationsCommand, 'transifex': TransifexCommand, }, zip_safe=False, @@ -81,7 +83,7 @@ setup( ] }, install_requires=[ - 'sphinx<2.0' + 'sphinx' ], extras_require={ 'dev': [