diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 79aae4d6..39c70112 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -116,7 +116,6 @@ jobs: echo "beta_version=$BETA_VERSION" >> $GITHUB_OUTPUT sed -i "s/__version__ = \".*\"/__version__ = \"$BETA_VERSION\"/" datafog/__about__.py - sed -i "s/version=\".*\"/version=\"$BETA_VERSION\"/" setup.py - name: Generate changelog run: | @@ -153,7 +152,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_PAT }} run: | BETA_VERSION="${{ steps.version.outputs.beta_version }}" - git add datafog/__about__.py setup.py + git add datafog/__about__.py git commit -m "chore: bump version to $BETA_VERSION for beta release" git tag -a "v$BETA_VERSION" -m "Beta release $BETA_VERSION" git push origin "v$BETA_VERSION" diff --git a/datafog/__about__.py b/datafog/__about__.py index afcedcd6..111dc917 100644 --- a/datafog/__about__.py +++ b/datafog/__about__.py @@ -1 +1 @@ -__version__ = "4.2.0b1" +__version__ = "4.3.0" diff --git a/setup.py b/setup.py index dc462b93..97b5c909 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,9 @@ with open("README.md", "r") as f: long_description = f.read() -# Use a single source of truth for the version -version = "4.2.0" +# Use a single source of truth for the version from __about__.py +exec(open("datafog/__about__.py").read()) +version = __version__ # noqa: F821 project_urls = { "Homepage": "https://datafog.ai",