From dc88bb0bf449d76b287a3d84b32c0f21def14755 Mon Sep 17 00:00:00 2001 From: domna Date: Wed, 10 Jul 2024 14:30:12 +0200 Subject: [PATCH] Do git hard reset before building --- .github/workflows/publish.yml | 7 +++---- pyproject.toml | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4b0f48f..b121b72 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,8 +15,8 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Fetch tags - run: git fetch --tags --prune + with: + fetch-tags: true - name: Set up Python uses: actions/setup-python@v5 with: @@ -24,10 +24,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + git reset --hard HEAD pip install build - name: Build package run: python -m build - - name: git status - run: git status - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index ed73350..0cc12d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,9 @@ dev = [ [project.entry-points."pynxtools.reader"] mpes = "pynxtools_mpes.reader:MPESReader" +[tool.setuptools] +packages = ["pynxtools_mpes"] + [tool.setuptools_scm] [tool.ruff]