From 1222b039e5681d4cc2e0662234e0cf27ba69be62 Mon Sep 17 00:00:00 2001 From: TEParsons Date: Wed, 12 Jun 2024 12:41:47 +0100 Subject: [PATCH] SYS: Version bump 0.0.3 --- .github/workflows/pypi.yaml | 8 ++++++++ psychopy_eyetracker_sr_research/__init__.py | 7 ++++++- pyproject.toml | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index a51c96a..a01c9e1 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -28,6 +28,14 @@ jobs: run: | python -m build + - name: Attach binaries + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: | + dist/* + - name: Upload to PyPi if: startsWith(github.ref, 'refs/tags/') uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/psychopy_eyetracker_sr_research/__init__.py b/psychopy_eyetracker_sr_research/__init__.py index db4617c..f30197d 100644 --- a/psychopy_eyetracker_sr_research/__init__.py +++ b/psychopy_eyetracker_sr_research/__init__.py @@ -7,4 +7,9 @@ devices by SR Research (via ioHub). """ -__version__ = "0.0.2" +import importlib.metadata + +try: + __version__ = importlib.metadata.version("psychopy-eyetracker-sr-research") +except importlib.metadata.PackageNotFoundError: + __version__ = "0.dev" diff --git a/pyproject.toml b/pyproject.toml index 4139fd5..7bf92a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "psychopy-eyetracker-sr-research" -version = "0.0.2" +version = "0.0.3" description = "Extension package for PsychoPy which adds support for SR Research eyetrackers (via ioHub)." readme = "README.md" requires-python = ">= 3.7"