From ba3bd168527c0eb8ade645adac7490165be96686 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Wed, 13 Nov 2024 18:01:06 -0500 Subject: [PATCH] Use build module in CI build step Per Python packaging guidance, and other CDO examples. References: * https://github.com/Cyber-Domain-Ontology/CDO-Utility-Local-UUID/pull/9 * https://github.com/casework/CASE-Utilities-Python/pull/167 * https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#should-setup-py-be-deleted Signed-off-by: Alex Nelson --- .github/workflows/cicd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d6d9a0e..c0bdc13 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -56,14 +56,14 @@ jobs: # Build the binary wheel as well as the source tar - name: Build Objects run: | - pip install -q twine wheel - python setup.py sdist bdist_wheel + pip install -q twine build + python -m build # Ensure the objects were packaged correctly and there wasn't an issue with # the compilation or packaging process. - name: Check Objects run: twine check dist/* - # Upload the packages on all develop and main pipleines for test consumption + # Upload the packages on all develop and main pipelines for test consumption - name: Upload HTML Docs uses: actions/upload-artifact@v4 with: