diff --git a/.github/workflows/scripts/build_python_client.sh b/.github/workflows/scripts/build_python_client.sh index 1eec5eda7c..1ea7014bfb 100755 --- a/.github/workflows/scripts/build_python_client.sh +++ b/.github/workflows/scripts/build_python_client.sh @@ -21,7 +21,7 @@ rm -rf "pulpcore-client" ./gen-client.sh "../pulpcore/core-api.json" "core" python "pulpcore" pushd pulpcore-client -python setup.py sdist bdist_wheel --python-tag py3 +python -m build twine check "dist/pulpcore_client-"*"-py3-none-any.whl" twine check "dist/pulpcore_client-"*".tar.gz" @@ -56,7 +56,7 @@ rm -rf "pulp_file-client" ./gen-client.sh "../pulpcore/file-api.json" "file" python "pulp_file" pushd pulp_file-client -python setup.py sdist bdist_wheel --python-tag py3 +python -m build twine check "dist/pulp_file_client-"*"-py3-none-any.whl" twine check "dist/pulp_file_client-"*".tar.gz" @@ -91,7 +91,7 @@ rm -rf "pulp_certguard-client" ./gen-client.sh "../pulpcore/certguard-api.json" "certguard" python "pulp_certguard" pushd pulp_certguard-client -python setup.py sdist bdist_wheel --python-tag py3 +python -m build twine check "dist/pulp_certguard_client-"*"-py3-none-any.whl" twine check "dist/pulp_certguard_client-"*".tar.gz" diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index 9e2d796811..542e34f80a 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -72,7 +72,7 @@ pushd ../pulp-openapi-generator rm -rf "./${PACKAGE}-client" ./gen-client.sh "${COMPONENT}-api.json" "${COMPONENT}" python "${PACKAGE}" pushd "${PACKAGE}-client" - python setup.py sdist bdist_wheel --python-tag py3 + python -m build popd else if [ ! -f "${PACKAGE}-client/dist/${PACKAGE}_client-${VERSION}-py3-none-any.whl" ] diff --git a/pyproject.toml b/pyproject.toml index d6c4a1f8ab..02ed8cb5a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools >= 40.8.0", + "setuptools >= 40.8.0", # why such an old version? "wheel >= 0.29.0", ] build-backend = 'setuptools.build_meta'