readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.8k stars 1.74k forks source link

Release process: translations are broken #1591

Open humitos opened 3 months ago

humitos commented 3 months ago

Running python setup.py update_translations as our guide mentions fails with the following error:

running transifex
tx ERROR: configparser.NoOptionError: No option 'hostname' in section: 'https://app.transifex.com'
Traceback (most recent call last):
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/setup.py", line 88, in <module>
    setup(
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 177, in setup
    return run_commands(dist)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
    dist.run_commands()
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/setup.py", line 68, in run
    self.run_command(cmd_name)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
    self.distribution.run_command(command)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/.direnv/python-3.10.8/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/humitos/rtfd/code/sphinx_rtd_theme/setup.py", line 84, in run
    subprocess.run(['tx', 'push', '--source'], check=True)
  File "/home/humitos/.asdf/installs/python/3.10.8/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['tx', 'push', '--source']' returned non-zero exit status 1.

I think this is because we are using an old Transifex client (written in Python).