-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Simplify appveyor to only use conda #24397
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -18,17 +18,14 @@ environment: | |||||||
PYTHONIOENCODING: UTF-8 | ||||||||
PYTEST_ARGS: -raR --numprocesses=auto --timeout=300 --durations=25 | ||||||||
--cov-report= --cov=lib --log-level=DEBUG | ||||||||
PINNEDVERS: "pyzmq!=21.0.0,!=22.0.0" | ||||||||
|
||||||||
matrix: | ||||||||
- PYTHON_VERSION: "3.8" | ||||||||
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64" | ||||||||
TEST_ALL: "no" | ||||||||
EXTRAREQS: "-r requirements/testing/extra.txt" | ||||||||
- PYTHON_VERSION: "3.9" | ||||||||
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64" | ||||||||
TEST_ALL: "no" | ||||||||
EXTRAREQS: "-r requirements/testing/extra.txt" | ||||||||
|
||||||||
# We always use a 64-bit machine, but can build x86 distributions | ||||||||
# with the PYTHON_ARCH variable | ||||||||
|
@@ -52,19 +49,13 @@ install: | |||||||
- conda config --prepend channels conda-forge | ||||||||
|
||||||||
# For building, use a new environment | ||||||||
- conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0" | ||||||||
- activate test-environment | ||||||||
# pull pywin32 from conda because on py38 there is something wrong with finding | ||||||||
# the dlls when installed from pip | ||||||||
# Add python version to environment | ||||||||
# `^ ` escapes spaces for indentation | ||||||||
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml | ||||||||
- conda env create -f environment.yml | ||||||||
- activate mpl-dev | ||||||||
QuLogic marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
- conda install -c conda-forge pywin32 | ||||||||
# install pyqt from conda-forge | ||||||||
- conda install -c conda-forge pyqt | ||||||||
- echo %PYTHON_VERSION% %TARGET_ARCH% | ||||||||
# Install dependencies from PyPI. | ||||||||
- python -m pip install --upgrade -r requirements/testing/all.txt %EXTRAREQS% %PINNEDVERS% | ||||||||
# Install optional dependencies from PyPI. | ||||||||
# Sphinx is needed to run sphinxext tests | ||||||||
- python -m pip install --upgrade sphinx | ||||||||
# Show the installed packages + versions | ||||||||
- conda list | ||||||||
|
||||||||
|
@@ -104,7 +95,7 @@ artifacts: | |||||||
type: zip | ||||||||
|
||||||||
on_finish: | ||||||||
- pip install codecov | ||||||||
- conda install codecov | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likely
Suggested change
because we don't want to mix conda forge and main channel. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Conda forge is actually configured by the environment, so everything is conda-forge. The earlier instance of installing win32 could actually remove the explicit https://ci.appveyor.com/project/matplotlib/matplotlib/builds/45337448/job/aie7c1u8m0pf3nf6#L1893 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does conda say that the channel config from an environment.yml is preseved? I just tested with a minimal
and when I do a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In that case, its probably because we prepend conda-forge to the base channels list before creating the environment: Line 49 in e2131bb
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, that should be it. |
||||||||
- codecov -e PYTHON_VERSION PLATFORM | ||||||||
|
||||||||
on_failure: | ||||||||
|
Uh oh!
There was an error while loading. Please reload this page.