From a4f8c6bd3bc378f2a54f9190d158a458644ed68a Mon Sep 17 00:00:00 2001 From: Zeyu Xu Date: Fri, 1 Nov 2024 16:16:08 +0100 Subject: [PATCH] Added version file --- .github/workflows/python-publish.yml | 1 + deism/version.py | 2 ++ setup.py | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 deism/version.py diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9b1e40f..95d68d2 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -50,6 +50,7 @@ jobs: export ARCHFLAGS="-arch x86_64 -arch arm64" fi python -m pip install -e . + shell: bash - name: Test with pytest run: | diff --git a/deism/version.py b/deism/version.py new file mode 100644 index 0000000..fb96a1a --- /dev/null +++ b/deism/version.py @@ -0,0 +1,2 @@ +# deism/version.py +__version__ = "2.0.1" # Update this for new versions diff --git a/setup.py b/setup.py index c23fcac..00dacba 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ from distutils.command.build_ext import build_ext from distutils.core import setup from distutils.extension import Extension +from deism.version import __version__ class get_pybind_include(object): @@ -207,7 +208,7 @@ def clean(self): setup_kwargs = dict( name="deism", - version=2.0, + version=__version__, # packages=find_packages(), packages=["deism"], description="An image source-based method used to simulate room transfer functions for arbitrary room shapes.",