Skip to content

Commit

Permalink
Setting the prod docs again
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jan 2, 2024
1 parent 898ab99 commit 28d861c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/scripts/set_release_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

import os

from hatch.project.core import Project
from hatch.utils.fs import Path
from packaging.version import Version

from pytanis import __version__


def main():
project = Project(Path(__file__).resolve().parent.parent)
version = Version(project.metadata.version)
version = Version(__version__)
with open(os.environ['GITHUB_ENV'], 'a', encoding='utf-8') as f:
f.write(f'PYTANIS_VERSION={version.major}.{version.minor}\n')

Expand Down

0 comments on commit 28d861c

Please sign in to comment.