Kaynağa Gözat

use pep517 library to build

Steven Silvester 4 yıl önce
ebeveyn
işleme
60025159cf
2 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  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