Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Do not call setup.py #1048

Merged
merged 5 commits into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ environment:
VENV_TEST_DIR: "venv_test"

matrix:
# Python 3.11
- PYTHON_DIR: "C:\\Python311-x64"
# Python 3.12
- PYTHON_DIR: "C:\\Python312-x64"

branches:
only:
Expand All @@ -40,16 +40,20 @@ build_script:
- "%VENV_BUILD_DIR%\\Scripts\\activate.bat"

# Install build dependencies
- "pip install wheel"
- "pip install numpy"
- "pip install cython"
- "pip install --upgrade build"
- "pip install --upgrade setuptools"
- "pip install --upgrade wheel"
- "pip install --upgrade numpy"
- "pip install --upgrade cython"

# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"

# Build
- "python setup.py bdist_wheel"
# --no-isolation complains about oldest-supported-numpy not being installed
- "python -c \"text=open('pyproject.toml').read().replace('oldest-supported-','');open('pyproject.toml','w').write(text)\""
- "python -m build --no-isolation --wheel"
- ps: "ls dist"

# Leave build virtualenv
Expand All @@ -62,7 +66,8 @@ test_script:
- "%VENV_TEST_DIR%\\Scripts\\activate.bat"

# Install the generated wheel package to test it
- "pip install silx"
# silx is not yet ready for Python 3.12
# - "pip install silx"
- "pip install PyQt5"
- "FOR %%F IN (dist\\PyMca5*.*) DO (
pip install --pre %%F
Expand Down
Loading