Skip to content

Commit

Permalink
Merge pull request #1048 from vasole/vasole-patch-1
Browse files Browse the repository at this point in the history
[CI] Do not call setup.py
  • Loading branch information
vasole authored Nov 10, 2023
2 parents d9b7e85 + 368b17f commit 42d7626
Showing 1 changed file with 12 additions and 7 deletions.
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

0 comments on commit 42d7626

Please sign in to comment.