Set Sphinx project settings in conf.py file

This commit is contained in:
Johannes Hoppe 2019-04-11 12:29:40 +02:00
parent fa9d8baba8
commit 2bb6f3a974
2 changed files with 5 additions and 2 deletions

View file

@ -16,8 +16,13 @@ sys.path.insert(0, os.path.abspath('../tests.testapp'))
sys.path.insert(0, os.path.abspath('..'))
project = "Django-Select2"
author = "Johannes Hoppe"
copyright = "2017, Johannes Hoppe"
release = get_distribution('django_select2').version
version = '.'.join(release.split('.')[:2])
master_doc = 'index' # default in Sphinx v2

View file

@ -47,8 +47,6 @@ test = pytest
[build_sphinx]
source-dir = docs
build-dir = docs/_build
project = Django-Select2
copyright = 2017 Johannes Hoppe
[tool:pytest]
addopts = --cov=django_select2 --cov-report xml