diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 741c4b11..50da6b05 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,15 +23,22 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.12 + - name: Set up Python 3.13 uses: actions/setup-python@v4 with: - python-version: 3.12 + python-version: 3.13 - - name: Check build and install + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build package + run: | + python3 -m build + + - name: Install package run: | - pip install setuptools - python3 setup.py sdist pip install dist/*.tar.gz - run: docker pull bitcraze/builder diff --git a/tools/build/bdist b/tools/build/bdist index ed4f3109..e90a2838 100755 --- a/tools/build/bdist +++ b/tools/build/bdist @@ -9,7 +9,7 @@ try: script_dir = os.path.dirname(os.path.realpath(__file__)) root = _path.normpath(_path.join(script_dir, '../..')) - subprocess.check_call(['python3', 'setup.py', 'bdist_wheel'], cwd=root) + subprocess.check_call(['python3', '-m', 'build', '--wheel'], cwd=root) print("Wheel built") except subprocess.CalledProcessError as e: