File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,43 @@ jobs:
235
235
run : |
236
236
python -m pip install build setuptools wheel
237
237
mkdir -p /tmp/sdist_test
238
- tar -xvf dist/*.tar.gz -C /tmp/sdist_test
238
+
239
+ # List all files in dist directory
240
+ echo "Files in dist directory:"
241
+ ls -la dist/
242
+
243
+ # Extract only the basemap sdist
244
+ BASEMAP_SDIST=$(ls dist/basemap-*.tar.gz 2>/dev/null || echo "")
245
+
246
+ if [ -z "$BASEMAP_SDIST" ]; then
247
+ echo "Basemap sdist not found with pattern 'basemap-*.tar.gz', trying alternative patterns..."
248
+ BASEMAP_SDIST=$(ls dist/*basemap*.tar.gz 2>/dev/null | head -1 || echo "")
249
+ fi
250
+
251
+ if [ -z "$BASEMAP_SDIST" ]; then
252
+ echo "ERROR: Could not find any basemap sdist"
253
+ exit 1
254
+ fi
255
+
256
+ echo "Using sdist: $BASEMAP_SDIST"
257
+
258
+ # Extract just the one sdist file
259
+ tar -xvf "$BASEMAP_SDIST" -C /tmp/sdist_test
260
+
261
+ # Enter extracted directory
239
262
cd /tmp/sdist_test/*/
263
+
264
+ # Install and build
240
265
python -m pip install -e .
241
266
python -m build --wheel
242
- ls -la dist/*.whl
267
+
268
+ # Check for built wheel
269
+ if [ -d "dist" ]; then
270
+ ls -la dist/*.whl || echo "No wheels found in dist directory"
271
+ else
272
+ echo "No dist directory created"
273
+ exit 1
274
+ fi
243
275
244
276
upload :
245
277
name : Upload packages
You can’t perform that action at this time.
0 commit comments