From b44cd3ffc270da9a747c72ce8a286ce46fab7cca Mon Sep 17 00:00:00 2001 From: David Hotham Date: Fri, 2 May 2025 00:06:18 +0100 Subject: [PATCH] build and publish a wheel --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/test.yml | 4 +++- README.md | 2 +- requirements-dev.txt | 1 - 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index acd70a0..3d5e115 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,9 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Dependencies - run: pip install -r requirements.txt + run: pip install build - name: Build - run: python setup.py sdist + run: python -m build - name: Upload Distributions uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2f6b14..dbd3e27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,5 +28,7 @@ jobs: - test steps: - uses: actions/checkout@v4 + - name: Install build + run: pip install build - name: Build - run: python setup.py sdist + run: python -m build diff --git a/README.md b/README.md index 44cdcc4..82feabd 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ yapf -rip . ### Deploying to PyPi ```shell -python setup.py sdist +python -m build twine upload dist/* ``` diff --git a/requirements-dev.txt b/requirements-dev.txt index 8ef236d..1a77c9d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,4 @@ pylint==3.3.3 pytest==8.3.4 pytype==2024.10.11 -setuptools==75.6.0 yapf==0.43.0