mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
See #2762.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" },
|
||||
]
|
||||
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user