mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
See #2762.
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
|||||||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
||||||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
||||||
# * * * * *
|
# * * * * *
|
||||||
- cron: "10 4 16 * *" # 11min before utc midnight
|
- cron: "4 1 17 * *" # 11min before utc midnight
|
||||||
|
|
||||||
env:
|
env:
|
||||||
major: 0
|
major: 0
|
||||||
|
|||||||
@@ -2,6 +2,22 @@ VERSION:=`date '+%y%m%d'`
|
|||||||
PYVERSION:=py310
|
PYVERSION:=py310
|
||||||
PLATFORM:=linux
|
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)
|
ifeq ($(PYVERSION), py36)
|
||||||
PYNUMBER:=36
|
PYNUMBER:=36
|
||||||
endif
|
endif
|
||||||
@@ -99,9 +115,11 @@ endif
|
|||||||
# distutils cannot access anything outside the cwd, so hackishly swap out the README.md
|
# distutils cannot access anything outside the cwd, so hackishly swap out the README.md
|
||||||
cp README.md ../README.bak
|
cp README.md ../README.bak
|
||||||
cp ../../README.md README.md
|
cp ../../README.md README.md
|
||||||
|
$(SED) "s/999999/$(VERSION)/" pyproject.toml
|
||||||
python -m build
|
python -m build
|
||||||
|
$(SED) "s/$(VERSION)/999999/" pyproject.toml
|
||||||
mv ../README.bak README.md
|
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
|
||||||
rm -rf dist/ifcopenshell.egg-info
|
rm -rf dist/ifcopenshell.egg-info
|
||||||
rm -rf dist/ifcopenshell-0.7.0.tar.gz
|
rm -rf dist/ifcopenshell-0.7.0.tar.gz
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
|
|||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
[project]
|
[project]
|
||||||
name = "ifcopenshell"
|
name = "ifcopenshell"
|
||||||
version = "0.7.0"
|
version = "0.7.0.999999"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Dion Moult", email="dion@thinkmoult.com" },
|
{ 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