Skip to content

Commit e719e96

Browse files
committed
pull incoming changes and solve conflict
2 parents 87ee115 + 879bde7 commit e719e96

File tree

1,048 files changed

+51035
-48386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,048 files changed

+51035
-48386
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ install:
7070
test_script:
7171
# Now build the thing..
7272
- set LINK=/LIBPATH:%cd%\lib
73-
- pip install -ve .
73+
- pip install -v --no-build-isolation --config-settings=setup-args="--vsenv" --editable .[dev]
7474
# this should show no freetype dll...
7575
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
7676
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
@@ -94,7 +94,7 @@ artifacts:
9494

9595
on_finish:
9696
- conda install codecov
97-
- codecov -e PYTHON_VERSION PLATFORM
97+
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
9898

9999
on_failure:
100100
# Generate a html for visual tests

.circleci/config.yml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Circle CI configuration file
22
# https://circleci.com/docs/
3-
3+
---
44
version: 2.1
55

66

@@ -42,39 +42,40 @@ commands:
4242
- run:
4343
name: Install apt packages
4444
command: |
45-
sudo apt -qq update
46-
sudo apt install -y \
47-
inkscape \
48-
ffmpeg \
45+
sudo apt-get -qq update
46+
sudo apt-get install -yy --no-install-recommends \
47+
cm-super \
4948
dvipng \
49+
ffmpeg \
50+
fonts-crosextra-carlito \
51+
fonts-freefont-otf \
52+
fonts-noto-cjk \
53+
fonts-wqy-zenhei \
54+
graphviz \
55+
inkscape \
5056
lmodern \
51-
cm-super \
57+
ninja-build \
58+
optipng \
59+
texlive-fonts-recommended \
5260
texlive-latex-base \
5361
texlive-latex-extra \
54-
texlive-fonts-recommended \
5562
texlive-latex-recommended \
5663
texlive-pictures \
57-
texlive-xetex \
58-
ttf-wqy-zenhei \
59-
graphviz \
60-
fonts-crosextra-carlito \
61-
fonts-freefont-otf \
62-
fonts-humor-sans \
63-
fonts-noto-cjk \
64-
optipng
64+
texlive-xetex
6565
6666
fonts-install:
6767
steps:
6868
- restore_cache:
69-
key: fonts-2
69+
key: fonts-4
7070
- run:
7171
name: Install custom fonts
7272
command: |
7373
mkdir -p ~/.local/share/fonts
7474
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
75+
wget -nc https://github.com/ipython/xkcd-font/blob/master/xkcd-script/font/xkcd-script.ttf?raw=true -O ~/.local/share/fonts/xkcd-Script.ttf || true
7576
fc-cache -f -v
7677
- save_cache:
77-
key: fonts-2
78+
key: fonts-4
7879
paths:
7980
- ~/.local/share/fonts/
8081

@@ -97,6 +98,7 @@ commands:
9798
- run:
9899
name: Install Python dependencies
99100
command: |
101+
python -m pip install --user meson-python pybind11
100102
python -m pip install --user \
101103
numpy<< parameters.numpy_version >> \
102104
-r requirements/doc/doc-requirements.txt
@@ -114,15 +116,13 @@ commands:
114116
version=${version#v}
115117
python -m pip install matplotlib==${version}
116118
else
117-
python -m pip install --user -ve .
119+
python -m pip install --user --verbose \
120+
--no-build-isolation --editable .[dev]
118121
fi
119122
- save_cache:
120-
key: build-deps-1
123+
key: build-deps-2
121124
paths:
122-
# FreeType 2.6.1 tarball.
123-
- ~/.cache/matplotlib/0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014
124-
# Qhull 2020.2 tarball.
125-
- ~/.cache/matplotlib/b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e
125+
- subprojects/packagecache
126126

127127
doc-build:
128128
steps:
@@ -199,6 +199,12 @@ commands:
199199
- store_artifacts:
200200
path: doc/build/sphinx-gallery-files.tar.gz
201201

202+
deploy-docs:
203+
steps:
204+
- run:
205+
name: "Deploy new docs"
206+
command: ./.circleci/deploy-docs.sh
207+
202208

203209
##########################################
204210
# Here is where the real jobs are defined.
@@ -218,8 +224,8 @@ jobs:
218224
- fonts-install
219225
- pip-install
220226

221-
- mpl-install
222227
- doc-deps-install
228+
- mpl-install
223229

224230
- doc-build
225231
- doc-show-errors-warnings
@@ -236,9 +242,7 @@ jobs:
236242
fingerprints:
237243
- "be:c3:c1:d8:fb:a1:0e:37:71:72:d7:a3:40:13:8f:14"
238244

239-
- deploy:
240-
name: "Deploy new docs"
241-
command: ./.circleci/deploy-docs.sh
245+
- deploy-docs
242246

243247
#########################################
244248
# Defining workflows gets us parallelism.

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"hostRequirements": {
3+
"memory": "8gb",
4+
"cpus": 4
5+
},
6+
"image": "mcr.microsoft.com/devcontainers/universal:2",
7+
"features": {
8+
"ghcr.io/devcontainers/features/desktop-lite:1": {},
9+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
10+
"packages": "inkscape,ffmpeg,dvipng,lmodern,cm-super,texlive-latex-base,texlive-latex-extra,texlive-fonts-recommended,texlive-latex-recommended,texlive-pictures,texlive-xetex,fonts-wqy-zenhei,graphviz,fonts-crosextra-carlito,fonts-freefont-otf,fonts-comic-neue,fonts-noto-cjk,optipng"
11+
}
12+
},
13+
"onCreateCommand": ".devcontainer/setup.sh",
14+
"postCreateCommand": "",
15+
"forwardPorts": [6080],
16+
"portsAttributes": {
17+
"6080": {
18+
"label": "desktop"
19+
}
20+
},
21+
"customizations": {
22+
"vscode": {
23+
"extensions": [
24+
"ms-python.python",
25+
"yy0931.mplstyle",
26+
"eamodio.gitlens",
27+
"ms-vscode.live-server"
28+
],
29+
"settings": {}
30+
},
31+
"codespaces": {
32+
"openFiles": [
33+
"README.md",
34+
"doc/devel/codespaces.md"
35+
]
36+
}
37+
}
38+
}

.devcontainer/setup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
"${SHELL}" <(curl -Ls micro.mamba.pm/install.sh) < /dev/null
6+
7+
conda init --all
8+
micromamba shell init -s bash
9+
micromamba env create -f environment.yml --yes
10+
# Note that `micromamba activate mpl-dev` doesn't work, it must be run by the
11+
# user (same applies to `conda activate`)
12+
echo "envs_dirs:
13+
- /home/codespace/micromamba/envs" > /opt/conda/.condarc

.flake8

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,18 @@ exclude =
3131
.eggs
3232

3333
per-file-ignores =
34-
setup.py: E402
35-
36-
lib/matplotlib/__init__.py: E402, F401
37-
lib/matplotlib/_animation_data.py: E501
38-
lib/matplotlib/_api/__init__.py: F401
39-
lib/matplotlib/_cm.py: E122, E202, E203, E302
34+
lib/matplotlib/_cm.py: E202, E203, E302
4035
lib/matplotlib/_mathtext.py: E221, E251
41-
lib/matplotlib/_mathtext_data.py: E122, E203, E261
42-
lib/matplotlib/axes/__init__.py: F401, F403
36+
lib/matplotlib/_mathtext_data.py: E203, E261
4337
lib/matplotlib/backends/backend_template.py: F401
44-
lib/matplotlib/font_manager.py: E501
45-
lib/matplotlib/image.py: F401, F403
4638
lib/matplotlib/mathtext.py: E221
4739
lib/matplotlib/pylab.py: F401, F403
48-
lib/matplotlib/pyplot.py: F401, F811
40+
lib/matplotlib/pyplot.py: F811
4941
lib/matplotlib/tests/test_mathtext.py: E501
5042
lib/matplotlib/transforms.py: E201, E202, E203
5143
lib/matplotlib/tri/_triinterpolate.py: E201, E221
5244
lib/mpl_toolkits/axes_grid1/axes_size.py: E272
53-
lib/mpl_toolkits/axisartist/__init__.py: F401
5445
lib/mpl_toolkits/axisartist/angle_helper.py: E221
55-
lib/pylab.py: F401, F403
5646

5747
doc/conf.py: E402
5848
galleries/users_explain/artists/paths.py: E402
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tag Proposal
2+
description: Suggest a new tag or subcategory for the gallery of examples
3+
title: "[Tag]: "
4+
labels: [Tag proposal]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please search the [tag glossary]() for relevant tags before creating a new tag proposal.
10+
- type: textarea
11+
id: need
12+
attributes:
13+
label: Need
14+
description: Briefly describe the need this tag will fill. (1-4 sentences)
15+
placeholder: |
16+
* A tag is needed for examples that share [...]
17+
* Existing tags do not work because [...]
18+
* Current gallery examples that would use this tag include [...]
19+
* Indicate which subcategory this tag falls under, or whether a new subcategory is proposed.
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: solution
24+
attributes:
25+
label: Proposed solution
26+
description: >
27+
What should the tag be? All tags are in the format `subcategory: tag`

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,30 @@
1+
<!--
2+
Thank you so much for your PR! To help us review your contribution, please check
3+
out the development guide https://matplotlib.org/devdocs/devel/index.html
4+
-->
5+
16
## PR summary
7+
<!-- Please provide at least 1-2 sentences describing the pull request in detail
8+
(Why is this change required? What problem does it solve?) and link to relevant
9+
issues and PRs.
10+
11+
Also please summarize the changes in the title, for example "Raise ValueError on
12+
non-numeric input to set_xlim" and avoid non-descriptive titles such as "Addresses
13+
issue #8576".
14+
-->
15+
216

317
## PR checklist
418
<!-- Please mark any checkboxes that do not apply to this PR as [N/A].-->
519

620
- [ ] "closes #0000" is in the body of the PR description to [link the related issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
721
- [ ] new and changed code is [tested](https://matplotlib.org/devdocs/devel/testing.html)
8-
- [ ] *Plotting related* features are demonstrated in an [example](https://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-examples-and-tutorials)
9-
- [ ] *New Features* and *API Changes* are noted with a [directive and release note](https://matplotlib.org/devdocs/devel/coding_guide.html#new-features-and-api-changes)
10-
- [ ] Documentation complies with [general](https://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-rest-pages) and [docstring](https://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-docstrings) guidelines
11-
12-
<!--
13-
Thank you so much for your PR! To help us review your contribution, please
14-
consider the following points:
22+
- [ ] *Plotting related* features are demonstrated in an [example](https://matplotlib.org/devdocs/devel/document.html#write-examples-and-tutorials)
23+
- [ ] *New Features* and *API Changes* are noted with a [directive and release note](https://matplotlib.org/devdocs/devel/api_changes.html#announce-changes-deprecations-and-new-features)
24+
- [ ] Documentation complies with [general](https://matplotlib.org/devdocs/devel/document.html#write-rest-pages) and [docstring](https://matplotlib.org/devdocs/devel/document.html#write-docstrings) guidelines
1525

16-
- A development guide is available at https://matplotlib.org/devdocs/devel/index.html.
17-
18-
- Help with git and github is available at https://matplotlib.org/devdocs/devel/development_workflow.html
19-
20-
- Create a separate branch for your changes and open the PR from this branch. Please avoid working on `main`.
21-
22-
- The PR title should summarize the changes, for example "Raise ValueError on
23-
non-numeric input to set_xlim". Avoid non-descriptive titles such as
24-
"Addresses issue #8576".
25-
26-
- The summary should provide at least 1-2 sentences describing the pull request
27-
in detail (Why is this change required? What problem does it solve?) and
28-
link to any relevant issues.
29-
30-
- If you are contributing fixes to docstrings, please pay attention to
31-
https://matplotlib.org/stable/devel/documenting_mpl.html#formatting-conventions. In particular,
32-
note the difference between using single backquotes, double backquotes, and
33-
asterisks in the markup.
34-
35-
We understand that PRs can sometimes be overwhelming, especially as the
26+
<!--We understand that PRs can sometimes be overwhelming, especially as the
3627
reviews start coming in. Please let us know if the reviews are unclear or
3728
the recommended next step seems overly demanding, if you would like help in
3829
addressing a reviewer's comments, or if you have been waiting too long to hear
39-
back on your PR.
40-
-->
30+
back on your PR.-->

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

0 commit comments

Comments
 (0)