Skip to content

Commit 57f7b50

Browse files
committed
github actions: builds fixed now
remove unnecessary code
1 parent b196dc9 commit 57f7b50

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22-
- name: fetch git tags
23-
run: "git fetch --prune --prune-tags --tags"
24-
2522
- name: Set up Python 3.9
2623
uses: actions/setup-python@v2
2724
with:
@@ -50,9 +47,6 @@ jobs:
5047
steps:
5148
- uses: actions/checkout@v2
5249

53-
- name: fetch git tags
54-
run: "git fetch --prune --prune-tags --tags"
55-
5650
- name: Set up Python ${{ matrix.python-version }}
5751
uses: actions/setup-python@v2
5852
with:
@@ -74,9 +68,6 @@ jobs:
7468
steps:
7569
- uses: actions/checkout@v2
7670

77-
- name: fetch git tags
78-
run: "git fetch --prune --prune-tags --tags"
79-
8071
- name: Cache Vagrant boxes
8172
uses: actions/cache@v2
8273
with:
@@ -108,9 +99,6 @@ jobs:
10899
with:
109100
fetch-depth: 0
110101

111-
- name: fetch git tags
112-
run: "git fetch --prune --prune-tags --tags"
113-
114102
- name: Set up Python 3.7
115103
uses: actions/setup-python@v2
116104
with:
@@ -150,9 +138,6 @@ jobs:
150138
with:
151139
fetch-depth: 0
152140

153-
- name: fetch git tags
154-
run: "git fetch --prune --prune-tags --tags"
155-
156141
- name: Build and test ${{ matrix.manylinux-tag }} wheels
157142
uses: docker://quay.io/pypa/manylinux2010_x86_64
158143
with:
@@ -178,9 +163,6 @@ jobs:
178163
with:
179164
fetch-depth: 0
180165

181-
- name: fetch git tags
182-
run: "git fetch --prune --prune-tags --tags"
183-
184166
- name: Build and test ${{ matrix.manylinux-tag }} wheels
185167
uses: docker://quay.io/pypa/manylinux2010_i686
186168
with:
@@ -206,9 +188,6 @@ jobs:
206188
with:
207189
fetch-depth: 0
208190

209-
- name: fetch git tags
210-
run: "git fetch --prune --prune-tags --tags"
211-
212191
- name: Build and test ${{ matrix.manylinux-tag }} wheels
213192
uses: docker://quay.io/pypa/manylinux2014_x86_64
214193
with:
@@ -234,9 +213,6 @@ jobs:
234213
with:
235214
fetch-depth: 0
236215

237-
- name: fetch git tags
238-
run: "git fetch --prune --prune-tags --tags"
239-
240216
- name: Build and test ${{ matrix.manylinux-tag }} wheels
241217
uses: docker://quay.io/pypa/manylinux2014_i686
242218
with:
@@ -262,9 +238,6 @@ jobs:
262238
with:
263239
fetch-depth: 0
264240

265-
- name: fetch git tags
266-
run: "git fetch --prune --prune-tags --tags"
267-
268241
- name: Build and test ${{ matrix.manylinux-tag }} wheels
269242
uses: docker://quay.io/pypa/manylinux_2_24_x86_64
270243
with:
@@ -290,9 +263,6 @@ jobs:
290263
with:
291264
fetch-depth: 0
292265

293-
- name: fetch git tags
294-
run: "git fetch --prune --prune-tags --tags"
295-
296266
- name: Build and test ${{ matrix.manylinux-tag }} wheels
297267
uses: docker://quay.io/pypa/manylinux_2_24_i686
298268
with:

build-wheels.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ else
5252
fi
5353
fi
5454

55+
# stop git from panicing because this is run as root
56+
# as it breaks setuptools_scm
5557
git config --global --add safe.directory "$GITHUB_WORKSPACE"
5658

5759
# Compile wheels
@@ -60,12 +62,6 @@ for PYBIN in /opt/python/cp{37,38,39,310}*/bin; do
6062
"${PYBIN}/pip" install --upgrade pip setuptools
6163
"${PYBIN}/pip" install -r "$GITHUB_WORKSPACE/requirements.txt"
6264

63-
pwd
64-
ls -la
65-
git status
66-
git tag -l
67-
git describe
68-
6965
"${PYBIN}/pip" wheel "$GITHUB_WORKSPACE" --no-deps -w wheelhouse/
7066
done
7167

0 commit comments

Comments
 (0)