Skip to content

Commit

Permalink
Use build to produce sdist.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed May 28, 2024
1 parent ccd6aef commit 5b684cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
* @glotzerlab/freud-developers
# Request maintainers for changes to requirements or CI
requirements/* @glotzerlab/freud-maintainers
requirements.txt @glotzerlab/freud-maintainers
.github @glotzerlab/freud-maintainers
.pre-commit-config.yaml @glotzerlab/freud-maintainers
14 changes: 9 additions & 5 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
workflow_dispatch:

env:
UV_VERSION: 0.2.2
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
Expand Down Expand Up @@ -106,20 +107,23 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'build_wheels') || github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4.1.6
with:
submodules: "recursive"

- uses: actions/setup-python@v5.1.0
name: Install Python
with:
python-version: '3.9'
python-version: '3.12'

- name: Install uv
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/${{ env.UV_VERSION }}/uv-installer.sh | bash

- name: Install build requirements
run: python3 -m pip --disable-pip-version-check install scikit-build cmake -r requirements.txt --upgrade --progress-bar=off
- name: Install build
run: 'uv pip install -r .github/requirements-build-sdist.txt --only-binary :all: --system --reinstall'

- name: Build sdist
run: python setup.py sdist
run: python -m build --sdist --outdir dist/ .

- uses: actions/upload-artifact@v4.3.3
with:
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ include LICENSE
include README.rst
include contributors.txt
include pyproject.toml
include requirements.txt
include setup.cfg
include setup.py
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

0 comments on commit 5b684cc

Please sign in to comment.