Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Unreleased Changes
References to the old name and website domain have been updated to reflect
this change.
https://github.com/natcap/pygeoprocessing/issues/458
* Fixing a build issue with readthedocs builds due to the deprecation of
``pkg_resources``.
https://github.com/natcap/pygeoprocessing/issues/469
* The average value of valid pixels is now computed in
``pygeoprocessing.zonal_statistics`` for each feature.
https://github.com/natcap/pygeoprocessing/issues/370
Expand Down
9 changes: 5 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@

# -- Path setup --------------------------------------------------------------

import datetime
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import datetime
import os
from importlib.metadata import version

import sphinx.ext.apidoc
from pkg_resources import get_distribution

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -77,5 +78,5 @@
os.path.join(DOCS_SOURCE_DIR, '..', '..', 'src', 'pygeoprocessing'),
])

release = get_distribution('pygeoprocessing').version
release = version('pygeoprocessing')
version = '.'.join(release.split('.')[:2])