mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
IfcPatch workflow now uses VERSION
This commit is contained in:
@@ -1,21 +1,8 @@
|
|||||||
name: ci-ifcpatch-pypi
|
name: ci-ifcpatch-pypi
|
||||||
|
|
||||||
on:
|
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:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
major: 0
|
|
||||||
minor: 0
|
|
||||||
name: ifcopenshell
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
activate:
|
activate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
|
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
VERSION:=`date '+%y%m%d'`
|
VERSION:=$(shell cat ../../VERSION)
|
||||||
SED:=sed -i
|
SED:=sed -i
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
SED:=sed -i '' -e
|
SED:=sed -i '' -e
|
||||||
@@ -33,6 +33,10 @@ qa:
|
|||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist:
|
dist:
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
$(SED) "s/999999/$(VERSION)/" pyproject.toml
|
cp pyproject.toml pyproject.toml.bak
|
||||||
|
cp ifcpatch/__init__.py __init__.py.bak
|
||||||
|
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' pyproject.toml
|
||||||
|
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' ifcpatch/__init__.py
|
||||||
python -m build
|
python -m build
|
||||||
$(SED) "s/$(VERSION)/999999/" pyproject.toml
|
mv pyproject.toml.bak pyproject.toml
|
||||||
|
mv __init__.py.bak ifcpatch/__init__.py
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ import importlib
|
|||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = version = "0.0.0"
|
||||||
|
|
||||||
|
|
||||||
def execute(args: dict) -> Union[ifcopenshell.file, str]:
|
def execute(args: dict) -> Union[ifcopenshell.file, str]:
|
||||||
"""Execute a patch recipe
|
"""Execute a patch recipe
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ifcpatch"
|
name = "ifcpatch"
|
||||||
version = "0.0.999999"
|
version = "0.0.0"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Dion Moult", email="dion@thinkmoult.com" },
|
{ name="Dion Moult", email="dion@thinkmoult.com" },
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user