Skip to content

Commit c0011e1

Browse files
authored
Remove unnecessary build dependencies, use build defaults, strict twine check (#6979)
1 parent 9b79c3e commit c0011e1

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/pypi-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install setuptools setuptools-scm wheel twine check-manifest
26+
python -m pip install build twine
2727
2828
- name: Build tarball and wheels
2929
run: |
3030
git clean -xdf
3131
git restore -SW .
32-
python -m build --sdist --wheel .
32+
python -m build
3333
3434
- name: Check built artifacts
3535
run: |
36-
python -m twine check dist/*
36+
python -m twine check --strict dist/*
3737
pwd
3838
if [ -f dist/xarray-0.0.0.tar.gz ]; then
3939
echo "❌ INVALID VERSION NUMBER"

.github/workflows/testpypi-release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install build setuptools setuptools-scm wheel twine check-manifest
26+
python -m pip install build twine
2727
python -m pip install tomli tomli_w
2828
2929
- name: Disable local versions
@@ -35,12 +35,11 @@ jobs:
3535
- name: Build tarball and wheels
3636
run: |
3737
git clean -xdf
38-
python -m build --sdist --wheel .
38+
python -m build
3939
4040
- name: Check built artifacts
4141
run: |
42-
python -m twine check dist/*
43-
pwd
42+
python -m twine check --strict dist/*
4443
if [ -f dist/xarray-0.0.0.tar.gz ]; then
4544
echo "❌ INVALID VERSION NUMBER"
4645
exit 1

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[build-system]
22
requires = [
33
"setuptools>=42",
4-
"wheel",
5-
"setuptools_scm[toml]>=3.4",
6-
"setuptools_scm_git_archive",
4+
"setuptools-scm[toml]>=3.4",
5+
"setuptools-scm-git-archive",
76
]
87
build-backend = "setuptools.build_meta"
98

0 commit comments

Comments
 (0)