diff --git a/.dockerignore b/.dockerignore index 17ac74d..9cfb6e2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ -# Git -.git +# Git (keep .git for version detection) .gitignore .github diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 23568d9..02b2ab2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -174,7 +174,8 @@ jobs: - name: Build package if: matrix.python-version == '3.11' - run: python -m build + run: | + python -m build - name: Publish package if: matrix.python-version == '3.11' diff --git a/Dockerfile b/Dockerfile index 486760b..f6943ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,6 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy source code for installation COPY . . -# Use setuptools_scm with the version passed from the build -ENV SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION - # Install the package RUN pip install --no-cache-dir .