diff --git a/.github/workflows/ci-ifctester-pypi.yml b/.github/workflows/ci-ifctester-pypi.yml
index 24226acd86..f7e29ac111 100644
--- a/.github/workflows/ci-ifctester-pypi.yml
+++ b/.github/workflows/ci-ifctester-pypi.yml
@@ -1,21 +1,8 @@
name: ci-ifctester-pypi
on:
- schedule:
- # ┌───────────── minute (0 - 59)
- # │ ┌───────────── hour (0 - 23)
- # │ │ ┌───────────── day of the month (1 - 31)
- # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
- # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
- # * * * * *
- - cron: "0 0 18 * *"
workflow_dispatch:
-env:
- major: 0
- minor: 0
- name: ifcopenshell
-
jobs:
activate:
runs-on: ubuntu-latest
diff --git a/src/ifctester/Makefile b/src/ifctester/Makefile
index 7ae89cba16..35530255ff 100644
--- a/src/ifctester/Makefile
+++ b/src/ifctester/Makefile
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcTester. If not, see .
-VERSION:=`date '+%y%m%d'`
+VERSION:=$(shell cat ../../VERSION)
SED:=sed -i
ifeq ($(UNAME_S),Darwin)
SED:=sed -i '' -e
@@ -29,6 +29,10 @@ test:
.PHONY: dist
dist:
rm -rf dist
- $(SED) "s/999999/$(VERSION)/" pyproject.toml
+ cp pyproject.toml pyproject.toml.bak
+ cp ifctester/__init__.py __init__.py.bak
+ $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' pyproject.toml
+ $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' ifctester/__init__.py
python -m build
- $(SED) "s/$(VERSION)/999999/" pyproject.toml
+ mv pyproject.toml.bak pyproject.toml
+ mv __init__.py.bak ifctester/__init__.py
diff --git a/src/ifctester/ifctester/__init__.py b/src/ifctester/ifctester/__init__.py
index e070f06934..2cc1599de4 100644
--- a/src/ifctester/ifctester/__init__.py
+++ b/src/ifctester/ifctester/__init__.py
@@ -17,3 +17,4 @@
# along with IfcTester. If not, see .
from .ids import open
+__version__ = version = "0.0.0"
diff --git a/src/ifctester/pyproject.toml b/src/ifctester/pyproject.toml
index a4644df54c..2f97bda807 100644
--- a/src/ifctester/pyproject.toml
+++ b/src/ifctester/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ifctester"
-version = "0.0.999999"
+version = "0.0.0"
authors = [
{ name="Dion Moult", email="dion@thinkmoult.com" },
]