From 311552714c046485dc65a2d3e22484222626755a Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 18 Jul 2022 20:00:02 -0400 Subject: [PATCH] convert pypi to use build rather than setup.py --- .github/workflows/pypi.yaml | 4 ++-- blue/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index 2be7983d..cec3a82d 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -19,8 +19,8 @@ jobs: run: | sudo apt-get update && \ sudo apt-get install -yq --no-install-recommends python3-pip python3.8 python3.8-dev python3-setuptools && \ - pip3 install wheel && \ - cd blue && python3 setup.py sdist bdist_wheel --universal + pip3 install wheel build && \ + cd blue && python3 -m build --sdist --wheel if: github.repository == 'iqtlabs/daedalus' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - name: Publish package if: github.repository == 'iqtlabs/daedalus' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') diff --git a/blue/pyproject.toml b/blue/pyproject.toml index 83f4a3e4..20f46ea5 100644 --- a/blue/pyproject.toml +++ b/blue/pyproject.toml @@ -46,7 +46,7 @@ daedalus = "daedalus.__main__:main" [build-system] requires = [ - "setuptools >= 49.0.0", + "setuptools >= 62.0.0", ] build-backend = "setuptools.build_meta"