浏览代码

use pep517 library to build

Steven Silvester 4 年之前
父节点
当前提交
60025159cf
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. 2 3
      buildutils/src/publish.ts
  2. 2 3
      scripts/ci_script.sh

+ 2 - 3
buildutils/src/publish.ts

@@ -58,9 +58,8 @@ commander
     utils.run('node buildutils/lib/update-core-mode.js');
 
     // Make the Python release.
-    utils.run('python setup.py sdist');
-    utils.run('python setup.py bdist_wheel');
-    utils.run('python -m pip install -U twine');
+    utils.run('python -m pip install -U twine pep517');
+    utils.run('python-build');
     utils.run('twine check dist/*');
 
     const files = fs.readdirSync(distDir);

+ 2 - 3
scripts/ci_script.sh

@@ -114,9 +114,8 @@ if [[ $GROUP == integrity2 ]]; then
 
     # run twine check on the python build assets.
     # this must be done before altering any versions below.
-    python -m pip install -U twine wheel
-    python setup.py sdist
-    python setup.py bdist_wheel
+    python -m pip install -U twine wheel pep517
+    python-build
     twine check dist/*
 
     # Make sure we can bump the version