Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
wallento committed Jun 11, 2020
1 parent 620d662 commit 88f67cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
# -- Project information -----------------------------------------------------

project = 'RISC-V Model'
copyright = '2018, Stefan Wallentowitz'
copyright = '2018-2020, Stefan Wallentowitz'
author = 'Stefan Wallentowitz'

from pkg_resources import get_distribution
release = get_distribution('riscv-model').version
# for example take major/minor
version = '.'.join(release.split('.')[:2])
from riscvmodel import __version__ as version


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -75,7 +73,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'python_docs_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
python-docs-theme
2 changes: 1 addition & 1 deletion riscvmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
try:
from riscvmodel.version import version as __version__
except ImportError:
__version__ = "unknown"
__version__ = "unknown"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
],
},
setup_requires=[
'setuptools_scm',
'setuptools_scm'
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
)

0 comments on commit 88f67cd

Please sign in to comment.