Skip to content

Commit 726ceed

Browse files
committed
Use version from the package
1 parent 19b6bae commit 726ceed

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

docs/conf.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,20 @@
44
# list see the documentation:
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

7-
from distutils.dist import DistributionMetadata
8-
from pathlib import Path
9-
10-
import pkg_resources
7+
from isal import __version__
118

129
# -- Project information -----------------------------------------------------
1310

1411
# Get package information from the installed package.
15-
package = pkg_resources.get_distribution("isal")
16-
metadata_file = Path(package.egg_info) / Path(package.PKG_INFO)
17-
metadata = DistributionMetadata(path=str(metadata_file))
1812

1913
project = 'python-isal'
2014
copyright = '2020, Leiden University Medical Center'
2115
author = 'Leiden University Medical Center'
2216

2317
# The short X.Y version
24-
version = package.parsed_version.base_version
18+
version = __version__
2519
# The full version, including alpha/beta/rc tags
26-
release = package.version
27-
20+
release = __version__
2821

2922
# -- General configuration ---------------------------------------------------
3023

requirements-docs.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
sphinx
2-
setuptools
32
sphinx-rtd-theme
43
# See https://github.com/sphinx-doc/sphinx-argparse/issues/56
54
sphinx-argparse <0.5.0

0 commit comments

Comments
 (0)