Skip to content

Commit

Permalink
MAINT: update conf for pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Dec 20, 2023
1 parent 8c35bac commit ff13110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import datetime as dt
import json
import os
import pkg_resources
import sys

sys.path.insert(0, os.path.abspath('..'))
Expand Down Expand Up @@ -72,9 +73,7 @@
#
# The short X.Y version.
module_dir = os.path.split(os.path.abspath(os.path.dirname(__file__)))[0]
version_file = os.path.join(module_dir, project, 'version.txt')
with open(version_file, 'r') as fin:
version = fin.read().strip()
version = pkg_resources.get_distribution('pysatModels').version

# The full version, including alpha/beta/rc tags.
release = '{:s}-alpha'.format(version)
Expand Down

0 comments on commit ff13110

Please # to comment.