Skip to content

Commit

Permalink
CI compatibility with new build process. Use Python 3.13 (latest)
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Nov 20, 2024
1 parent ad8a880 commit 2495989
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/build/bdist
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2495989

Please sign in to comment.