Skip to content

Commit 83ab81b

Browse files
committed
Fix readthedocs build
1 parent f4eb378 commit 83ab81b

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

docs/conf.py

+4-11
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,19 @@
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+
import zlib_ng
118

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

14-
# Get package information from the installed package.
15-
package = pkg_resources.get_distribution("zlib-ng")
16-
metadata_file = Path(package.egg_info) / Path(package.PKG_INFO)
17-
metadata = DistributionMetadata(path=str(metadata_file))
18-
1911
project = 'python-zlib-ng'
2012
copyright = '2023, Leiden University Medical Center'
2113
author = 'Leiden University Medical Center'
2214

15+
2316
# The short X.Y version
24-
version = package.parsed_version.base_version
17+
version = zlib_ng.__version__
2518
# The full version, including alpha/beta/rc tags
26-
release = package.version
19+
release = zlib_ng.__version__
2720

2821

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

requirements-docs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sphinx
22
setuptools
3-
sphinx-rtd-theme>=1.2.0rc3,<1.3
3+
sphinx-rtd-theme
44
sphinx-argparse

0 commit comments

Comments
 (0)