From ac7288e1b39d451badc4c146bc1beeca07de7130 Mon Sep 17 00:00:00 2001 From: sunhailinLeo <379978424@qq.com> Date: Tue, 3 Jan 2023 18:21:39 +0800 Subject: [PATCH] add sdist at setup.py before upload --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6caa7a80..176a7ef3 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ class UploadCommand(Command): pass self.status("Building Source and Wheel distribution…") - os.system("{0} setup.py bdist_wheel".format(sys.executable)) + os.system("{0} setup.py sdist bdist_wheel".format(sys.executable)) self.status("Uploading the package to PyPI via Twine…") os.system("twine upload dist/*")