From 8d05d1b7c396b2d0ea5f0eb15a4d4bc3e749e78c Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 17 Aug 2024 18:53:21 -0700 Subject: [PATCH] Update pyproject and build script to read from version file --- .gitea/workflows/build-pypi.yml | 4 ---- pyproject.toml | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-pypi.yml b/.gitea/workflows/build-pypi.yml index 9c74dd2..04646a5 100644 --- a/.gitea/workflows/build-pypi.yml +++ b/.gitea/workflows/build-pypi.yml @@ -15,10 +15,6 @@ jobs: with: python-version: '3.x' - - name: Read version from file - id: read_version - run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV - - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml index 94a3aa5..c83078d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,5 @@ scripts = { docker_apps_view = "app:main" } dynamic = ["version"] -[tool.setuptools_scm] -version_scheme = "guess-next-dev" -local_scheme = "node-and-date" -write_to = "version.txt" \ No newline at end of file +[tool.setuptools.dynamic] +version = {file = "version.txt"} \ No newline at end of file