瀏覽代碼

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');
     utils.run('node buildutils/lib/update-core-mode.js');
 
 
     // Make the Python release.
     // Make the Python release.
-    utils.run('python setup.py sdist');
+    utils.run('python -m pip install -U twine pep517');
-    utils.run('python setup.py bdist_wheel');
+    utils.run('python-build');
-    utils.run('python -m pip install -U twine');
     utils.run('twine check dist/*');
     utils.run('twine check dist/*');
 
 
     const files = fs.readdirSync(distDir);
     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.
     # run twine check on the python build assets.
     # this must be done before altering any versions below.
     # this must be done before altering any versions below.
-    python -m pip install -U twine wheel
+    python -m pip install -U twine wheel pep517
-    python setup.py sdist
+    python-build
-    python setup.py bdist_wheel
     twine check dist/*
     twine check dist/*
 
 
     # Make sure we can bump the version
     # Make sure we can bump the version