Skip to content

Commit

Permalink
Fix readthedocs.yaml + not existing MANIFEST.in for toolkit type.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Sep 29, 2023
1 parent d15e17e commit 8f22a5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 11 additions & 6 deletions config/config-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,18 @@ def configure(self):
'"fail-under" is 0. Please enter a valid minimum '
'coverage and rerun.')
abort(1)
to_add = [
'.editorconfig',
'.github/workflows/tests.yml',
'.gitignore',
'.meta.toml',
'setup.cfg',
'tox.ini',
]
if self.config_type != 'toolkit':
to_add.append('MANIFEST.in')
if self.args.commit:
call(
'git', 'add',
'setup.cfg', 'tox.ini', '.gitignore',
'.github/workflows/tests.yml', 'MANIFEST.in',
'.editorconfig',
'.meta.toml')
call('git', 'add', *to_add)
if self.args.commit_msg:
commit_msg = self.args.commit_msg
else:
Expand Down
2 changes: 2 additions & 0 deletions config/default/readthedocs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ sphinx:
python:
install:
- requirements: docs/requirements.txt
{% if config_type != 'toolkit' %}
- method: pip
path: .
{% endif %}

0 comments on commit 8f22a5d

Please sign in to comment.