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]