Skip to content

Commit d02de19

Browse files
committed
Removed invoke stuff not currently being used
Removed things related to Sphinx documentation since the module currently does't have any.
1 parent 7d6ad4e commit d02de19

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
":python_version<'3.5'": ['typing'],
3838
# development only dependencies - install with 'pip install -e .[dev]'
3939
'dev': [
40-
'pytest', 'pytest-cov', 'tox', 'pylint', 'sphinx', 'sphinx-rtd-theme',
41-
'sphinx-autobuild', 'invoke', 'twine>=1.11',
40+
'pytest', 'pytest-cov', 'tox', 'invoke', 'twine>=1.11', 'setuptools>=39.1', 'wheel>=0.31'
4241
]
4342
}
4443

tasks.py

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def pytest_clean(context):
5656
@invoke.task
5757
def mypy(context):
5858
"Run mypy optional static type checker"
59-
context.run("mypy main.py")
59+
context.run("mypy tableformatter.py")
6060
namespace.add_task(mypy)
6161
namespace.add_task(mypy)
6262

@@ -82,38 +82,6 @@ def tox_clean(context):
8282
namespace_clean.add_task(tox_clean, 'tox')
8383

8484

85-
#####
86-
#
87-
# documentation
88-
#
89-
#####
90-
DOCS_SRCDIR = 'docs'
91-
DOCS_BUILDDIR = os.path.join('docs', '_build')
92-
93-
@invoke.task()
94-
def docs(context, builder='html'):
95-
"Build documentation using sphinx"
96-
cmdline = 'python -msphinx -M {} {} {}'.format(builder, DOCS_SRCDIR, DOCS_BUILDDIR)
97-
context.run(cmdline)
98-
namespace.add_task(docs)
99-
100-
@invoke.task
101-
def docs_clean(context):
102-
"Remove rendered documentation"
103-
#pylint: disable=unused-argument
104-
rmrf(DOCS_BUILDDIR)
105-
namespace_clean.add_task(docs_clean, name='docs')
106-
107-
@invoke.task
108-
def livehtml(context):
109-
"Launch webserver on http://localhost:8000 with rendered documentation"
110-
builder = 'html'
111-
outputdir = os.path.join(DOCS_BUILDDIR, builder)
112-
cmdline = 'sphinx-autobuild -b {} {} {}'.format(builder, DOCS_SRCDIR, outputdir)
113-
context.run(cmdline, pty=True)
114-
namespace.add_task(livehtml)
115-
116-
11785
#####
11886
#
11987
# build and distribute

0 commit comments

Comments
 (0)