Skip to content

Commit

Permalink
Remove unnecessary build dependencies, use build defaults, strict twi…
Browse files Browse the repository at this point in the history
…ne check (#6979)
  • Loading branch information
mwtoews authored Sep 10, 2022
1 parent 9b79c3e commit c0011e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools setuptools-scm wheel twine check-manifest
python -m pip install build twine
- name: Build tarball and wheels
run: |
git clean -xdf
git restore -SW .
python -m build --sdist --wheel .
python -m build
- name: Check built artifacts
run: |
python -m twine check dist/*
python -m twine check --strict dist/*
pwd
if [ -f dist/xarray-0.0.0.tar.gz ]; then
echo "❌ INVALID VERSION NUMBER"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/testpypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build setuptools setuptools-scm wheel twine check-manifest
python -m pip install build twine
python -m pip install tomli tomli_w
- name: Disable local versions
Expand All @@ -35,12 +35,11 @@ jobs:
- name: Build tarball and wheels
run: |
git clean -xdf
python -m build --sdist --wheel .
python -m build
- name: Check built artifacts
run: |
python -m twine check dist/*
pwd
python -m twine check --strict dist/*
if [ -f dist/xarray-0.0.0.tar.gz ]; then
echo "❌ INVALID VERSION NUMBER"
exit 1
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"setuptools_scm[toml]>=3.4",
"setuptools_scm_git_archive",
"setuptools-scm[toml]>=3.4",
"setuptools-scm-git-archive",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit c0011e1

Please sign in to comment.