From 0724fb13f1505526de92043dffa807a58197cc7a Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Thu, 31 Aug 2023 11:16:21 +0100 Subject: [PATCH 1/2] Set deployment workflow to run on new GitHub releases --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 54c0b14..9f8bc9a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,7 +1,9 @@ name: Deploy to main server on: - workflow_dispatch: + release: + types: + - published jobs: From f226ed5485511d2264a5d01c107fcda7ea859382 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Thu, 31 Aug 2023 11:16:45 +0100 Subject: [PATCH 2/2] Set the app version to 1.0.1 for final release before v2 --- pyproject.toml | 6 +++--- src/PASCal/__init__.py | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7951ee3..433956e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools >= 42", "wheel"] +requires = ["setuptools >= 61.0.0", "wheel"] build-backend = "setuptools.build_meta" [tool.poetry] name = "PASCal" -version = "2.0.0" +version = "1.0.1" description = "Principal Axis Strain Calculator (PASCal) is a web tool designed to help scientists analyse non-ambient lattice parameter data." readme = "README.md" keywords = ["materials", "chemistry", "fitting", "strain", "lattice"] @@ -12,7 +12,7 @@ license = "MIT" authors = [ "Matthew Cliffe ", ] classifiers = [ "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.8", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering", ] diff --git a/src/PASCal/__init__.py b/src/PASCal/__init__.py index e69de29..84bb429 100644 --- a/src/PASCal/__init__.py +++ b/src/PASCal/__init__.py @@ -0,0 +1,5 @@ +import importlib.metadata + +__version__ = importlib.metadata.version("PASCal") + +__all__ = ("__version__",)