Files
IfcOpenShell/src/ifcpatch/Makefile
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
Makefile
Raw Normal View History

2024-04-08 11:19:13 +10:00
# IfcPatch - IFC patching utiliy
# Copyright (C) 2020, 2021, 2023 Dion Moult <dion@thinkmoult.com>
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# This file is part of IfcPatch.
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# IfcPatch is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
2022-09-19 13:33:40 +10:00
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
2024-04-08 11:19:13 +10:00
# IfcPatch is distributed in the hope that it will be useful,
2022-09-19 13:33:40 +10:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2024-04-08 11:19:13 +10:00
# GNU Lesser General Public License for more details.
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
2022-09-19 13:33:40 +10:00
2024-06-12 18:05:33 +10:00
VERSION:=$(shell cat ../../VERSION)
2024-04-08 10:31:37 +10:00
SED:=sed -i
ifeq ($(UNAME_S),Darwin)
SED:=sed -i '' -e
endif
2022-09-19 13:33:40 +10:00
.PHONY: test
test:
pytest -p no:pytest-blender test
.PHONY: qa
qa:
black .
2024-04-08 10:24:04 +10:00
.PHONY: dist
dist:
rm -rf dist
2024-06-12 18:05:33 +10:00
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
2024-04-08 10:24:04 +10:00
python -m build
2024-06-12 18:05:33 +10:00
mv pyproject.toml.bak pyproject.toml
mv __init__.py.bak ifcpatch/__init__.py