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: 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__",)