From 8fc59873c7fab8d1a64599fc04bd9601635db16c Mon Sep 17 00:00:00 2001 From: Jan Ernsting Date: Fri, 25 Nov 2022 16:41:21 +0100 Subject: [PATCH] Fixed test pypi versioning --- .github/workflows/python-test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index a544b9c..021d27b 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -39,14 +39,12 @@ jobs: if: github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python 3.9 uses: actions/setup-python@v4 with: python-version: 3.9 - - name: Replace version number with commit hash - run: | - dt=$(date '+%Y.%m.%d.%H.%M.%S') - sed -i "s/^__version__.*/__version__ = '$dt'/g" setup.py - name: Install pypa/build run: pip install build pbr wheel - name: Build a binary wheel and a source tarball