From fbd5f2a978a7da81df0ad8e737869382d922d412 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Tue, 19 Nov 2024 20:08:40 +0000 Subject: [PATCH] publish wheels --- .github/workflows/publish.yml | 4 ++-- Makefile | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0bb026c..4acc92a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,9 +23,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel + pip install build - name: Build package run: | - python setup.py sdist bdist_wheel + python -m build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/Makefile b/Makefile index d7208fb..cd99c44 100644 --- a/Makefile +++ b/Makefile @@ -32,14 +32,3 @@ clean: .PHONY: check-types check-types: mypy -p htbuilder - -.PHONY: push-pypi -# Pushes the package to PyPI. -push-pypi: - rm -rf dist - python setup.py sdist - twine upload dist/* - -.PHONY: distribute -# Tests and pushes the package to PyPI -distribute: check-types test push-pypi