Skip to content

Commit

Permalink
moves rst to pkgmt.testing, adds sphinx as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jan 2, 2022
1 parent fa6a74c commit 102f722
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def read(*names, **kwargs):
'flake8',
'invoke',
'twine',
# for pkgmt.testing module
'sphinx',
]

setup(
Expand Down
2 changes: 1 addition & 1 deletion src/pkgmt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def check_links():
def execute(path, output):
"""Execute rst files
"""
from pkgmt import rst
from pkgmt.testing import rst
code = rst.parse_from_path(path)

if output:
Expand Down
Empty file added src/pkgmt/testing/__init__.py
Empty file.
File renamed without changes.
4 changes: 1 addition & 3 deletions tests/test_rst.py → tests/testing/test_rst.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pkgmt import rst
from pkgmt.testing import rst

import pytest

Expand Down Expand Up @@ -50,8 +50,6 @@
echo hi\
"""

# tmp_empty


@pytest.mark.parametrize('in_, out', [
[empty_in, empty_out],
Expand Down

0 comments on commit 102f722

Please sign in to comment.