From bb15699169d46191b36917694d8f68aaf9e5f07d Mon Sep 17 00:00:00 2001 From: Kevin Abraham <5976139+abraha2d@users.noreply.github.com> Date: Mon, 1 May 2023 03:40:31 -0400 Subject: [PATCH 1/2] Upload sdist to PyPI --- .github/workflows/pythonpackage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 53cc273..0c42f1b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -30,9 +30,9 @@ jobs: run: | if pip search thop | grep -o "\((.*)\)" | xargs python .github/workflows/date_extraction.py -m ; then echo "There has been more than one week since last update, start to build." - python setup.py bdist_wheel + python setup.py sdist bdist_wheel twine check dist/* twine upload dist/* else echo "Latest update within one week, skip the build" - fi \ No newline at end of file + fi From 40f82222fee01c22efc18935eb190e2c163ed6fc Mon Sep 17 00:00:00 2001 From: Kevin Abraham <5976139+abraha2d@users.noreply.github.com> Date: Mon, 1 May 2023 03:43:03 -0400 Subject: [PATCH 2/2] Update build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 986a3f7..013878c 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash rm -rf build/ dist/ -python setup.py bdist_wheel +python setup.py sdist bdist_wheel twine check dist/* -twine upload dist/* \ No newline at end of file +twine upload dist/*