Skip to content

Commit

Permalink
read version better
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsavel committed Feb 22, 2024
1 parent 22ca0e1 commit f306e31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# META_PATH = os.path.join("..", "src", "simmer", "__init__.py")
HERE = os.path.abspath(os.path.dirname(__file__))
from simmer import __version__
from importlib.metadata import version as get_version


def read(*parts):
Expand Down Expand Up @@ -96,9 +96,9 @@ def read(*parts):
# built documents.
#
# The short X.Y version.
version = __version__
version = get_version('simmer').split('.dev')[0]
# The full version, including alpha/beta/rc tags.
release = version
release = get_version('simmer').split('.dev')[0]

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
16 changes: 0 additions & 16 deletions docs/requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ dependencies = [
]
dynamic = ["version"]


[tool.setuptools_scm]

[project.optional-dependencies]
docs = ["nbsphinx",
"nbconvert",
Expand Down

0 comments on commit f306e31

Please sign in to comment.