File tree 5 files changed +11
-14
lines changed
5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Voxelization Toolkit OSX
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
4
workflow_dispatch :
8
5
9
6
jobs :
@@ -120,10 +117,12 @@ jobs:
120
117
121
118
- name : Package .zip archives
122
119
run : |
120
+ VERSION=`cat VERSION`
123
121
base=$(find $PWD/IfcOpenShell/build -maxdepth 4 -name install)
124
122
mkdir -p $GITHUB_WORKSPACE/package
125
123
cd $GITHUB_WORKSPACE/package
126
124
cp $GITHUB_WORKSPACE/pyproject.toml .
125
+ sed -i s/.VERSION./$VERSION/g pyproject.toml
127
126
128
127
for python_root in $base/python-*; do
129
128
PATH=$python_root/bin:$PATH python3 -m pip install --upgrade pip setuptools wheel
@@ -137,7 +136,7 @@ jobs:
137
136
138
137
PATH=$python_root/bin:$PATH python3 -m build -w
139
138
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
141
140
142
141
rm -r voxec dist/*.whl
143
142
done
Original file line number Diff line number Diff line change 1
1
name : Build Voxelization Toolkit Linux
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
4
workflow_dispatch :
8
5
9
6
jobs :
@@ -88,15 +85,17 @@ jobs:
88
85
89
86
- name : Package .zip archives
90
87
run : |
88
+ VERSION=`cat VERSION`
91
89
base=$GITHUB_WORKSPACE/IfcOpenShell/build/Linux/x86_64/install
92
90
mkdir -p $GITHUB_WORKSPACE/package
93
91
cd $GITHUB_WORKSPACE/package
94
92
cp $GITHUB_WORKSPACE/pyproject.toml .
93
+ sed -i s/.VERSION./$VERSION/g pyproject.toml
95
94
96
95
for python_root in $base/python-*; do
97
96
PATH=$python_root/bin:$PATH python3 -m pip install --upgrade pip setuptools wheel
98
97
PATH=$python_root/bin:$PATH python3 -m pip install build auditwheel patchelf
99
- `
98
+
100
99
mm=`$python_root/bin/python3 --version | cut -c8- | cut -d. -f 1,2 | tr -d '.'`
101
100
mdm=`$python_root/bin/python3 --version | cut -c8- | cut -d. -f 1,2`
102
101
cp -R $python_root/lib/python$mdm/site-packages/voxec .
Original file line number Diff line number Diff line change 1
1
name : Build Voxelization Toolkit Windows
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
4
workflow_dispatch :
8
5
9
6
jobs :
99
96
100
97
- name : Package .zip Archives
101
98
run : |
102
- $SHA = ${env:GITHUB_SHA}.Substring(0, 7)
99
+ $VERSION = Get-Content VERSION -Raw
103
100
$pyVersion = "${{ matrix.python }}"
104
101
$pyVersionMajor = ($pyVersion -split '\.')[0..1] -join ''
105
102
$OUTPUT_DIR = "$env:GITHUB_WORKSPACE\package"
@@ -109,10 +106,11 @@ jobs:
109
106
110
107
cp -r C:\Python\${{ matrix.python }}\Lib\site-packages\voxec .
111
108
cp $env:GITHUB_WORKSPACE\pyproject.toml .
109
+ (Get-Content pyproject.toml).Replace('[VERSION]', $VERSION) | Set-Content pyproject.toml
112
110
113
111
C:\Python\${{ matrix.python }}\python.exe -m pip install build
114
112
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
116
114
117
115
- name : Publish a Python distribution to PyPI
118
116
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"
4
4
5
5
[project ]
6
6
name = " voxec"
7
- version = " 0.4.0 "
7
+ version = " [VERSION] "
8
8
authors = [
9
9
{
name =
" Thomas Krijnen" ,
email =
" [email protected] " },
10
10
]
You can’t perform that action at this time.
0 commit comments