|
59 | 59 |
|
60 | 60 | steps: |
61 | 61 | - uses: actions/checkout@v4 |
62 | | - - name: Create pyproject.toml |
63 | | - run: | |
64 | | - # Per the cibuildwheel documentation, you can technically use |
65 | | - # CIBW_BEFORE_BUILD to do these steps; however, as of the newest |
66 | | - # version (2.21.3) this feature does not work. This is a hack |
67 | | - # to make cibuildwheel recognize our pre-build requirements |
68 | | - echo -e '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml |
69 | | - cat $GITHUB_WORKSPACE/pyproject.toml |
70 | | - ls -la $GITHUB_WORKSPACE |
71 | 62 | - name: Build wheels |
72 | | - uses: pypa/cibuildwheel@v2.21.3 |
| 63 | + uses: pypa/cibuildwheel@main |
73 | 64 | with: |
74 | 65 | output-dir: dist |
75 | 66 | env: |
@@ -118,17 +109,8 @@ jobs: |
118 | 109 | uses: docker/setup-qemu-action@v3 |
119 | 110 | with: |
120 | 111 | platforms: all |
121 | | - - name: Create pyproject.toml |
122 | | - run: | |
123 | | - # Per the cibuildwheel documentation, you can technically use |
124 | | - # CIBW_BEFORE_BUILD to do these steps; however, as of the newest |
125 | | - # version (2.21.3) this feature does not work. This is a hack |
126 | | - # to make cibuildwheel recognize our pre-build requirements |
127 | | - echo -e '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml |
128 | | - cat $GITHUB_WORKSPACE/pyproject.toml |
129 | | - ls -la $GITHUB_WORKSPACE |
130 | 112 | - name: Build wheels |
131 | | - uses: pypa/cibuildwheel@v2.21.3 |
| 113 | + uses: pypa/cibuildwheel@main |
132 | 114 | with: |
133 | 115 | output-dir: dist |
134 | 116 | env: |
@@ -158,10 +140,11 @@ jobs: |
158 | 140 | - name: Install dependencies |
159 | 141 | run: | |
160 | 142 | python -m pip install --upgrade pip |
161 | | - pip install twine wheel setuptools pybind11 |
| 143 | + pip install build twine wheel setuptools pybind11 |
162 | 144 | - name: Build pure python wheel |
163 | 145 | run: | |
164 | | - python setup.py --without-cython sdist --format=gztar bdist_wheel |
| 146 | + export PYOMO_SETUP_ARGS=--without-cython |
| 147 | + python -m build --wheel --outdir dist --config-setting="--build-option=--without-cython" |
165 | 148 | - name: Upload artifact |
166 | 149 | uses: actions/upload-artifact@v4 |
167 | 150 | with: |
@@ -189,10 +172,11 @@ jobs: |
189 | 172 | - name: Install dependencies |
190 | 173 | run: | |
191 | 174 | python -m pip install --upgrade pip |
192 | | - pip install twine wheel setuptools pybind11 |
| 175 | + pip install build twine wheel 'setuptools>=65' pybind11 |
193 | 176 | - name: Build generic tarball |
194 | 177 | run: | |
195 | | - python setup.py --without-cython sdist --format=gztar |
| 178 | + export PYOMO_SETUP_ARGS=--without-cython |
| 179 | + python -m build --sdist --outdir dist --config-setting="--build-option=--without-cython" |
196 | 180 | - name: Upload artifact |
197 | 181 | uses: actions/upload-artifact@v4 |
198 | 182 | with: |
|
0 commit comments