Skip to content

Commit

Permalink
Update dependencies: docutils 0.20.1, Sphinx 7.2.6 (#92)
Browse files Browse the repository at this point in the history
This is to go along with
chapel-lang/chapel#24612 . The changes to
test/test_chapeldomain.py avoid a problem when using docutils 0.19 or
newer that came up with the way the test was using mocked objects.

Reviewed by @lydia-duncan - thanks!
  • Loading branch information
mppf authored Apr 8, 2024
2 parents 5774b66 + 9664dde commit 30ee1fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Note: DON'T UPDATE THIS WITHOUT ALSO UPDATING SETUP.PY
docutils==0.18
Sphinx==5.3.0
docutils==0.20.1
Sphinx==7.2.6
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
packages=find_packages(exclude=('test',)),
include_package_data=True,
install_requires=[
'docutils==0.18',
'Sphinx==5.3.0',
'docutils==0.20.1',
'Sphinx==7.2.6',
],
namespace_packages=['sphinxcontrib']
)
16 changes: 8 additions & 8 deletions test/test_chapeldomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ def new_obj(self, objtype, **kwargs):
"""Return new mocked out ChapelObject"""
default_args = {
'name': 'my-chpl',
'arguments': mock.Mock('arguments'),
'options': mock.Mock('options'),
'content': mock.Mock('content'),
'lineno': mock.Mock('lineno'),
'content_offset': mock.Mock('content_offset'),
'block_text': mock.Mock('block_text'),
'state': mock.Mock('state'),
'state_machine': mock.Mock('state_machine'),
'arguments': mock.Mock(name='arguments'),
'options': mock.Mock(name='options'),
'content': mock.Mock(name='content'),
'lineno': mock.Mock(name='lineno'),
'content_offset': mock.Mock(name='content_offset'),
'block_text': mock.Mock(name='block_text'),
'state': mock.Mock(name='state'),
'state_machine': mock.Mock(name='state_machine', spec=["reporter",]),
}
default_args.update(kwargs)
o = self.object_cls(**default_args)
Expand Down

0 comments on commit 30ee1fc

Please sign in to comment.