File tree Expand file tree Collapse file tree 5 files changed +11
-14
lines changed
Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 11name : Build Voxelization Toolkit OSX
22
33on :
4- push :
5- branches :
6- - master
74 workflow_dispatch :
85
96jobs :
@@ -120,10 +117,12 @@ jobs:
120117
121118 - name : Package .zip archives
122119 run : |
120+ VERSION=`cat VERSION`
123121 base=$(find $PWD/IfcOpenShell/build -maxdepth 4 -name install)
124122 mkdir -p $GITHUB_WORKSPACE/package
125123 cd $GITHUB_WORKSPACE/package
126124 cp $GITHUB_WORKSPACE/pyproject.toml .
125+ sed -i s/.VERSION./$VERSION/g pyproject.toml
127126
128127 for python_root in $base/python-*; do
129128 PATH=$python_root/bin:$PATH python3 -m pip install --upgrade pip setuptools wheel
@@ -137,7 +136,7 @@ jobs:
137136
138137 PATH=$python_root/bin:$PATH python3 -m build -w
139138 PATH=$python_root/bin:$PATH delocate-wheel dist/*.whl -w audited
140- mv audited/voxec-0.4.0 -cp$mm-none-any.whl audited/voxec-0.4.0 -cp$mm-none-macosx_${{ matrix.macosx_ver }}_${{ matrix.cpuarch }}.whl
139+ mv audited/voxec-$VERSION -cp$mm-none-any.whl audited/voxec-$VERSION -cp$mm-none-macosx_${{ matrix.macosx_ver }}_${{ matrix.cpuarch }}.whl
141140
142141 rm -r voxec dist/*.whl
143142 done
Original file line number Diff line number Diff line change 11name : Build Voxelization Toolkit Linux
22
33on :
4- push :
5- branches :
6- - master
74 workflow_dispatch :
85
96jobs :
@@ -88,15 +85,17 @@ jobs:
8885
8986 - name : Package .zip archives
9087 run : |
88+ VERSION=`cat VERSION`
9189 base=$GITHUB_WORKSPACE/IfcOpenShell/build/Linux/x86_64/install
9290 mkdir -p $GITHUB_WORKSPACE/package
9391 cd $GITHUB_WORKSPACE/package
9492 cp $GITHUB_WORKSPACE/pyproject.toml .
93+ sed -i s/.VERSION./$VERSION/g pyproject.toml
9594
9695 for python_root in $base/python-*; do
9796 PATH=$python_root/bin:$PATH python3 -m pip install --upgrade pip setuptools wheel
9897 PATH=$python_root/bin:$PATH python3 -m pip install build auditwheel patchelf
99- `
98+
10099 mm=`$python_root/bin/python3 --version | cut -c8- | cut -d. -f 1,2 | tr -d '.'`
101100 mdm=`$python_root/bin/python3 --version | cut -c8- | cut -d. -f 1,2`
102101 cp -R $python_root/lib/python$mdm/site-packages/voxec .
Original file line number Diff line number Diff line change 11name : Build Voxelization Toolkit Windows
22
33on :
4- push :
5- branches :
6- - master
74 workflow_dispatch :
85
96jobs :
9996
10097 - name : Package .zip Archives
10198 run : |
102- $SHA = ${env:GITHUB_SHA}.Substring(0, 7)
99+ $VERSION = Get-Content VERSION -Raw
103100 $pyVersion = "${{ matrix.python }}"
104101 $pyVersionMajor = ($pyVersion -split '\.')[0..1] -join ''
105102 $OUTPUT_DIR = "$env:GITHUB_WORKSPACE\package"
@@ -109,10 +106,11 @@ jobs:
109106
110107 cp -r C:\Python\${{ matrix.python }}\Lib\site-packages\voxec .
111108 cp $env:GITHUB_WORKSPACE\pyproject.toml .
109+ (Get-Content pyproject.toml).Replace('[VERSION]', $VERSION) | Set-Content pyproject.toml
112110
113111 C:\Python\${{ matrix.python }}\python.exe -m pip install build
114112 C:\Python\${{ matrix.python }}\python.exe -m build -w
115- mv .\dist\voxec-0.4.0 -py3-none-any.whl .\dist\voxec-0.4.0 -py${pyVersionMajor}-none-win_amd64.whl
113+ mv .\dist\voxec-${VERSION} -py3-none-any.whl .\dist\voxec-${VERSION} -py${pyVersionMajor}-none-win_amd64.whl
116114
117115 - name : Publish a Python distribution to PyPI
118116 uses : ortega2247/pypi-upload-action@master
Original file line number Diff line number Diff line change 1+ 0.4.1
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " voxec"
7- version = " 0.4.0 "
7+ version = " [VERSION] "
88authors = [
99 { name =" Thomas Krijnen" , email =" thomas@aecgeeks.com" },
1010]
You can’t perform that action at this time.
0 commit comments