This commit is contained in:
Dion Moult
2023-02-17 12:03:25 +11:00
parent ba24f9b491
commit e8f21c79b1
4 changed files with 21 additions and 10 deletions
+19 -1
View File
@@ -2,6 +2,22 @@ VERSION:=`date '+%y%m%d'`
PYVERSION:=py310
PLATFORM:=linux
SED:=sed -i
ifeq ($(OS),Windows_NT)
HOSTOS:=win
else
UNAME_S:=$(shell uname -s)
ifeq ($(UNAME_S),Linux)
HOSTOS:=linux
endif
ifeq ($(UNAME_S),Darwin)
HOSTOS:=macos
PYTHON:=python3
PATCH:=patch -d
SED:=sed -i '' -e
endif
endif
ifeq ($(PYVERSION), py36)
PYNUMBER:=36
endif
@@ -99,9 +115,11 @@ endif
# distutils cannot access anything outside the cwd, so hackishly swap out the README.md
cp README.md ../README.bak
cp ../../README.md README.md
$(SED) "s/999999/$(VERSION)/" pyproject.toml
python -m build
$(SED) "s/$(VERSION)/999999/" pyproject.toml
mv ../README.bak README.md
cd dist && mv ifcopenshell-0.7.0-py3-none-any.whl ifcopenshell-0.7.0-$(VERSION)-$(PYVERSION)-none-$(PLATFORMTAG).whl
cd dist && mv ifcopenshell-0.7.0.$(VERSION)-py3-none-any.whl ifcopenshell-0.7.0.$(VERSION)-$(PYVERSION)-none-$(PLATFORMTAG).whl
rm -rf dist/ifcopenshell
rm -rf dist/ifcopenshell.egg-info
rm -rf dist/ifcopenshell-0.7.0.tar.gz
+1 -1
View File
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ifcopenshell"
version = "0.7.0"
version = "0.7.0.999999"
authors = [
{ name="Dion Moult", email="dion@thinkmoult.com" },
]
-7
View File
@@ -1,7 +0,0 @@
from setuptools import setup
from pathlib import Path
cwd = Path(__file__).parent
long_description = (cwd / "README.md").read_text()
setup(name="ifcopenshell", long_description=long_description, long_description_content_type="text/markdown")