From b9d922b27a1e48f557e7722254dc02ab777539fd Mon Sep 17 00:00:00 2001 From: theOehrly Date: Thu, 4 Mar 2021 23:22:39 +0100 Subject: [PATCH] fix small doc and structure issues --- MANIFEST.in | 2 +- docs/conf.py | 7 ++++++- setup.cfg | 4 +--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index f9bd1455b..23d655ff8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include requirements.txt +include requirements-dev.txt diff --git a/docs/conf.py b/docs/conf.py index 372e98ee5..6654462d4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,10 +11,15 @@ # -- Project information ----------------------------------------------------- +# load version number from file in project root dir +with open('../VERSION.txt') as vfobj: + version = str(vfobj.read()) + # project = 'Fast F1' # copyright = 'MIT' # author = 'Oehrly' -# version = info['version'] +version = version +release = version copyright = f'{datetime.now().year}, theOehrly' diff --git a/setup.cfg b/setup.cfg index 3a78dde76..0f708dd86 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ name = fastf1 version = file: VERSION.txt license = MIT -license_files = LICENSE.rst +license_files = LICENSE author = Oehrly author_email = oehrly@mailbox.org home-page = https://github.com/theOehrly/Fast-F1 @@ -28,8 +28,6 @@ install_requires = [build_sphinx] project = Fast F1 -version = file: VERSION.txt -release = file: VERSION.txt source-dir = ./docs build-dir = ./docs/_build