Forgot to update bimtester makefile

This commit is contained in:
Dion Moult
2024-07-18 23:57:44 +10:00
parent 734b4901fd
commit 268ab107e2
+16 -22
View File
@@ -16,14 +16,8 @@
# 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 IfcBIMTester. If not, see <http://www.gnu.org/licenses/>. # along with IfcBIMTester. If not, see <http://www.gnu.org/licenses/>.
PYTHON:=python3.11 PACKAGE_NAME:=bimtester
PIP:=pip3.11 include ../common.mk
SED:=sed -i
ifeq ($(UNAME_S),Darwin)
PYTHON:=python3
SED:=sed -i '' -e
endif
VERSION:=$(shell cat ../../VERSION)
.PHONY: license .PHONY: license
license: license:
@@ -35,17 +29,17 @@ qa:
.PHONY: dist .PHONY: dist
dist: dist:
rm -rf dist rm -rf build
cp pyproject.toml pyproject.toml.bak mkdir -p build
cp bimtester/__init__.py __init__.py.bak mkdir -p dist
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' pyproject.toml cp -r $(PACKAGE_NAME) build/
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' bimtester/__init__.py cp pyproject.toml build/
mkdir -p dist/working $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' build/pyproject.toml
cd dist/working && $(PYTHON) -m venv env $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' build/$(PACKAGE_NAME)/__init__.py
cd dist/working && . env/bin/activate && $(PIP) install pybabel cd build && $(PYTHON) -m venv env && . env/bin/activate && $(PIP) install build
cd dist/working && . env/bin/activate && $(PIP) install babel cd build && . env/bin/activate && $(PIP) install pybabel
cd dist/working/ && . env/bin/activate && ./env/bin/pybabel compile -d ../../bimtester/locale/ cd build && . env/bin/activate && $(PIP) install babel
python -m build cd build && . env/bin/activate && ./env/bin/pybabel compile -d ./bimtester/locale/
mv pyproject.toml.bak pyproject.toml cd build && . env/bin/activate && $(PYTHON) -m build
mv __init__.py.bak bimtester/__init__.py cp build/dist/*.whl dist/
rm -rf dist/working rm -rf build