hc99 commited on
Commit
08887ec
·
verified ·
1 Parent(s): caf9538

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +7 -0
  2. testbed/lark-parser__lark/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
  3. testbed/lark-parser__lark/.github/ISSUE_TEMPLATE/other.md +10 -0
  4. testbed/lark-parser__lark/.gitignore +14 -0
  5. testbed/lark-parser__lark/LICENSE +19 -0
  6. testbed/lark-parser__lark/README.md +185 -0
  7. testbed/lark-parser__lark/lark-stubs/__init__.pyi +11 -0
  8. testbed/lark-parser__lark/lark-stubs/indenter.pyi +53 -0
  9. testbed/lark-parser__lark/lark-stubs/lark.pyi +79 -0
  10. testbed/lark-parser__lark/lark-stubs/lexer.pyi +149 -0
  11. testbed/lark-parser__lark/lark-stubs/parsers/__init__.pyi +0 -0
  12. testbed/lark-parser__lark/lark-stubs/parsers/lalr_puppet.pyi +22 -0
  13. testbed/lark-parser__lark/setup.cfg +10 -0
  14. testbed/lark-parser__lark/setup.py +74 -0
  15. testbed/lark-parser__lark/tests/test_trees.py +238 -0
  16. testbed/matplotlib__matplotlib/.circleci/fetch_doc_logs.py +66 -0
  17. testbed/matplotlib__matplotlib/.github/CONTRIBUTING.md +1 -0
  18. testbed/matplotlib__matplotlib/.github/FUNDING.yml +3 -0
  19. testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/bug_report.yml +86 -0
  20. testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/config.yml +9 -0
  21. testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/documentation.yml +32 -0
  22. testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/feature_request.yml +25 -0
  23. testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/maintenance.yml +17 -0
  24. testbed/matplotlib__matplotlib/.github/PULL_REQUEST_TEMPLATE.md +40 -0
  25. testbed/matplotlib__matplotlib/.github/codecov.yml +32 -0
  26. testbed/matplotlib__matplotlib/.github/dependabot.yml +6 -0
  27. testbed/matplotlib__matplotlib/.github/workflows/cibuildwheel.yml +175 -0
  28. testbed/matplotlib__matplotlib/.github/workflows/circleci.yml +70 -0
  29. testbed/matplotlib__matplotlib/.github/workflows/clean_pr.yml +52 -0
  30. testbed/matplotlib__matplotlib/.github/workflows/codeql-analysis.yml +62 -0
  31. testbed/matplotlib__matplotlib/.github/workflows/conflictcheck.yml +24 -0
  32. testbed/matplotlib__matplotlib/.github/workflows/cygwin.yml +256 -0
  33. testbed/matplotlib__matplotlib/.github/workflows/good-first-issue.yml +24 -0
  34. testbed/matplotlib__matplotlib/.github/workflows/mypy-stubtest.yml +54 -0
  35. testbed/matplotlib__matplotlib/.github/workflows/nightlies.yml +65 -0
  36. testbed/matplotlib__matplotlib/.github/workflows/pr_welcome.yml +39 -0
  37. testbed/matplotlib__matplotlib/.github/workflows/reviewdog.yml +88 -0
  38. testbed/matplotlib__matplotlib/.github/workflows/stale.yml +26 -0
  39. testbed/matplotlib__matplotlib/.github/workflows/tests.yml +354 -0
  40. testbed/matplotlib__matplotlib/LICENSE/LICENSE +99 -0
  41. testbed/matplotlib__matplotlib/LICENSE/LICENSE_AMSFONTS +240 -0
  42. testbed/matplotlib__matplotlib/LICENSE/LICENSE_BAKOMA +40 -0
  43. testbed/matplotlib__matplotlib/LICENSE/LICENSE_CARLOGO +45 -0
  44. testbed/matplotlib__matplotlib/LICENSE/LICENSE_COLORBREWER +13 -0
  45. testbed/matplotlib__matplotlib/LICENSE/LICENSE_COURIERTEN +18 -0
  46. testbed/matplotlib__matplotlib/LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER +108 -0
  47. testbed/matplotlib__matplotlib/LICENSE/LICENSE_QT4_EDITOR +30 -0
  48. testbed/matplotlib__matplotlib/LICENSE/LICENSE_SOLARIZED +20 -0
  49. testbed/matplotlib__matplotlib/LICENSE/LICENSE_STIX +71 -0
  50. testbed/matplotlib__matplotlib/LICENSE/LICENSE_YORICK +49 -0
.gitattributes CHANGED
@@ -61,3 +61,10 @@ FEA-Bench-v1.0-medium.jsonl filter=lfs diff=lfs merge=lfs -text
61
  testbed/statsmodels__statsmodels/statsmodels/tsa/statespace/tests/results/frbny_nowcast/Nowcasting/data/US/2016-06-29.xls filter=lfs diff=lfs merge=lfs -text
62
  testbed/statsmodels__statsmodels/statsmodels/tsa/statespace/tests/results/frbny_nowcast/Nowcasting/data/US/2016-07-29.xls filter=lfs diff=lfs merge=lfs -text
63
  testbed/statsmodels__statsmodels/statsmodels/datasets/macrodata/src/macrodata.xls/macrodata.xls filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
61
  testbed/statsmodels__statsmodels/statsmodels/tsa/statespace/tests/results/frbny_nowcast/Nowcasting/data/US/2016-06-29.xls filter=lfs diff=lfs merge=lfs -text
62
  testbed/statsmodels__statsmodels/statsmodels/tsa/statespace/tests/results/frbny_nowcast/Nowcasting/data/US/2016-07-29.xls filter=lfs diff=lfs merge=lfs -text
63
  testbed/statsmodels__statsmodels/statsmodels/datasets/macrodata/src/macrodata.xls/macrodata.xls filter=lfs diff=lfs merge=lfs -text
64
+ testbed/sphinx-doc__sphinx/tests/roots/test-root/svgimg.pdf filter=lfs diff=lfs merge=lfs -text
65
+ testbed/sphinx-doc__sphinx/tests/roots/test-root/img.pdf filter=lfs diff=lfs merge=lfs -text
66
+ testbed/sphinx-doc__sphinx/tests/roots/test-warnings/svgimg.pdf filter=lfs diff=lfs merge=lfs -text
67
+ testbed/sphinx-doc__sphinx/tests/roots/test-images/img.pdf filter=lfs diff=lfs merge=lfs -text
68
+ testbed/sphinx-doc__sphinx/tests/roots/test-images/subdir/svgimg.pdf filter=lfs diff=lfs merge=lfs -text
69
+ testbed/sphinx-doc__sphinx/tests/roots/test-ext-imgconverter/img.pdf filter=lfs diff=lfs merge=lfs -text
70
+ testbed/sphinx-doc__sphinx/sphinx/locale/fa/LC_MESSAGES/sphinx.mo filter=lfs diff=lfs merge=lfs -text
testbed/lark-parser__lark/.github/ISSUE_TEMPLATE/feature_request.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Suggestion**
11
+ Provide a clear and concise description of what the problem is, what you want to happen.
12
+
13
+ **Describe alternatives you've considered**
14
+ A clear and concise description of any alternative solutions or features you've considered.
15
+
16
+ **Additional context**
17
+ Add any other context or screenshots about the feature request here.
testbed/lark-parser__lark/.github/ISSUE_TEMPLATE/other.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Other
3
+ about: For any discussion that doesn't fit the templates
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
testbed/lark-parser__lark/.gitignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.pyc
2
+ *.pyo
3
+ /.tox
4
+ /lark_parser.egg-info/**
5
+ tags
6
+ .vscode
7
+ .idea
8
+ .ropeproject
9
+ .cache
10
+ .mypy_cache
11
+ /dist
12
+ /build
13
+ docs/_build
14
+ docs/examples
testbed/lark-parser__lark/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright © 2017 Erez Shinan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
+ the Software, and to permit persons to whom the Software is furnished to do so,
8
+ subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
testbed/lark-parser__lark/README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Lark - a parsing toolkit for Python
2
+
3
+ Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
4
+
5
+ Lark can parse all context-free languages. To put it simply, it means that it is capable of parsing almost any programming language out there, and to some degree most natural languages too.
6
+
7
+ **Who is it for?**
8
+
9
+ - **Beginners**: Lark is very friendly for experimentation. It can parse any grammar you throw at it, no matter how complicated or ambiguous, and do so efficiently. It also constructs an annotated parse-tree for you, using only the grammar and an input, and it gives you convienient and flexible tools to process that parse-tree.
10
+
11
+ - **Experts**: Lark implements both Earley(SPPF) and LALR(1), and several different lexers, so you can trade-off power and speed, according to your requirements. It also provides a variety of sophisticated features and utilities.
12
+
13
+ **What can it do?**
14
+
15
+ - Parse all context-free grammars, and handle any ambiguity gracefully
16
+ - Build an annotated parse-tree automagically, no construction code required.
17
+ - Provide first-rate performance in terms of both Big-O complexity and measured run-time (considering that this is Python ;)
18
+ - Run on every Python interpreter (it's pure-python)
19
+ - Generate a stand-alone parser (for LALR(1) grammars)
20
+
21
+ And many more features. Read ahead and find out!
22
+
23
+ Most importantly, Lark will save you time and prevent you from getting parsing headaches.
24
+
25
+ ### Quick links
26
+
27
+ - [Documentation @readthedocs](https://lark-parser.readthedocs.io/)
28
+ - [Cheatsheet (PDF)](/docs/_static/lark_cheatsheet.pdf)
29
+ - [Online IDE (very basic)](https://lark-parser.github.io/lark/ide/app.html)
30
+ - [Tutorial](/docs/json_tutorial.md) for writing a JSON parser.
31
+ - Blog post: [How to write a DSL with Lark](http://blog.erezsh.com/how-to-write-a-dsl-in-python-with-lark/)
32
+ - [Gitter chat](https://gitter.im/lark-parser/Lobby)
33
+
34
+ ### Install Lark
35
+
36
+ $ pip install lark-parser --upgrade
37
+
38
+ Lark has no dependencies.
39
+
40
+ [![Build Status](https://travis-ci.org/lark-parser/lark.svg?branch=master)](https://travis-ci.org/lark-parser/lark)
41
+
42
+ ### Syntax Highlighting
43
+
44
+ Lark provides syntax highlighting for its grammar files (\*.lark):
45
+
46
+ - [Sublime Text & TextMate](https://github.com/lark-parser/lark_syntax)
47
+ - [vscode](https://github.com/lark-parser/vscode-lark)
48
+ - [Intellij & PyCharm](https://github.com/lark-parser/intellij-syntax-highlighting)
49
+ - [Vim](https://github.com/lark-parser/vim-lark-syntax)
50
+
51
+ ### Clones
52
+
53
+ - [Lerche (Julia)](https://github.com/jamesrhester/Lerche.jl) - an unofficial clone, written entirely in Julia.
54
+
55
+ ### Hello World
56
+
57
+ Here is a little program to parse "Hello, World!" (Or any other similar phrase):
58
+
59
+ ```python
60
+ from lark import Lark
61
+
62
+ l = Lark('''start: WORD "," WORD "!"
63
+
64
+ %import common.WORD // imports from terminal library
65
+ %ignore " " // Disregard spaces in text
66
+ ''')
67
+
68
+ print( l.parse("Hello, World!") )
69
+ ```
70
+
71
+ And the output is:
72
+
73
+ ```python
74
+ Tree(start, [Token(WORD, 'Hello'), Token(WORD, 'World')])
75
+ ```
76
+
77
+ Notice punctuation doesn't appear in the resulting tree. It's automatically filtered away by Lark.
78
+
79
+ ### Fruit flies like bananas
80
+
81
+ Lark is great at handling ambiguity. Here is the result of parsing the phrase "fruit flies like bananas":
82
+
83
+ ![fruitflies.png](examples/fruitflies.png)
84
+
85
+ [Read the code here](https://github.com/lark-parser/lark/tree/master/examples/fruitflies.py), and [more examples here](https://github.com/lark-parser/lark/tree/master/examples)
86
+
87
+
88
+ ## List of main features
89
+
90
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
91
+ - **Earley** parser
92
+ - Can parse all context-free grammars
93
+ - Full support for ambiguous grammars
94
+ - **LALR(1)** parser
95
+ - Fast and light, competitive with PLY
96
+ - Can generate a stand-alone parser
97
+ - **CYK** parser, for highly ambiguous grammars
98
+ - **EBNF** grammar
99
+ - **Unicode** fully supported
100
+ - **Python 2 & 3** compatible
101
+ - Automatic line & column tracking
102
+ - Standard library of terminals (strings, numbers, names, etc.)
103
+ - Import grammars from Nearley.js ([read more](/docs/nearley.md))
104
+ - Extensive test suite [![codecov](https://codecov.io/gh/erezsh/lark/branch/master/graph/badge.svg)](https://codecov.io/gh/erezsh/lark)
105
+ - MyPy support using type stubs
106
+ - And much more!
107
+
108
+ See the full list of [features here](https://lark-parser.readthedocs.io/en/latest/features/)
109
+
110
+
111
+ ### Comparison to other libraries
112
+
113
+ #### Performance comparison
114
+
115
+ Lark is the fastest and lightest (lower is better)
116
+
117
+ ![Run-time Comparison](docs/_static/comparison_runtime.png)
118
+
119
+ ![Memory Usage Comparison](docs/_static/comparison_memory.png)
120
+
121
+
122
+ Check out the [JSON tutorial](/docs/json_tutorial.md#conclusion) for more details on how the comparison was made.
123
+
124
+ *Note: I really wanted to add PLY to the benchmark, but I couldn't find a working JSON parser anywhere written in PLY. If anyone can point me to one that actually works, I would be happy to add it!*
125
+
126
+ *Note 2: The parsimonious code has been optimized for this specific test, unlike the other benchmarks (Lark included). Its "real-world" performance may not be as good.*
127
+
128
+ #### Feature comparison
129
+
130
+ | Library | Algorithm | Grammar | Builds tree? | Supports ambiguity? | Can handle every CFG? | Line/Column tracking | Generates Stand-alone
131
+ |:--------|:----------|:----|:--------|:------------|:------------|:----------|:----------
132
+ | **Lark** | Earley/LALR(1) | EBNF | Yes! | Yes! | Yes! | Yes! | Yes! (LALR only) |
133
+ | [PLY](http://www.dabeaz.com/ply/) | LALR(1) | BNF | No | No | No | No | No |
134
+ | [PyParsing](http://pyparsing.wikispaces.com/) | PEG | Combinators | No | No | No\* | No | No |
135
+ | [Parsley](https://pypi.python.org/pypi/Parsley) | PEG | EBNF | No | No | No\* | No | No |
136
+ | [Parsimonious](https://github.com/erikrose/parsimonious) | PEG | EBNF | Yes | No | No\* | No | No |
137
+ | [ANTLR](https://github.com/antlr/antlr4) | LL(*) | EBNF | Yes | No | Yes? | Yes | No |
138
+
139
+
140
+ (\* *PEGs cannot handle non-deterministic grammars. Also, according to Wikipedia, it remains unanswered whether PEGs can really parse all deterministic CFGs*)
141
+
142
+
143
+ ### Projects using Lark
144
+
145
+ - [tartiflette](https://github.com/dailymotion/tartiflette) - a GraphQL server by Dailymotion
146
+ - [Hypothesis](https://github.com/HypothesisWorks/hypothesis) - Library for property-based testing
147
+ - [mappyfile](https://github.com/geographika/mappyfile) - a MapFile parser for working with MapServer configuration
148
+ - [synapse](https://github.com/vertexproject/synapse) - an intelligence analysis platform
149
+ - [Datacube-core](https://github.com/opendatacube/datacube-core) - Open Data Cube analyses continental scale Earth Observation data through time
150
+ - [SPFlow](https://github.com/SPFlow/SPFlow) - Library for Sum-Product Networks
151
+ - [Torchani](https://github.com/aiqm/torchani) - Accurate Neural Network Potential on PyTorch
152
+ - [Command-Block-Assembly](https://github.com/simon816/Command-Block-Assembly) - An assembly language, and C compiler, for Minecraft commands
153
+ - [EQL](https://github.com/endgameinc/eql) - Event Query Language
154
+ - [Fabric-SDK-Py](https://github.com/hyperledger/fabric-sdk-py) - Hyperledger fabric SDK with Python 3.x
155
+ - [required](https://github.com/shezadkhan137/required) - multi-field validation using docstrings
156
+ - [miniwdl](https://github.com/chanzuckerberg/miniwdl) - A static analysis toolkit for the Workflow Description Language
157
+ - [pytreeview](https://gitlab.com/parmenti/pytreeview) - a lightweight tree-based grammar explorer
158
+ - [harmalysis](https://github.com/napulen/harmalysis) - A language for harmonic analysis and music theory
159
+ - [gersemi](https://github.com/BlankSpruce/gersemi) - A CMake code formatter
160
+
161
+ Using Lark? Send me a message and I'll add your project!
162
+
163
+ ## License
164
+
165
+ Lark uses the [MIT license](LICENSE).
166
+
167
+ (The standalone tool is under MPL2)
168
+
169
+ ## Contribute
170
+
171
+ Lark is currently accepting pull-requests. See [How to develop Lark](/docs/how_to_develop.md)
172
+
173
+ ## Donate
174
+
175
+ If you like Lark and feel like donating, you can do so at my [patreon page](https://www.patreon.com/erezsh).
176
+
177
+ If you wish for a specific feature to get a higher priority, you can request it in a follow-up email, and I'll consider it favorably.
178
+
179
+ ## Contact
180
+
181
+ If you have any questions or want my assistance, you can email me at erezshin at gmail com.
182
+
183
+ I'm also available for contract work.
184
+
185
+ -- [Erez](https://github.com/erezsh)
testbed/lark-parser__lark/lark-stubs/__init__.pyi ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from .tree import *
4
+ from .visitors import *
5
+ from .exceptions import *
6
+ from .lexer import *
7
+ from .lark import *
8
+ from logging import Logger as _Logger
9
+
10
+ logger: _Logger
11
+ __version__: str = ...
testbed/lark-parser__lark/lark-stubs/indenter.pyi ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from typing import Tuple, List, Iterator, Optional
4
+ from abc import ABC, abstractmethod
5
+ from .lexer import Token
6
+
7
+
8
+ class Indenter(ABC):
9
+ paren_level: Optional[int]
10
+ indent_level: Optional[List[int]]
11
+
12
+ def __init__(self):
13
+ ...
14
+
15
+ def handle_NL(self, token: Token) -> Iterator[Token]:
16
+ ...
17
+
18
+ def process(self, stream: Iterator[Token]) -> Iterator[Token]:
19
+ ...
20
+
21
+ @property
22
+ def always_accept(self) -> Tuple[str]:
23
+ ...
24
+
25
+ @property
26
+ @abstractmethod
27
+ def NL_type(self) -> str:
28
+ ...
29
+
30
+ @property
31
+ @abstractmethod
32
+ def OPEN_PAREN_types(self) -> List[str]:
33
+ ...
34
+
35
+ @property
36
+ @abstractmethod
37
+ def CLOSE_PAREN_types(self) -> List[str]:
38
+ ...
39
+
40
+ @property
41
+ @abstractmethod
42
+ def INDENT_type(self) -> str:
43
+ ...
44
+
45
+ @property
46
+ @abstractmethod
47
+ def DEDENT_type(self) -> str:
48
+ ...
49
+
50
+ @property
51
+ @abstractmethod
52
+ def tab_len(self) -> int:
53
+ ...
testbed/lark-parser__lark/lark-stubs/lark.pyi ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from typing import (
4
+ TypeVar, Type, List, Dict, IO, Iterator, Callable, Union, Optional,
5
+ Literal, Protocol, Iterable,
6
+ )
7
+ from .visitors import Transformer
8
+ from .lexer import Token, Lexer, TerminalDef
9
+ from .tree import Tree
10
+
11
+ _T = TypeVar('_T')
12
+
13
+ class PostLex(Protocol):
14
+
15
+ def process(self, stream: Iterator[Token]) -> Iterator[Token]:
16
+ ...
17
+
18
+ always_accept: Iterable[str]
19
+
20
+
21
+ class LarkOptions:
22
+ start: List[str]
23
+ parser: str
24
+ lexer: str
25
+ transformer: Optional[Transformer]
26
+ postlex: Optional[PostLex]
27
+ ambiguity: str
28
+ regex: bool
29
+ debug: bool
30
+ keep_all_tokens: bool
31
+ propagate_positions: bool
32
+ maybe_placeholders: bool
33
+ lexer_callbacks: Dict[str, Callable[[Token], Token]]
34
+ cache: Union[bool, str]
35
+ g_regex_flags: int
36
+ use_bytes: bool
37
+
38
+
39
+ class Lark:
40
+ source: str
41
+ grammar_source: str
42
+ options: LarkOptions
43
+ lexer: Lexer
44
+ terminals: List[TerminalDef]
45
+
46
+ def __init__(
47
+ self,
48
+ grammar: Union[str, IO[str]],
49
+ *,
50
+ start: Union[None, str, List[str]] = "start",
51
+ parser: Literal["earley", "lalr", "cyk"] = "auto",
52
+ lexer: Union[Literal["auto", "standard", "contextual", "dynamic", "dynamic_complete"], Lexer] = "auto",
53
+ transformer: Optional[Transformer] = None,
54
+ postlex: Optional[PostLex] = None,
55
+ ambiguity: Literal["explicit", "resolve"] = "resolve",
56
+ regex: bool = False,
57
+ debug: bool = False,
58
+ keep_all_tokens: bool = False,
59
+ propagate_positions: bool = False,
60
+ maybe_placeholders: bool = False,
61
+ lexer_callbacks: Optional[Dict[str, Callable[[Token], Token]]] = None,
62
+ cache: Union[bool, str] = False,
63
+ g_regex_flags: int = ...,
64
+ use_bytes: bool = False,
65
+ ):
66
+ ...
67
+
68
+ def parse(self, text: str, start: Optional[str] = None) -> Tree:
69
+ ...
70
+
71
+ @classmethod
72
+ def open(cls: Type[_T], grammar_filename: str, rel_to: Optional[str] = None, **options) -> _T:
73
+ ...
74
+
75
+ def lex(self, text: str) -> Iterator[Token]:
76
+ ...
77
+
78
+ def get_terminal(self, name: str) -> TerminalDef:
79
+ ...
testbed/lark-parser__lark/lark-stubs/lexer.pyi ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ from types import ModuleType
3
+ from typing import (
4
+ TypeVar, Type, Tuple, List, Dict, Iterator, Collection, Callable, Optional,
5
+ Pattern as REPattern,
6
+ )
7
+ from abc import abstractmethod, ABC
8
+
9
+ _T = TypeVar('_T')
10
+
11
+
12
+ class Pattern(ABC):
13
+ value: str
14
+ flags: Collection[str]
15
+
16
+ def __init__(self, value: str, flags: Collection[str] = ...):
17
+ ...
18
+
19
+ @property
20
+ @abstractmethod
21
+ def type(self) -> str:
22
+ ...
23
+
24
+ @abstractmethod
25
+ def to_regexp(self) -> str:
26
+ ...
27
+
28
+ @property
29
+ @abstractmethod
30
+ def min_width(self) -> int:
31
+ ...
32
+
33
+ @property
34
+ @abstractmethod
35
+ def max_width(self) -> int:
36
+ ...
37
+
38
+
39
+ class PatternStr(Pattern):
40
+ type: str = ...
41
+
42
+ def to_regexp(self) -> str:
43
+ ...
44
+
45
+ @property
46
+ def min_width(self) -> int:
47
+ ...
48
+
49
+ @property
50
+ def max_width(self) -> int:
51
+ ...
52
+
53
+
54
+ class PatternRE(Pattern):
55
+ type: str = ...
56
+
57
+ def to_regexp(self) -> str:
58
+ ...
59
+
60
+ @property
61
+ def min_width(self) -> int:
62
+ ...
63
+
64
+ @property
65
+ def max_width(self) -> int:
66
+ ...
67
+
68
+
69
+ class TerminalDef:
70
+ name: str
71
+ pattern: Pattern
72
+ priority: int
73
+
74
+ def __init__(self, name: str, pattern: Pattern, priority: int = ...):
75
+ ...
76
+
77
+
78
+ class Token(str):
79
+ type: str
80
+ pos_in_stream: int
81
+ value: str
82
+ line: int
83
+ column: int
84
+ end_line: int
85
+ end_column: int
86
+ end_pos: int
87
+
88
+ def update(self, type_: Optional[str] = None, value: Optional[str] = None) -> Token:
89
+ ...
90
+
91
+ @classmethod
92
+ def new_borrow_pos(cls: Type[_T], type_: str, value: str, borrow_t: Token) -> _T:
93
+ ...
94
+
95
+
96
+ _Callback = Callable[[Token], Token]
97
+
98
+
99
+ class Lexer(ABC):
100
+ lex: Callable[..., Iterator[Token]]
101
+
102
+
103
+ class TraditionalLexer(Lexer):
104
+ terminals: Collection[TerminalDef]
105
+ ignore_types: List[str]
106
+ newline_types: List[str]
107
+ user_callbacks: Dict[str, _Callback]
108
+ callback: Dict[str, _Callback]
109
+ mres: List[Tuple[REPattern, Dict[int, str]]]
110
+ re: ModuleType
111
+
112
+ def __init__(
113
+ self,
114
+ terminals: Collection[TerminalDef],
115
+ re_: ModuleType,
116
+ ignore: Collection[str] = ...,
117
+ user_callbacks: Dict[str, _Callback] = ...,
118
+ g_regex_flags: int = ...
119
+ ):
120
+ ...
121
+
122
+ def build(self) -> None:
123
+ ...
124
+
125
+ def match(self, stream: str, pos: int) -> Optional[Tuple[str, str]]:
126
+ ...
127
+
128
+ def lex(self, stream: str) -> Iterator[Token]:
129
+ ...
130
+
131
+
132
+ class ContextualLexer(Lexer):
133
+ lexers: Dict[str, TraditionalLexer]
134
+ root_lexer: TraditionalLexer
135
+
136
+ def __init__(
137
+ self,
138
+ terminals: Collection[TerminalDef],
139
+ states: Dict[str, Collection[str]],
140
+ re_: ModuleType,
141
+ ignore: Collection[str] = ...,
142
+ always_accept: Collection[str] = ...,
143
+ user_callbacks: Dict[str, _Callback] = ...,
144
+ g_regex_flags: int = ...
145
+ ):
146
+ ...
147
+
148
+ def lex(self, stream: str, get_parser_state: Callable[[], str]) -> Iterator[Token]:
149
+ ...
testbed/lark-parser__lark/lark-stubs/parsers/__init__.pyi ADDED
File without changes
testbed/lark-parser__lark/lark-stubs/parsers/lalr_puppet.pyi ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Set, Dict, Any
2
+
3
+ from lark import Token, Tree
4
+
5
+
6
+ class ParserPuppet(object):
7
+ """
8
+ Provides an interface to interactively step through the parser (LALR(1) only for now)
9
+
10
+ Accessible via `UnexpectedToken.puppet` (raised by the parser on token error)
11
+ """
12
+ def feed_token(self, token: Token): ...
13
+
14
+ def copy(self) -> ParserPuppet: ...
15
+
16
+ def pretty(self) -> str: ...
17
+
18
+ def choices(self) -> Dict[str, Any]: ...
19
+
20
+ def accepts(self) -> Set[str]: ...
21
+
22
+ def resume_parse(self) -> Tree: ...
testbed/lark-parser__lark/setup.cfg ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ [global]
2
+ zip_safe=
3
+
4
+ [bdist_wheel]
5
+ universal = 1
6
+
7
+ [metadata]
8
+ description-file = README.md
9
+ license_file = LICENSE
10
+
testbed/lark-parser__lark/setup.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ try:
2
+ import regex as re
3
+ except ImportError:
4
+ import re
5
+ from setuptools import find_packages, setup
6
+
7
+ __version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read())
8
+
9
+ setup(
10
+ name = "lark-parser",
11
+ version = __version__,
12
+ packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars', 'lark.__pyinstaller', 'lark-stubs'],
13
+
14
+ requires = [],
15
+ install_requires = [],
16
+
17
+ extras_require = {
18
+ "regex": ["regex"],
19
+ "nearley": ["js2py"]
20
+ },
21
+
22
+ package_data = {'': ['*.md', '*.lark'], 'lark-stubs': ['*.pyi']},
23
+
24
+ test_suite = 'tests.__main__',
25
+
26
+ # metadata for upload to PyPI
27
+ author = "Erez Shinan",
28
+ author_email = "erezshin@gmail.com",
29
+ description = "a modern parsing library",
30
+ license = "MIT",
31
+ keywords = "Earley LALR parser parsing ast",
32
+ url = "https://github.com/erezsh/lark",
33
+ download_url = "https://github.com/erezsh/lark/tarball/master",
34
+ long_description='''
35
+ Lark is a modern general-purpose parsing library for Python.
36
+
37
+ With Lark, you can parse any context-free grammar, efficiently, with very little code.
38
+
39
+ Main Features:
40
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
41
+ - Earley parser
42
+ - Can parse all context-free grammars
43
+ - Full support for ambiguous grammars
44
+ - LALR(1) parser
45
+ - Fast and light, competitive with PLY
46
+ - Can generate a stand-alone parser
47
+ - CYK parser, for highly ambiguous grammars
48
+ - EBNF grammar
49
+ - Unicode fully supported
50
+ - Python 2 & 3 compatible
51
+ - Automatic line & column tracking
52
+ - Standard library of terminals (strings, numbers, names, etc.)
53
+ - Import grammars from Nearley.js
54
+ - Extensive test suite
55
+ - And much more!
56
+ ''',
57
+
58
+ classifiers=[
59
+ "Development Status :: 5 - Production/Stable",
60
+ "Intended Audience :: Developers",
61
+ "Programming Language :: Python :: 2.7",
62
+ "Programming Language :: Python :: 3",
63
+ "Topic :: Software Development :: Libraries :: Python Modules",
64
+ "Topic :: Text Processing :: General",
65
+ "Topic :: Text Processing :: Linguistic",
66
+ "License :: OSI Approved :: MIT License",
67
+ ],
68
+ entry_points = {
69
+ 'pyinstaller40': [
70
+ 'hook-dirs = lark.__pyinstaller:get_hook_dirs'
71
+ ]
72
+ },
73
+ )
74
+
testbed/lark-parser__lark/tests/test_trees.py ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import absolute_import
2
+
3
+ import unittest
4
+ from unittest import TestCase
5
+ import copy
6
+ import pickle
7
+ import functools
8
+
9
+ from lark.tree import Tree
10
+ from lark.lexer import Token
11
+ from lark.visitors import Visitor, Visitor_Recursive, Transformer, Interpreter, visit_children_decor, v_args, Discard
12
+
13
+
14
+ class TestTrees(TestCase):
15
+ def setUp(self):
16
+ self.tree1 = Tree('a', [Tree(x, y) for x, y in zip('bcd', 'xyz')])
17
+
18
+ def test_deepcopy(self):
19
+ assert self.tree1 == copy.deepcopy(self.tree1)
20
+
21
+ def test_pickle(self):
22
+ s = copy.deepcopy(self.tree1)
23
+ data = pickle.dumps(s, protocol=pickle.HIGHEST_PROTOCOL)
24
+ assert pickle.loads(data) == s
25
+
26
+ def test_repr_runnable(self):
27
+ assert self.tree1 == eval(repr(self.tree1))
28
+
29
+ def test_iter_subtrees(self):
30
+ expected = [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z'),
31
+ Tree('a', [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')])]
32
+ nodes = list(self.tree1.iter_subtrees())
33
+ self.assertEqual(nodes, expected)
34
+
35
+ def test_iter_subtrees_topdown(self):
36
+ expected = [Tree('a', [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')]),
37
+ Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')]
38
+ nodes = list(self.tree1.iter_subtrees_topdown())
39
+ self.assertEqual(nodes, expected)
40
+
41
+ def test_visitor(self):
42
+ class Visitor1(Visitor):
43
+ def __init__(self):
44
+ self.nodes=[]
45
+
46
+ def __default__(self,tree):
47
+ self.nodes.append(tree)
48
+ class Visitor1_Recursive(Visitor_Recursive):
49
+ def __init__(self):
50
+ self.nodes=[]
51
+
52
+ def __default__(self,tree):
53
+ self.nodes.append(tree)
54
+
55
+ visitor1=Visitor1()
56
+ visitor1_recursive=Visitor1_Recursive()
57
+
58
+ expected_top_down = [Tree('a', [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')]),
59
+ Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')]
60
+ expected_botton_up= [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z'),
61
+ Tree('a', [Tree('b', 'x'), Tree('c', 'y'), Tree('d', 'z')])]
62
+
63
+ visitor1.visit(self.tree1)
64
+ self.assertEqual(visitor1.nodes,expected_botton_up)
65
+
66
+ visitor1_recursive.visit(self.tree1)
67
+ self.assertEqual(visitor1_recursive.nodes,expected_botton_up)
68
+
69
+ visitor1.nodes=[]
70
+ visitor1_recursive.nodes=[]
71
+
72
+ visitor1.visit_topdown(self.tree1)
73
+ self.assertEqual(visitor1.nodes,expected_top_down)
74
+
75
+ visitor1_recursive.visit_topdown(self.tree1)
76
+ self.assertEqual(visitor1_recursive.nodes,expected_top_down)
77
+
78
+ def test_interp(self):
79
+ t = Tree('a', [Tree('b', []), Tree('c', []), 'd'])
80
+
81
+ class Interp1(Interpreter):
82
+ def a(self, tree):
83
+ return self.visit_children(tree) + ['e']
84
+
85
+ def b(self, tree):
86
+ return 'B'
87
+
88
+ def c(self, tree):
89
+ return 'C'
90
+
91
+ self.assertEqual(Interp1().visit(t), list('BCde'))
92
+
93
+ class Interp2(Interpreter):
94
+ @visit_children_decor
95
+ def a(self, values):
96
+ return values + ['e']
97
+
98
+ def b(self, tree):
99
+ return 'B'
100
+
101
+ def c(self, tree):
102
+ return 'C'
103
+
104
+ self.assertEqual(Interp2().visit(t), list('BCde'))
105
+
106
+ class Interp3(Interpreter):
107
+ def b(self, tree):
108
+ return 'B'
109
+
110
+ def c(self, tree):
111
+ return 'C'
112
+
113
+ self.assertEqual(Interp3().visit(t), list('BCd'))
114
+
115
+ def test_transformer(self):
116
+ t = Tree('add', [Tree('sub', [Tree('i', ['3']), Tree('f', ['1.1'])]), Tree('i', ['1'])])
117
+
118
+ class T(Transformer):
119
+ i = v_args(inline=True)(int)
120
+ f = v_args(inline=True)(float)
121
+
122
+ sub = lambda self, values: values[0] - values[1]
123
+
124
+ def add(self, values):
125
+ return sum(values)
126
+
127
+ res = T().transform(t)
128
+ self.assertEqual(res, 2.9)
129
+
130
+ @v_args(inline=True)
131
+ class T(Transformer):
132
+ i = int
133
+ f = float
134
+ sub = lambda self, a, b: a-b
135
+
136
+ def add(self, a, b):
137
+ return a + b
138
+
139
+
140
+ res = T().transform(t)
141
+ self.assertEqual(res, 2.9)
142
+
143
+
144
+ @v_args(inline=True)
145
+ class T(Transformer):
146
+ i = int
147
+ f = float
148
+ from operator import sub, add
149
+
150
+ res = T().transform(t)
151
+ self.assertEqual(res, 2.9)
152
+
153
+ def test_vargs(self):
154
+ @v_args()
155
+ class MyTransformer(Transformer):
156
+ @staticmethod
157
+ def integer(args):
158
+ return 1 # some code here
159
+
160
+ @classmethod
161
+ def integer2(cls, args):
162
+ return 2 # some code here
163
+
164
+ hello = staticmethod(lambda args: 'hello')
165
+
166
+ x = MyTransformer().transform( Tree('integer', [2]))
167
+ self.assertEqual(x, 1)
168
+ x = MyTransformer().transform( Tree('integer2', [2]))
169
+ self.assertEqual(x, 2)
170
+ x = MyTransformer().transform( Tree('hello', [2]))
171
+ self.assertEqual(x, 'hello')
172
+
173
+ def test_inline_static(self):
174
+ @v_args(inline=True)
175
+ class T(Transformer):
176
+ @staticmethod
177
+ def test(a, b):
178
+ return a + b
179
+ x = T().transform(Tree('test', ['a', 'b']))
180
+ self.assertEqual(x, 'ab')
181
+
182
+ def test_vargs_override(self):
183
+ t = Tree('add', [Tree('sub', [Tree('i', ['3']), Tree('f', ['1.1'])]), Tree('i', ['1'])])
184
+
185
+ @v_args(inline=True)
186
+ class T(Transformer):
187
+ i = int
188
+ f = float
189
+ sub = lambda self, a, b: a-b
190
+
191
+ not_a_method = {'other': 'stuff'}
192
+
193
+ @v_args(inline=False)
194
+ def add(self, values):
195
+ return sum(values)
196
+
197
+ res = T().transform(t)
198
+ self.assertEqual(res, 2.9)
199
+
200
+ def test_partial(self):
201
+
202
+ tree = Tree("start", [Tree("a", ["test1"]), Tree("b", ["test2"])])
203
+
204
+ def test(prefix, s, postfix):
205
+ return prefix + s.upper() + postfix
206
+
207
+ @v_args(inline=True)
208
+ class T(Transformer):
209
+ a = functools.partial(test, "@", postfix="!")
210
+ b = functools.partial(lambda s: s + "!")
211
+
212
+ res = T().transform(tree)
213
+ assert res.children == ["@TEST1!", "test2!"]
214
+
215
+
216
+ def test_discard(self):
217
+ class MyTransformer(Transformer):
218
+ def a(self, args):
219
+ return 1 # some code here
220
+
221
+ def b(cls, args):
222
+ raise Discard()
223
+
224
+ t = Tree('root', [
225
+ Tree('b', []),
226
+ Tree('a', []),
227
+ Tree('b', []),
228
+ Tree('c', []),
229
+ Tree('b', []),
230
+ ])
231
+ t2 = Tree('root', [1, Tree('c', [])])
232
+
233
+ x = MyTransformer().transform( t )
234
+ self.assertEqual(x, t2)
235
+
236
+
237
+ if __name__ == '__main__':
238
+ unittest.main()
testbed/matplotlib__matplotlib/.circleci/fetch_doc_logs.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Download artifacts from CircleCI for a documentation build.
3
+
4
+ This is run by the :file:`.github/workflows/circleci.yml` workflow in order to
5
+ get the warning/deprecation logs that will be posted on commits as checks. Logs
6
+ are downloaded from the :file:`docs/logs` artifact path and placed in the
7
+ :file:`logs` directory.
8
+
9
+ Additionally, the artifact count for a build is produced as a workflow output,
10
+ by appending to the file specified by :env:`GITHUB_OUTPUT`.
11
+
12
+ If there are no logs, an "ERROR" message is printed, but this is not fatal, as
13
+ the initial 'status' workflow runs when the build has first started, and there
14
+ are naturally no artifacts at that point.
15
+
16
+ This script should be run by passing the CircleCI build URL as its first
17
+ argument. In the GitHub Actions workflow, this URL comes from
18
+ ``github.event.target_url``.
19
+ """
20
+ import json
21
+ import os
22
+ from pathlib import Path
23
+ import sys
24
+ from urllib.parse import urlparse
25
+ from urllib.request import URLError, urlopen
26
+
27
+
28
+ if len(sys.argv) != 2:
29
+ print('USAGE: fetch_doc_results.py CircleCI-build-url')
30
+ sys.exit(1)
31
+
32
+ target_url = urlparse(sys.argv[1])
33
+ *_, organization, repository, build_id = target_url.path.split('/')
34
+ print(f'Fetching artifacts from {organization}/{repository} for {build_id}')
35
+
36
+ artifact_url = (
37
+ f'https://circleci.com/api/v2/project/gh/'
38
+ f'{organization}/{repository}/{build_id}/artifacts'
39
+ )
40
+ print(artifact_url)
41
+ try:
42
+ with urlopen(artifact_url) as response:
43
+ artifacts = json.load(response)
44
+ except URLError:
45
+ artifacts = {'items': []}
46
+ artifact_count = len(artifacts['items'])
47
+ print(f'Found {artifact_count} artifacts')
48
+
49
+ with open(os.environ['GITHUB_OUTPUT'], 'w+') as fd:
50
+ fd.write(f'count={artifact_count}\n')
51
+
52
+ logs = Path('logs')
53
+ logs.mkdir(exist_ok=True)
54
+
55
+ found = False
56
+ for item in artifacts['items']:
57
+ path = item['path']
58
+ if path.startswith('doc/logs/'):
59
+ path = Path(path).name
60
+ print(f'Downloading {path} from {item["url"]}')
61
+ with urlopen(item['url']) as response:
62
+ (logs / path).write_bytes(response.read())
63
+ found = True
64
+
65
+ if not found:
66
+ print('ERROR: Did not find any artifact logs!')
testbed/matplotlib__matplotlib/.github/CONTRIBUTING.md ADDED
@@ -0,0 +1 @@
 
 
1
+ Please refer to the [developers guide](https://matplotlib.org/devel/index.html).
testbed/matplotlib__matplotlib/.github/FUNDING.yml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # These are supported funding model platforms
2
+ github: [matplotlib, numfocus]
3
+ custom: https://numfocus.org/donate-to-matplotlib
testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/bug_report.yml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Bug Report
2
+ description: Report a bug or issue with Matplotlib.
3
+ title: "[Bug]: "
4
+ body:
5
+ - type: textarea
6
+ id: summary
7
+ attributes:
8
+ label: Bug summary
9
+ description: Describe the bug in 1-2 short sentences
10
+ placeholder:
11
+ value:
12
+ validations:
13
+ required: true
14
+ - type: textarea
15
+ id: reproduction
16
+ attributes:
17
+ label: Code for reproduction
18
+ description: |
19
+ If possible, please provide a minimum self-contained example.
20
+ placeholder: Paste your code here. This field is automatically formatted as Python code.
21
+ render: python
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: actual
26
+ attributes:
27
+ label: Actual outcome
28
+ description: |
29
+ Paste the output produced by the code provided above, e.g.
30
+ console output, images/videos produced by the code, any relevant screenshots/screencasts, etc.
31
+ validations:
32
+ required: true
33
+ - type: textarea
34
+ id: expected
35
+ attributes:
36
+ label: Expected outcome
37
+ description: Describe (or provide a visual example of) the expected outcome from the code snippet.
38
+ validations:
39
+ required: true
40
+ - type: textarea
41
+ id: details
42
+ attributes:
43
+ label: Additional information
44
+ description: |
45
+ - What are the conditions under which this bug happens? input parameters, edge cases, etc?
46
+ - Has this worked in earlier versions?
47
+ - Do you know why this bug is happening?
48
+ - Do you maybe even know a fix?
49
+ - type: input
50
+ id: operating-system
51
+ attributes:
52
+ label: Operating system
53
+ description: Windows, OS/X, Arch, Debian, Ubuntu, etc.
54
+ - type: input
55
+ id: matplotlib-version
56
+ attributes:
57
+ label: Matplotlib Version
58
+ description: "From Python prompt: `import matplotlib; print(matplotlib.__version__)`"
59
+ validations:
60
+ required: true
61
+ - type: input
62
+ id: matplotlib-backend
63
+ attributes:
64
+ label: Matplotlib Backend
65
+ description: "From Python prompt: `import matplotlib; print(matplotlib.get_backend())`"
66
+ - type: input
67
+ id: python-version
68
+ attributes:
69
+ label: Python version
70
+ description: "In console: `python --version`"
71
+ - type: input
72
+ id: jupyter-version
73
+ attributes:
74
+ label: Jupyter version
75
+ description: "In console: `jupyter notebook --version` or `jupyter lab --version`"
76
+ - type: dropdown
77
+ id: install
78
+ attributes:
79
+ label: Installation
80
+ description: How did you install matplotlib?
81
+ options:
82
+ - pip
83
+ - conda
84
+ - Linux package manager
85
+ - from source (.tar.gz)
86
+ - git checkout
testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
2
+ blank_issues_enabled: true # default
3
+ contact_links:
4
+ - name: Question/Support/Other
5
+ url: https://discourse.matplotlib.org
6
+ about: If you have a usage question
7
+ - name: Chat with devs
8
+ url: https://gitter.im/matplotlib/matplotlib
9
+ about: Ask short questions about contributing to Matplotlib
testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/documentation.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Documentation
2
+ description: Create a report to help us improve the documentation
3
+ title: "[Doc]: "
4
+ labels: [Documentation]
5
+ body:
6
+ - type: input
7
+ id: link
8
+ attributes:
9
+ label: Documentation Link
10
+ description: |
11
+ Link to any documentation or examples that you are referencing.
12
+ Suggested improvements should be based on the development version of the docs: https://matplotlib.org/devdocs/
13
+ placeholder: https://matplotlib.org/devdocs/...
14
+ - type: textarea
15
+ id: problem
16
+ attributes:
17
+ label: Problem
18
+ description: What is missing, unclear, or wrong in the documentation?
19
+ placeholder: |
20
+ * I found [...] to be unclear because [...]
21
+ * [...] made me think that [...] when really it should be [...]
22
+ * There is no example showing how to do [...]
23
+ validations:
24
+ required: true
25
+ - type: textarea
26
+ id: improvement
27
+ attributes:
28
+ label: Suggested improvement
29
+ placeholder: |
30
+ * This line should be be changed to say [...]
31
+ * Include a paragraph explaining [...]
32
+ * Add a figure showing [...]
testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/feature_request.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Feature Request
2
+ description: Suggest something to add to Matplotlib!
3
+ title: "[ENH]: "
4
+ labels: [New feature]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Please search the [issues](https://github.com/matplotlib/matplotlib/issues) for relevant feature requests before creating a new feature request.
10
+ - type: textarea
11
+ id: problem
12
+ attributes:
13
+ label: Problem
14
+ description: Briefly describe the problem this feature will solve. (2-4 sentences)
15
+ placeholder: |
16
+ * I'm always frustrated when [...] because [...]
17
+ * I would like it if [...] happened when I [...] because [...]
18
+ * Here is a sample image of what I am asking for [...]
19
+ validations:
20
+ required: true
21
+ - type: textarea
22
+ id: solution
23
+ attributes:
24
+ label: Proposed solution
25
+ description: Describe a way to accomplish the goals of this feature request.
testbed/matplotlib__matplotlib/.github/ISSUE_TEMPLATE/maintenance.yml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Maintenance
2
+ description: Help improve performance, usability and/or consistency.
3
+ title: "[MNT]: "
4
+ labels: [Maintenance]
5
+ body:
6
+ - type: textarea
7
+ id: summary
8
+ attributes:
9
+ label: Summary
10
+ description: Please provide 1-2 short sentences that succinctly describes what could be improved.
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: fix
15
+ attributes:
16
+ label: Proposed fix
17
+ description: Please describe how you think this could be improved.
testbed/matplotlib__matplotlib/.github/PULL_REQUEST_TEMPLATE.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## PR summary
2
+
3
+ ## PR checklist
4
+ <!-- Please mark any checkboxes that do not apply to this PR as [N/A].-->
5
+
6
+ - [ ] "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)
7
+ - [ ] 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:
15
+
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
36
+ reviews start coming in. Please let us know if the reviews are unclear or
37
+ the recommended next step seems overly demanding, if you would like help in
38
+ addressing a reviewer's comments, or if you have been waiting too long to hear
39
+ back on your PR.
40
+ -->
testbed/matplotlib__matplotlib/.github/codecov.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # codecov used to be able to find this anywhere, now we have to manually
2
+ # tell it where to look
3
+ comment: false
4
+
5
+ codecov:
6
+ notify:
7
+ require_ci_to_pass: no
8
+
9
+ coverage:
10
+ status:
11
+ patch:
12
+ default:
13
+ target: 50%
14
+ if_no_uploads: error
15
+ if_not_found: success
16
+ if_ci_failed: failure
17
+ project:
18
+ default: false
19
+ library:
20
+ target: 50%
21
+ if_no_uploads: error
22
+ if_not_found: success
23
+ if_ci_failed: failure
24
+ paths:
25
+ - '!lib/.*/tests/.*'
26
+ tests:
27
+ target: auto
28
+ if_no_uploads: error
29
+ if_not_found: success
30
+ if_ci_failed: failure
31
+ paths:
32
+ - 'lib/.*/tests/.*'
testbed/matplotlib__matplotlib/.github/dependabot.yml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
testbed/matplotlib__matplotlib/.github/workflows/cibuildwheel.yml ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Build CI wheels
3
+
4
+ on:
5
+ # Save CI by only running this on release branches or tags.
6
+ push:
7
+ branches:
8
+ - main
9
+ - v[0-9]+.[0-9]+.x
10
+ tags:
11
+ - v*
12
+ # Also allow running this action on PRs if requested by applying the
13
+ # "Run cibuildwheel" label.
14
+ pull_request:
15
+ types:
16
+ - opened
17
+ - synchronize
18
+ - reopened
19
+ - labeled
20
+
21
+ permissions:
22
+ contents: read
23
+
24
+ jobs:
25
+ build_sdist:
26
+ if: |
27
+ github.event_name == 'push' ||
28
+ github.event_name == 'pull_request' && (
29
+ (
30
+ github.event.action == 'labeled' &&
31
+ github.event.label.name == 'CI: Run cibuildwheel'
32
+ ) ||
33
+ contains(github.event.pull_request.labels.*.name,
34
+ 'CI: Run cibuildwheel')
35
+ )
36
+ name: Build sdist
37
+ runs-on: ubuntu-20.04
38
+ outputs:
39
+ SDIST_NAME: ${{ steps.sdist.outputs.SDIST_NAME }}
40
+
41
+ steps:
42
+ - uses: actions/checkout@v3
43
+ with:
44
+ fetch-depth: 0
45
+
46
+ - uses: actions/setup-python@v4
47
+ name: Install Python
48
+ with:
49
+ python-version: 3.9
50
+
51
+ # Something changed somewhere that prevents the downloaded-at-build-time
52
+ # licenses from being included in built wheels, so pre-download them so
53
+ # that they exist before the build and are included.
54
+ - name: Pre-download bundled licenses
55
+ run: >
56
+ curl -Lo LICENSE/LICENSE_QHULL
57
+ https://github.com/qhull/qhull/raw/2020.2/COPYING.txt
58
+
59
+ - name: Install dependencies
60
+ run: python -m pip install build twine
61
+
62
+ - name: Build sdist
63
+ id: sdist
64
+ run: |
65
+ python -m build --sdist
66
+ python ci/export_sdist_name.py
67
+
68
+ - name: Check README rendering for PyPI
69
+ run: twine check dist/*
70
+
71
+ - name: Upload sdist result
72
+ uses: actions/upload-artifact@v3
73
+ with:
74
+ name: sdist
75
+ path: dist/*.tar.gz
76
+ if-no-files-found: error
77
+
78
+ build_wheels:
79
+ if: |
80
+ github.event_name == 'push' ||
81
+ github.event_name == 'pull_request' && (
82
+ (
83
+ github.event.action == 'labeled' &&
84
+ github.event.label.name == 'CI: Run cibuildwheel'
85
+ ) ||
86
+ contains(github.event.pull_request.labels.*.name,
87
+ 'CI: Run cibuildwheel')
88
+ )
89
+ needs: build_sdist
90
+ name: Build wheels on ${{ matrix.os }}
91
+ runs-on: ${{ matrix.os }}
92
+ env:
93
+ CIBW_BEFORE_BUILD: >-
94
+ pip install certifi numpy>=1.25 &&
95
+ rm -rf {package}/build
96
+ CIBW_BEFORE_BUILD_WINDOWS: >-
97
+ pip install certifi delvewheel numpy>=1.25 &&
98
+ rm -rf {package}/build
99
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
100
+ delvewheel repair -w {dest_dir} {wheel}
101
+ CIBW_AFTER_BUILD: >-
102
+ twine check {wheel} &&
103
+ python {package}/ci/check_wheel_licenses.py {wheel}
104
+ CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
105
+ CIBW_SKIP: "*-musllinux_aarch64"
106
+ CIBW_TEST_COMMAND: >-
107
+ python {package}/ci/check_version_number.py
108
+ # Apple Silicon machines are not available for testing, so silence the
109
+ # warning from cibuildwheel. Remove the skip when they're available.
110
+ CIBW_TEST_SKIP: "*-macosx_arm64"
111
+ MACOSX_DEPLOYMENT_TARGET: "10.12"
112
+ MPL_DISABLE_FH4: "yes"
113
+ strategy:
114
+ matrix:
115
+ include:
116
+ - os: ubuntu-20.04
117
+ cibw_archs: "x86_64"
118
+ - os: ubuntu-20.04
119
+ cibw_archs: "aarch64"
120
+ - os: windows-latest
121
+ cibw_archs: "auto64"
122
+ - os: macos-11
123
+ cibw_archs: "x86_64 arm64"
124
+
125
+ steps:
126
+ - name: Set up QEMU
127
+ if: matrix.cibw_archs == 'aarch64'
128
+ uses: docker/setup-qemu-action@v2
129
+ with:
130
+ platforms: arm64
131
+
132
+ - name: Download sdist
133
+ uses: actions/download-artifact@v3
134
+ with:
135
+ name: sdist
136
+ path: dist/
137
+
138
+ - name: Build wheels for CPython 3.11
139
+ uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
140
+ with:
141
+ package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
142
+ env:
143
+ CIBW_BUILD: "cp311-*"
144
+ CIBW_ARCHS: ${{ matrix.cibw_archs }}
145
+
146
+ - name: Build wheels for CPython 3.10
147
+ uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
148
+ with:
149
+ package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
150
+ env:
151
+ CIBW_BUILD: "cp310-*"
152
+ CIBW_ARCHS: ${{ matrix.cibw_archs }}
153
+
154
+ - name: Build wheels for CPython 3.9
155
+ uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
156
+ with:
157
+ package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
158
+ env:
159
+ CIBW_BUILD: "cp39-*"
160
+ CIBW_ARCHS: ${{ matrix.cibw_archs }}
161
+
162
+ - name: Build wheels for PyPy
163
+ uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
164
+ with:
165
+ package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
166
+ env:
167
+ CIBW_BUILD: "pp39-*"
168
+ CIBW_ARCHS: ${{ matrix.cibw_archs }}
169
+ if: matrix.cibw_archs != 'aarch64'
170
+
171
+ - uses: actions/upload-artifact@v3
172
+ with:
173
+ name: wheels
174
+ path: ./wheelhouse/*.whl
175
+ if-no-files-found: error
testbed/matplotlib__matplotlib/.github/workflows/circleci.yml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "CircleCI artifact handling"
3
+ on: [status]
4
+ jobs:
5
+ circleci_artifacts_redirector_job:
6
+ if: "${{ github.event.context == 'ci/circleci: docs-python39' }}"
7
+ permissions:
8
+ statuses: write
9
+ runs-on: ubuntu-latest
10
+ name: Run CircleCI artifacts redirector
11
+ steps:
12
+ - name: GitHub Action step
13
+ uses: larsoner/circleci-artifacts-redirector-action@master
14
+ with:
15
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
16
+ api-token: ${{ secrets.CIRCLECI_TOKEN }}
17
+ artifact-path: 0/doc/build/html/index.html
18
+ circleci-jobs: docs-python39
19
+ job-title: View the built docs
20
+
21
+ post_warnings_as_review:
22
+ if: "${{ github.event.context == 'ci/circleci: docs-python39' }}"
23
+ permissions:
24
+ contents: read
25
+ checks: write
26
+ pull-requests: write
27
+ runs-on: ubuntu-latest
28
+ name: Post warnings/errors as review
29
+ steps:
30
+ - uses: actions/checkout@v3
31
+
32
+ - name: Fetch result artifacts
33
+ id: fetch-artifacts
34
+ run: |
35
+ python .circleci/fetch_doc_logs.py "${{ github.event.target_url }}"
36
+
37
+ - name: Set up reviewdog
38
+ if: "${{ steps.fetch-artifacts.outputs.count != 0 }}"
39
+ uses: reviewdog/action-setup@v1
40
+ with:
41
+ reviewdog_version: latest
42
+
43
+ - name: Post review
44
+ if: "${{ steps.fetch-artifacts.outputs.count != 0 }}"
45
+ env:
46
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+ REVIEWDOG_SKIP_DOGHOUSE: "true"
48
+ CI_COMMIT: ${{ github.event.sha }}
49
+ CI_REPO_OWNER: ${{ github.event.repository.owner.login }}
50
+ CI_REPO_NAME: ${{ github.event.repository.name }}
51
+ run: |
52
+ # The 'status' event does not contain information in the way that
53
+ # reviewdog expects, so we unset those so it reads from the
54
+ # environment variables we set above.
55
+ unset GITHUB_ACTIONS GITHUB_EVENT_PATH
56
+ cat logs/sphinx-errors-warnings.log | \
57
+ reviewdog \
58
+ -efm '%f\:%l: %tEBUG: %m' \
59
+ -efm '%f\:%l: %tNFO: %m' \
60
+ -efm '%f\:%l: %tARNING: %m' \
61
+ -efm '%f\:%l: %tRROR: %m' \
62
+ -efm '%f\:%l: %tEVERE: %m' \
63
+ -efm '%f\:%s: %tARNING: %m' \
64
+ -efm '%f\:%s: %tRROR: %m' \
65
+ -name=sphinx -tee -fail-on-error=false \
66
+ -reporter=github-check -filter-mode=nofilter
67
+ cat logs/sphinx-deprecations.log | \
68
+ reviewdog \
69
+ -efm '%f\:%l: %m' \
70
+ -name=examples -tee -reporter=github-check -filter-mode=nofilter
testbed/matplotlib__matplotlib/.github/workflows/clean_pr.yml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: PR cleanliness
3
+ on: [pull_request]
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ jobs:
9
+ pr_clean:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: '0'
16
+ - name: Check for added-and-deleted files
17
+ run: |
18
+ git fetch --quiet origin "$GITHUB_BASE_REF"
19
+ base="$(git merge-base "origin/$GITHUB_BASE_REF" 'HEAD^2')"
20
+ ad="$(git log "$base..HEAD^2" --pretty=tformat: --name-status --diff-filter=AD |
21
+ cut --fields 2 | sort | uniq --repeated)"
22
+ if [[ -n "$ad" ]]; then
23
+ printf 'The following files were both added and deleted in this PR:\n%s\n' "$ad"
24
+ exit 1
25
+ fi
26
+ - name: Check for added-and-modified images
27
+ run: |
28
+ git fetch --quiet origin "$GITHUB_BASE_REF"
29
+ base="$(git merge-base "origin/$GITHUB_BASE_REF" 'HEAD^2')"
30
+ am="$(git log "$base..HEAD^2" --pretty=tformat: --name-status --diff-filter=AM |
31
+ cut --fields 2 | sort | uniq --repeated |
32
+ grep -E '\.(png|pdf|ps|eps|svg)' || true)"
33
+ if [[ -n "$am" ]]; then
34
+ printf 'The following images were both added and modified in this PR:\n%s\n' "$am"
35
+ exit 1
36
+ fi
37
+ - name: Check for invalid backports to -doc branches
38
+ if: endsWith(github.base_ref, '-doc')
39
+ run: |
40
+ git fetch --quiet origin "$GITHUB_BASE_REF"
41
+ base="$(git merge-base "origin/$GITHUB_BASE_REF" 'HEAD^2')"
42
+ lib="$(git log "$base..HEAD^2" --pretty=tformat: --name-status -- lib src |
43
+ cut --fields 2 | sort || true)"
44
+ if [[ -n "$lib" ]]; then
45
+ printf 'Changes to the following files have no effect and should not be backported:\n%s\n' "$lib"
46
+ exit 1
47
+ fi
48
+ - name: Check for branches opened against main
49
+ if: github.ref_name == 'main'
50
+ run: |
51
+ printf 'PR branch should not be main. See https://matplotlib.org/devdocs/devel/development_workflow.html#make-a-new-feature-branch'
52
+ exit 1
testbed/matplotlib__matplotlib/.github/workflows/codeql-analysis.yml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "CodeQL"
3
+
4
+ on:
5
+ push:
6
+ branches: [main, v*.x]
7
+ pull_request:
8
+ # The branches below must be a subset of the branches above
9
+ branches: [main]
10
+ schedule:
11
+ - cron: '45 19 * * 1'
12
+
13
+ jobs:
14
+ analyze:
15
+ name: Analyze
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ actions: read
19
+ contents: read
20
+ security-events: write
21
+
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ language: ['cpp', 'javascript', 'python']
26
+
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@v3
30
+
31
+ - name: Set up Python
32
+ uses: actions/setup-python@v4
33
+ if: matrix.language != 'javascript'
34
+ with:
35
+ python-version: '3.x'
36
+ - name: Install dependencies
37
+ if: matrix.language != 'javascript'
38
+ run: |
39
+ python -m pip install --upgrade pip setuptools wheel
40
+ # TODO: Use pip-tools instead when it supports build-system
41
+ # dependencies so we don't need another copy here.
42
+ # https://github.com/jazzband/pip-tools/pull/1681
43
+ python -m pip install --upgrade \
44
+ certifi contourpy cycler fonttools kiwisolver importlib_resources \
45
+ numpy packaging pillow pyparsing python-dateutil setuptools-scm \
46
+ pybind11
47
+ echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
48
+
49
+ - name: Initialize CodeQL
50
+ uses: github/codeql-action/init@v2
51
+ with:
52
+ languages: ${{ matrix.language }}
53
+ setup-python-dependencies: false
54
+
55
+ - name: Build compiled code
56
+ if: matrix.language == 'cpp'
57
+ run: |
58
+ mkdir ~/.cache/matplotlib
59
+ $CODEQL_PYTHON setup.py build
60
+
61
+ - name: Perform CodeQL Analysis
62
+ uses: github/codeql-action/analyze@v2
testbed/matplotlib__matplotlib/.github/workflows/conflictcheck.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "Maintenance"
3
+ on:
4
+ # So that PRs touching the same files as the push are updated
5
+ push:
6
+ # So that the `dirtyLabel` is removed if conflicts are resolve
7
+ # We recommend `pull_request_target` so that github secrets are available.
8
+ # In `pull_request` we wouldn't be able to change labels of fork PRs
9
+ pull_request_target:
10
+ types: [synchronize]
11
+
12
+ permissions:
13
+ pull-requests: write
14
+
15
+ jobs:
16
+ main:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Check if PRs have merge conflicts
20
+ uses: eps1lon/actions-label-merge-conflict@releases/2.x
21
+ with:
22
+ dirtyLabel: "status: needs rebase"
23
+ repoToken: "${{ secrets.GITHUB_TOKEN }}"
24
+ retryMax: 10
testbed/matplotlib__matplotlib/.github/workflows/cygwin.yml ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Cygwin Tests
3
+ concurrency:
4
+ group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
5
+ cancel-in-progress: true
6
+
7
+ on:
8
+ push:
9
+ branches:
10
+ - main
11
+ - v[0-9]+.[0-9]+.[0-9x]+
12
+ tags:
13
+ - v*
14
+ paths:
15
+ - 'src/**'
16
+ - '.github/workflows/cygwin.yml'
17
+ pull_request:
18
+ types:
19
+ - opened
20
+ - synchronize
21
+ - reopened
22
+ - labeled
23
+ branches-ignore:
24
+ - v[0-9]+.[0-9]+.[0-9x]+-doc
25
+ paths:
26
+ - 'src/**'
27
+ - '.github/workflows/cygwin.yml'
28
+ schedule:
29
+ # 5:47 UTC on Saturdays
30
+ - cron: "47 5 * * 6"
31
+ workflow_dispatch:
32
+ workflow: "*"
33
+
34
+ permissions:
35
+ contents: read
36
+
37
+ env:
38
+ NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
39
+ OPENBLAS_NUM_THREADS: 1
40
+ PYTHONFAULTHANDLER: 1
41
+ SHELLOPTS: igncr
42
+ CYGWIN_NOWINPATH: 1
43
+ CHERE_INVOKING: 1
44
+ TMP: /tmp
45
+ TEMP: /tmp
46
+
47
+ jobs:
48
+
49
+ test-cygwin:
50
+ runs-on: windows-latest
51
+ name: Python 3.${{ matrix.python-minor-version }} on Cygwin
52
+ if: |
53
+ github.event_name == 'workflow_dispatch' ||
54
+ github.event_name == 'schedule' ||
55
+ (
56
+ github.repository == 'matplotlib/matplotlib' &&
57
+ !contains(github.event.head_commit.message, '[ci skip]') &&
58
+ !contains(github.event.head_commit.message, '[skip ci]') &&
59
+ !contains(github.event.head_commit.message, '[skip github]') &&
60
+ !contains(github.event.head_commit.message, '[ci doc]') &&
61
+ (
62
+ github.event_name == 'push' ||
63
+ github.event_name == 'pull_request' &&
64
+ (
65
+ (
66
+ github.event.action == 'labeled' &&
67
+ github.event.label.name == 'CI: Run cygwin'
68
+ ) ||
69
+ contains(github.event.pull_request.labels.*.name, 'CI: Run cygwin')
70
+ )
71
+ )
72
+ )
73
+ strategy:
74
+ matrix:
75
+ python-minor-version: [9]
76
+
77
+ steps:
78
+ - name: Fix line endings
79
+ run: git config --global core.autocrlf input
80
+
81
+ - uses: actions/checkout@v3
82
+ with:
83
+ fetch-depth: 0
84
+
85
+ - uses: cygwin/cygwin-install-action@v4
86
+ with:
87
+ packages: >-
88
+ ccache gcc-g++ gdb git graphviz libcairo-devel libffi-devel
89
+ libgeos-devel libQt5Core-devel pkgconf libglib2.0-devel ninja
90
+ noto-cjk-fonts
91
+ python3${{ matrix.python-minor-version }}-devel
92
+ python3${{ matrix.python-minor-version }}-pip
93
+ python3${{ matrix.python-minor-version }}-wheel
94
+ python3${{ matrix.python-minor-version }}-setuptools
95
+ python3${{ matrix.python-minor-version }}-cycler
96
+ python3${{ matrix.python-minor-version }}-dateutil
97
+ python3${{ matrix.python-minor-version }}-fonttools
98
+ python3${{ matrix.python-minor-version }}-imaging
99
+ python3${{ matrix.python-minor-version }}-kiwisolver
100
+ python3${{ matrix.python-minor-version }}-numpy
101
+ python3${{ matrix.python-minor-version }}-packaging
102
+ python3${{ matrix.python-minor-version }}-pyparsing
103
+ python3${{ matrix.python-minor-version }}-sip
104
+ python3${{ matrix.python-minor-version }}-sphinx
105
+ python-cairo-devel
106
+ python3${{ matrix.python-minor-version }}-cairo
107
+ python3${{ matrix.python-minor-version }}-gi
108
+ python3${{ matrix.python-minor-version }}-matplotlib
109
+ xorg-server-extra libxcb-icccm4 libxcb-image0
110
+ libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
111
+ libxcb-xinerama0
112
+ make autoconf autoconf2.5 automake automake1.10 libtool m4
113
+ libqhull-devel libfreetype-devel
114
+ libjpeg-devel libwebp-devel
115
+
116
+ - name: Set runner username to root and id to 0
117
+ shell: bash.exe -eo pipefail -o igncr "{0}"
118
+ # GitHub Actions runs everything as Administrator. I don't
119
+ # know how to test for this, so set the uid for the CI job so
120
+ # that the existing unix root detection will work.
121
+ run: |
122
+ /bin/mkpasswd.exe -c | sed -e "s/$(id -u)/0/" >/etc/passwd
123
+
124
+ - name: Mark test repo safe
125
+ shell: bash.exe -eo pipefail -o igncr "{0}"
126
+ run: |
127
+ git.exe config --global --add safe.directory /proc/cygdrive/d/a/matplotlib/matplotlib
128
+ git config --global --add safe.directory /cygdrive/d/a/matplotlib/matplotlib
129
+ C:/cygwin/bin/git.exe config --global --add safe.directory D:/a/matplotlib/matplotlib
130
+ /usr/bin/git config --global --add safe.directory /cygdrive/d/a/matplotlib/matplotlib
131
+
132
+ - name: Use dash for /bin/sh
133
+ shell: bash.exe -eo pipefail -o igncr "{0}"
134
+ run: |
135
+ ls -l /bin/sh.exe /bin/bash.exe /bin/dash.exe
136
+ /bin/rm -f /bin/sh.exe || exit 1
137
+ cp -sf /bin/dash.exe /bin/sh.exe || exit 1
138
+ ls -l /bin/sh.exe /bin/bash.exe /bin/dash.exe
139
+ # FreeType build fails with bash, succeeds with dash
140
+
141
+ - name: Cache pip
142
+ uses: actions/cache@v3
143
+ with:
144
+ path: C:\cygwin\home\runneradmin\.cache\pip
145
+ key: Cygwin-py3.${{ matrix.python-minor-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
146
+ restore-keys: |
147
+ ${{ matrix.os }}-py3.${{ matrix.python-minor-version }}-pip-
148
+
149
+ - name: Cache ccache
150
+ uses: actions/cache@v3
151
+ with:
152
+ path: C:\cygwin\home\runneradmin\.ccache
153
+ key: Cygwin-py3.${{ matrix.python-minor-version }}-ccache-${{ hashFiles('src/*') }}
154
+ restore-keys: Cygwin-py3.${{ matrix.python-minor-version }}-ccache-
155
+
156
+ - name: Cache Matplotlib
157
+ uses: actions/cache@v3
158
+ with:
159
+ path: |
160
+ C:\cygwin\home\runneradmin\.cache\matplotlib
161
+ !C:\cygwin\home\runneradmin\.cache\matplotlib\tex.cache
162
+ !C:\cygwin\home\runneradmin\.cache\matplotlib\test_cache
163
+ key: 1-Cygwin-py3.${{ matrix.python-minor-version }}-mpl-${{ github.ref }}-${{ github.sha }}
164
+ restore-keys: |
165
+ 1-Cygwin-py3.${{ matrix.python-minor-version }}-mpl-${{ github.ref }}-
166
+ 1-Cygwin-py3.${{ matrix.python-minor-version }}-mpl-
167
+
168
+ - name: Ensure correct Python version
169
+ shell: bash.exe -eo pipefail -o igncr "{0}"
170
+ run: |
171
+ /usr/sbin/alternatives --set python /usr/bin/python3.${{ matrix.python-minor-version }}
172
+ /usr/sbin/alternatives --set python3 /usr/bin/python3.${{ matrix.python-minor-version }}
173
+
174
+ - name: Install Python dependencies
175
+ shell: bash.exe -eo pipefail -o igncr "{0}"
176
+ run: |
177
+ python -m pip install --upgrade pip 'setuptools<60' wheel
178
+ python -m pip install kiwisolver 'numpy!=1.21.*' pillow importlib_resources
179
+ grep -v -F -e psutil requirements/testing/all.txt >requirements_test.txt
180
+ python -m pip install meson-python pybind11
181
+ export PATH="/usr/local/bin:$PATH"
182
+ python -m pip install --no-build-isolation 'contourpy>=1.0.1'
183
+ python -m pip install --upgrade cycler fonttools \
184
+ packaging pyparsing python-dateutil setuptools-scm \
185
+ -r requirements_test.txt sphinx ipython
186
+ python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
187
+ python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
188
+ echo 'PyGObject is available' ||
189
+ echo 'PyGObject is not available'
190
+ python -m pip install --upgrade pyqt5 &&
191
+ python -c 'import PyQt5.QtCore' &&
192
+ echo 'PyQt5 is available' ||
193
+ echo 'PyQt5 is not available'
194
+ python -mpip install --upgrade pyside2 &&
195
+ python -c 'import PySide2.QtCore' &&
196
+ echo 'PySide2 is available' ||
197
+ echo 'PySide2 is not available'
198
+ python -m pip uninstall --yes wxpython || echo 'wxPython already uninstalled'
199
+
200
+ - name: Install Matplotlib
201
+ shell: bash.exe -eo pipefail -o igncr "{0}"
202
+ env:
203
+ AUTOCONF: /usr/bin/autoconf-2.69
204
+ MAKEFLAGS: dw
205
+ run: |
206
+ ccache -s
207
+ git describe
208
+ cat <<EOT >> mplsetup.cfg
209
+ [rc_options]
210
+ backend=Agg
211
+
212
+ [libs]
213
+ system_freetype = False
214
+ system_qhull = True
215
+ EOT
216
+ cat mplsetup.cfg
217
+ # All dependencies must have been pre-installed, so that the minver
218
+ # constraints are held.
219
+ python -m pip install --no-deps -ve .
220
+
221
+ - name: Find DLLs to rebase
222
+ shell: bash.exe -eo pipefail -o igncr "{0}"
223
+ run: |
224
+ find {/usr,/usr/local}/{bin,lib/python3.*/site-packages} /usr/lib/lapack . -name \*.exe -o -name \*.dll -print >files_to_rebase.txt
225
+
226
+ - name: Rebase DLL list
227
+ shell: ash.exe "{0}"
228
+ run: "rebase --database --filelist=files_to_rebase.txt"
229
+ # Inplace modification of DLLs to assign non-overlapping load
230
+ # addresses so fork() works as expected. Ash is used as it
231
+ # does not link against any Cygwin DLLs that might need to be
232
+ # rebased.
233
+
234
+ - name: Check that Matplotlib imports
235
+ shell: bash.exe -eo pipefail -o igncr "{0}"
236
+ run: |
237
+ /usr/bin/python -c "import matplotlib as mpl; import matplotlib.pyplot as plt"
238
+
239
+ - name: Set ffmpeg path
240
+ shell: bash.exe -eo pipefail -o igncr "{0}"
241
+ run: |
242
+ oldmplrc=$(python -c "from matplotlib import matplotlib_fname as mplrc_file; print(mplrc_file())")
243
+ echo "${oldmplrc}"
244
+ mkdir -p ~/.matplotlib/
245
+ sed -E -e 's~#animation\.ffmpeg_path:.+~animation.ffmpeg_path: /usr/bin/ffmpeg.exe~' "${oldmplrc}" >~/.matplotlib/matplotlibrc
246
+
247
+ - name: Run pytest
248
+ shell: bash.exe -eo pipefail -o igncr "{0}"
249
+ id: cygwin-run-pytest
250
+ run: |
251
+ xvfb-run python -mpytest -raR -n auto \
252
+ --maxfail=50 --timeout=300 --durations=25 \
253
+ --cov-report=xml --cov=lib --log-level=DEBUG --color=yes
254
+
255
+ - name: Upload code coverage
256
+ uses: codecov/codecov-action@v3
testbed/matplotlib__matplotlib/.github/workflows/good-first-issue.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Add comment on good first issues
2
+ on:
3
+ issues:
4
+ types:
5
+ - labeled
6
+ jobs:
7
+ add-comment:
8
+ if: github.event.label.name == 'Good first issue'
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ issues: write
12
+ steps:
13
+ - name: Add comment
14
+ uses: peter-evans/create-or-update-comment@v3
15
+ with:
16
+ issue-number: ${{ github.event.issue.number }}
17
+ body: |
18
+ ### Good first issue - notes for new contributors
19
+
20
+ This issue is suited to new contributors because it does not require understanding of the Matplotlib internals. To get started, please see our [contributing guide](https://matplotlib.org/stable/devel/index).
21
+
22
+ **We do not assign issues**. Check the *Development* section in the sidebar for linked pull requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please collaborate on the work by reviewing it rather than duplicating it in a competing PR.
23
+
24
+ If something is unclear, please reach out on any of our [communication channels](https://matplotlib.org/stable/devel/contributing.html#get-connected).
testbed/matplotlib__matplotlib/.github/workflows/mypy-stubtest.yml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Mypy Stubtest
3
+ on: [pull_request]
4
+
5
+ permissions:
6
+ contents: read
7
+ checks: write
8
+
9
+ jobs:
10
+ mypy-stubtest:
11
+ name: mypy-stubtest
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+
16
+ - name: Set up Python 3
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: 3.9
20
+
21
+ - name: Install mypy
22
+ run: |
23
+ pip3 install -r requirements/testing/mypy.txt \
24
+ -r requirements/testing/all.txt
25
+ pip3 install -e .
26
+
27
+ - name: Set up reviewdog
28
+ run: |
29
+ mkdir -p "$HOME/bin"
30
+ curl -sfL \
31
+ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
32
+ sh -s -- -b "$HOME/bin"
33
+ echo "$HOME/bin" >> $GITHUB_PATH
34
+
35
+ - name: Run mypy stubtest
36
+ env:
37
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
+ run: |
39
+ set -o pipefail
40
+ MPLBACKEND=agg python -m mypy.stubtest \
41
+ --mypy-config-file pyproject.toml \
42
+ --allowlist ci/mypy-stubtest-allowlist.txt \
43
+ matplotlib | \
44
+ reviewdog \
45
+ -efm '%Eerror: %m' \
46
+ -efm '%CStub: in file %f:%l' \
47
+ -efm '%CStub: in file %f' \
48
+ -efm '%+CRuntime:%.%#' \
49
+ -efm '%+CMISSING' \
50
+ -efm '%+Cdef %.%#' \
51
+ -efm '%+C<%.%#>' \
52
+ -efm '%Z' \
53
+ -reporter=github-check -tee -name=mypy-stubtest \
54
+ -filter-mode=nofilter
testbed/matplotlib__matplotlib/.github/workflows/nightlies.yml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Upload nightly wheels to Anaconda Cloud
3
+
4
+ on:
5
+ # Run daily at 1:23 UTC to upload nightly wheels to Anaconda Cloud
6
+ schedule:
7
+ - cron: '23 1 * * *'
8
+ # Run on demand with workflow dispatch
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ actions: read
13
+
14
+ jobs:
15
+ upload_nightly_wheels:
16
+ name: Upload nightly wheels to Anaconda Cloud
17
+ runs-on: ubuntu-latest
18
+ defaults:
19
+ run:
20
+ # The login shell is necessary for the setup-micromamba setup
21
+ # to work in subsequent jobs.
22
+ # https://github.com/mamba-org/setup-micromamba#about-login-shells
23
+ shell: bash -e -l {0}
24
+ if: github.repository_owner == 'matplotlib'
25
+
26
+ steps:
27
+ # https://github.com/actions/download-artifact/issues/3#issuecomment-1017141067
28
+ - name: Download wheel artifacts from last build on 'main'
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
+ run: |
32
+ PROJECT_REPO="matplotlib/matplotlib"
33
+ BRANCH="main"
34
+ WORKFLOW_NAME="cibuildwheel.yml"
35
+ ARTIFACT_NAME="wheels"
36
+
37
+ gh run --repo "${PROJECT_REPO}" \
38
+ list --branch "${BRANCH}" \
39
+ --workflow "${WORKFLOW_NAME}" \
40
+ --json event,status,conclusion,databaseId > runs.json
41
+ RUN_ID=$(
42
+ jq --compact-output \
43
+ '[
44
+ .[] |
45
+ # Filter on "push" events to main (merged PRs) ...
46
+ select(.event == "push") |
47
+ # that have completed successfully ...
48
+ select(.status == "completed" and .conclusion == "success")
49
+ ] |
50
+ # and get ID of latest build of wheels.
51
+ sort_by(.databaseId) | reverse | .[0].databaseId' runs.json
52
+ )
53
+ gh run --repo "${PROJECT_REPO}" view "${RUN_ID}"
54
+ gh run --repo "${PROJECT_REPO}" \
55
+ download "${RUN_ID}" --name "${ARTIFACT_NAME}"
56
+
57
+ mkdir dist
58
+ mv *.whl dist/
59
+ ls -l dist/
60
+
61
+ - name: Upload wheels to Anaconda Cloud as nightlies
62
+ uses: scientific-python/upload-nightly-action@8f0394fd2aa0c85d7364a9958652e8994e06b23c # 0.1.0
63
+ with:
64
+ artifacts_path: dist
65
+ anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
testbed/matplotlib__matplotlib/.github/workflows/pr_welcome.yml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: PR Greetings
3
+
4
+ on: [pull_request_target]
5
+
6
+ permissions:
7
+ pull-requests: write
8
+
9
+ jobs:
10
+ greeting:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/first-interaction@v1
15
+ with:
16
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
17
+ pr-message: >+
18
+ Thank you for opening your first PR into Matplotlib!
19
+
20
+
21
+ If you have not heard from us in a week or so, please leave a new
22
+ comment below and that should bring it to our attention.
23
+ Most of our reviewers are volunteers and sometimes things fall
24
+ through the cracks.
25
+
26
+
27
+ You can also join us [on
28
+ gitter](https://gitter.im/matplotlib/matplotlib) for real-time
29
+ discussion.
30
+
31
+
32
+ For details on testing, writing docs, and our review process,
33
+ please see [the developer
34
+ guide](https://matplotlib.org/devdocs/devel/index.html)
35
+
36
+
37
+ We strive to be a welcoming and open project. Please follow our
38
+ [Code of
39
+ Conduct](https://github.com/matplotlib/matplotlib/blob/main/CODE_OF_CONDUCT.md).
testbed/matplotlib__matplotlib/.github/workflows/reviewdog.yml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Linting
3
+ on: [pull_request]
4
+
5
+ permissions:
6
+ contents: read
7
+ checks: write
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ flake8:
12
+ name: flake8
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+
17
+ - name: Set up Python 3
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: 3.9
21
+
22
+ - name: Install flake8
23
+ run: pip3 install -r requirements/testing/flake8.txt
24
+
25
+ - name: Set up reviewdog
26
+ run: |
27
+ mkdir -p "$HOME/bin"
28
+ curl -sfL \
29
+ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
30
+ sh -s -- -b "$HOME/bin"
31
+ echo "$HOME/bin" >> $GITHUB_PATH
32
+
33
+ - name: Run flake8
34
+ env:
35
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
+ run: |
37
+ set -o pipefail
38
+ flake8 --docstring-convention=all | \
39
+ reviewdog -f=pep8 -name=flake8 \
40
+ -tee -reporter=github-check -filter-mode nofilter
41
+ mypy:
42
+ name: mypy
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - uses: actions/checkout@v3
46
+
47
+ - name: Set up Python 3
48
+ uses: actions/setup-python@v4
49
+ with:
50
+ python-version: 3.9
51
+
52
+ - name: Install mypy
53
+ run: pip3 install -r requirements/testing/mypy.txt -r requirements/testing/all.txt
54
+
55
+ - name: Set up reviewdog
56
+ run: |
57
+ mkdir -p "$HOME/bin"
58
+ curl -sfL \
59
+ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
60
+ sh -s -- -b "$HOME/bin"
61
+ echo "$HOME/bin" >> $GITHUB_PATH
62
+
63
+ - name: Run mypy
64
+ env:
65
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66
+ run: |
67
+ set -o pipefail
68
+ # The --ignore-missing-imports can be removed when typed cycler is released and used
69
+ mypy --config pyproject.toml lib/matplotlib \
70
+ --ignore-missing-imports \
71
+ --follow-imports silent | \
72
+ reviewdog -f=mypy -name=mypy \
73
+ -tee -reporter=github-check -filter-mode nofilter
74
+
75
+
76
+ eslint:
77
+ name: eslint
78
+ runs-on: ubuntu-latest
79
+ steps:
80
+ - uses: actions/checkout@v3
81
+
82
+ - name: eslint
83
+ uses: reviewdog/action-eslint@v1
84
+ with:
85
+ filter_mode: nofilter
86
+ github_token: ${{ secrets.GITHUB_TOKEN }}
87
+ reporter: github-check
88
+ workdir: 'lib/matplotlib/backends/web_backend/'
testbed/matplotlib__matplotlib/.github/workflows/stale.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Label inactive PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '30 1 * * 1,3,5'
5
+
6
+ jobs:
7
+ stale:
8
+ if: github.repository == 'matplotlib/matplotlib'
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/stale@v8
12
+ with:
13
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
14
+ operations-per-run: 150
15
+ stale-pr-message: 'Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.'
16
+ stale-pr-label: "status: inactive"
17
+ days-before-pr-stale: 60
18
+ days-before-pr-close: -1
19
+ stale-issue-message: 'This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!'
20
+ stale-issue-label: "status: inactive"
21
+ close-issue-label: "status: closed as inactive"
22
+ days-before-issue-stale: 365
23
+ days-before-issue-close: 30
24
+ ascending: true
25
+ exempt-issue-labels: "keep"
26
+ exempt-pr-labels: "keep,status: orphaned PR"
testbed/matplotlib__matplotlib/.github/workflows/tests.yml ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Tests
3
+ concurrency:
4
+ group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
5
+ cancel-in-progress: true
6
+
7
+ on:
8
+ push:
9
+ branches-ignore:
10
+ - auto-backport-of-pr-[0-9]+
11
+ - v[0-9]+.[0-9]+.[0-9x]+-doc
12
+ pull_request:
13
+ branches-ignore:
14
+ - v[0-9]+.[0-9]+.[0-9x]+-doc
15
+ paths-ignore:
16
+ # Skip running tests if changes are only in documentation directories
17
+ - 'doc/**'
18
+ - 'galleries/**'
19
+ schedule:
20
+ # 5:47 UTC on Saturdays
21
+ - cron: "47 5 * * 6"
22
+ workflow_dispatch:
23
+ workflow: "*"
24
+
25
+ env:
26
+ NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
27
+ OPENBLAS_NUM_THREADS: 1
28
+ PYTHONFAULTHANDLER: 1
29
+
30
+ jobs:
31
+ test:
32
+ if: |
33
+ github.event_name == 'workflow_dispatch' ||
34
+ (
35
+ github.repository == 'matplotlib/matplotlib' &&
36
+ !contains(github.event.head_commit.message, '[ci skip]') &&
37
+ !contains(github.event.head_commit.message, '[skip ci]') &&
38
+ !contains(github.event.head_commit.message, '[skip github]') &&
39
+ !contains(github.event.head_commit.message, '[ci doc]')
40
+ )
41
+ permissions:
42
+ contents: read
43
+ name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.name-suffix }}"
44
+ runs-on: ${{ matrix.os }}
45
+
46
+ strategy:
47
+ fail-fast: false
48
+ matrix:
49
+ include:
50
+ - name-suffix: "(Minimum Versions)"
51
+ os: ubuntu-20.04
52
+ python-version: 3.9
53
+ extra-requirements: '-c requirements/testing/minver.txt'
54
+ pyqt5-ver: '==5.12.2 sip==5.0.0' # oldest versions with a Py3.9 wheel.
55
+ pyqt6-ver: '==6.1.0 PyQt6-Qt6==6.1.0'
56
+ pyside2-ver: '==5.15.1' # oldest version with working Py3.9 wheel.
57
+ pyside6-ver: '==6.0.0'
58
+ delete-font-cache: true
59
+ - os: ubuntu-20.04
60
+ python-version: 3.9
61
+ extra-requirements: '-r requirements/testing/extra.txt'
62
+ CFLAGS: "-fno-lto" # Ensure that disabling LTO works.
63
+ # https://github.com/matplotlib/matplotlib/pull/26052#issuecomment-1574595954
64
+ pyqt6-ver: '!=6.5.1'
65
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
66
+ pyside6-ver: '!=6.5.1'
67
+ - os: ubuntu-20.04
68
+ python-version: '3.10'
69
+ extra-requirements: '-r requirements/testing/extra.txt'
70
+ # https://github.com/matplotlib/matplotlib/pull/26052#issuecomment-1574595954
71
+ pyqt6-ver: '!=6.5.1'
72
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
73
+ pyside6-ver: '!=6.5.1'
74
+ - os: ubuntu-22.04
75
+ python-version: '3.11'
76
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
77
+ pyside6-ver: '!=6.5.1'
78
+ extra-requirements: '-r requirements/testing/extra.txt'
79
+ - os: macos-latest
80
+ python-version: 3.9
81
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
82
+ pyside6-ver: '!=6.5.1'
83
+
84
+ steps:
85
+ - uses: actions/checkout@v3
86
+ with:
87
+ fetch-depth: 0
88
+
89
+ - name: Set up Python ${{ matrix.python-version }}
90
+ uses: actions/setup-python@v4
91
+ with:
92
+ python-version: ${{ matrix.python-version }}
93
+
94
+ - name: Install OS dependencies
95
+ run: |
96
+ case "${{ runner.os }}" in
97
+ Linux)
98
+ echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
99
+ sudo apt-get update -yy
100
+ sudo apt-get install -yy \
101
+ ccache \
102
+ cm-super \
103
+ dvipng \
104
+ ffmpeg \
105
+ fonts-noto-cjk \
106
+ gdb \
107
+ gir1.2-gtk-3.0 \
108
+ graphviz \
109
+ inkscape \
110
+ lcov \
111
+ libcairo2 \
112
+ libcairo2-dev \
113
+ libffi-dev \
114
+ libgeos-dev \
115
+ libgirepository1.0-dev \
116
+ libsdl2-2.0-0 \
117
+ libxkbcommon-x11-0 \
118
+ libxcb-cursor0 \
119
+ libxcb-icccm4 \
120
+ libxcb-image0 \
121
+ libxcb-keysyms1 \
122
+ libxcb-randr0 \
123
+ libxcb-render-util0 \
124
+ libxcb-xinerama0 \
125
+ lmodern \
126
+ fonts-freefont-otf \
127
+ texlive-pictures \
128
+ pkg-config \
129
+ qtbase5-dev \
130
+ texlive-fonts-recommended \
131
+ texlive-latex-base \
132
+ texlive-latex-extra \
133
+ texlive-latex-recommended \
134
+ texlive-luatex \
135
+ texlive-xetex \
136
+ ttf-wqy-zenhei
137
+ if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
138
+ sudo apt-get install -yy libopengl0
139
+ else # ubuntu-22.04
140
+ sudo apt-get install -yy gir1.2-gtk-4.0 libnotify4
141
+ fi
142
+ ;;
143
+ macOS)
144
+ brew install ccache
145
+ brew tap homebrew/cask-fonts
146
+ brew install font-noto-sans-cjk
147
+ ;;
148
+ esac
149
+
150
+ - name: Cache pip
151
+ uses: actions/cache@v3
152
+ if: startsWith(runner.os, 'Linux')
153
+ with:
154
+ path: ~/.cache/pip
155
+ key: ${{ matrix.os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
156
+ restore-keys: |
157
+ ${{ matrix.os }}-py${{ matrix.python-version }}-pip-
158
+ - name: Cache pip
159
+ uses: actions/cache@v3
160
+ if: startsWith(runner.os, 'macOS')
161
+ with:
162
+ path: ~/Library/Caches/pip
163
+ key: ${{ matrix.os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
164
+ restore-keys: |
165
+ ${{ matrix.os }}-py${{ matrix.python-version }}-pip-
166
+ - name: Cache ccache
167
+ uses: actions/cache@v3
168
+ with:
169
+ path: |
170
+ ~/.ccache
171
+ key: ${{ matrix.os }}-py${{ matrix.python-version }}-ccache-${{ hashFiles('src/*') }}
172
+ restore-keys: |
173
+ ${{ matrix.os }}-py${{ matrix.python-version }}-ccache-
174
+ - name: Cache Matplotlib
175
+ uses: actions/cache@v3
176
+ with:
177
+ path: |
178
+ ~/.cache/matplotlib
179
+ !~/.cache/matplotlib/tex.cache
180
+ !~/.cache/matplotlib/test_cache
181
+ key: 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
182
+ restore-keys: |
183
+ 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
184
+ 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
185
+
186
+ - name: Install Python dependencies
187
+ run: |
188
+ # Upgrade pip and setuptools and wheel to get as clean an install as
189
+ # possible.
190
+ python -m pip install --upgrade pip setuptools wheel
191
+
192
+ # Install pre-release versions during our weekly upcoming dependency tests.
193
+ if [[ "${{ github.event_name == 'schedule' &&
194
+ matrix.name-suffix != '(Minimum Versions)' }}" = "true" ]]; then
195
+ PRE="--pre"
196
+ fi
197
+
198
+ # Install dependencies from PyPI.
199
+ python -m pip install --upgrade $PRE \
200
+ 'contourpy>=1.0.1' cycler fonttools kiwisolver importlib_resources \
201
+ numpy packaging pillow 'pyparsing!=3.1.0' python-dateutil setuptools-scm \
202
+ -r requirements/testing/all.txt \
203
+ ${{ matrix.extra-requirements }}
204
+
205
+ # Preinstall pybind11 on no-build-isolation builds.
206
+ if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
207
+ python -m pip install 'pybind11>=2.6'
208
+ fi
209
+
210
+ # Install optional dependencies from PyPI.
211
+ # Sphinx is needed to run sphinxext tests
212
+ python -m pip install --upgrade sphinx!=6.1.2
213
+
214
+ # GUI toolkits are pip-installable only for some versions of Python
215
+ # so don't fail if we can't install them. Make it easier to check
216
+ # whether the install was successful by trying to import the toolkit
217
+ # (sometimes, the install appears to be successful but shared
218
+ # libraries cannot be loaded at runtime, so an actual import is a
219
+ # better check).
220
+ # PyGObject, pycairo, and cariocffi do not install on OSX 10.12.
221
+ python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
222
+ python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
223
+ echo 'PyGObject is available' ||
224
+ echo 'PyGObject is not available'
225
+
226
+ # There are no functioning wheels available for OSX 10.12 (as of
227
+ # Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
228
+ # pyside2 (the latest version (5.13.2) with 10.12 wheels has a
229
+ # fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
230
+ python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
231
+ python -c 'import PyQt5.QtCore' &&
232
+ echo 'PyQt5 is available' ||
233
+ echo 'PyQt5 is not available'
234
+ if [[ "${{ runner.os }}" != 'macOS' ]]; then
235
+ python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
236
+ python -c 'import PySide2.QtCore' &&
237
+ echo 'PySide2 is available' ||
238
+ echo 'PySide2 is not available'
239
+ fi
240
+ if [[ "${{ runner.os }}" != 'macOS' ]]; then
241
+ python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
242
+ python -c 'import PyQt6.QtCore' &&
243
+ echo 'PyQt6 is available' ||
244
+ echo 'PyQt6 is not available'
245
+ python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
246
+ python -c 'import PySide6.QtCore' &&
247
+ echo 'PySide6 is available' ||
248
+ echo 'PySide6 is not available'
249
+ fi
250
+
251
+ python -mpip install --upgrade \
252
+ -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
253
+ wxPython &&
254
+ python -c 'import wx' &&
255
+ echo 'wxPython is available' ||
256
+ echo 'wxPython is not available'
257
+
258
+ - name: Install the nightly dependencies
259
+ # Only install the nightly dependencies during the scheduled event
260
+ if: |
261
+ github.event_name == 'schedule' &&
262
+ matrix.name-suffix != '(Minimum Versions)'
263
+ run: |
264
+ python -m pip install pytz tzdata # Must be installed for Pandas.
265
+ python -m pip install \
266
+ --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
267
+ --upgrade --only-binary=:all: numpy pandas
268
+
269
+ - name: Install Matplotlib
270
+ run: |
271
+ ccache -s
272
+ git describe
273
+
274
+ # Set flag in a delayed manner to avoid issues with installing other
275
+ # packages
276
+ if [[ "${{ runner.os }}" != 'macOS' ]]; then
277
+ if [[ "$(lsb_release -r -s)" == "20.04" ]]; then
278
+ export CPPFLAGS='--coverage -fprofile-abs-path'
279
+ else
280
+ export CPPFLAGS='--coverage'
281
+ fi
282
+ fi
283
+
284
+ cat <<EOT >> mplsetup.cfg
285
+ [rc_options]
286
+ backend=Agg
287
+ EOT
288
+
289
+ cat mplsetup.cfg
290
+
291
+ if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
292
+ # Minimum versions run does not use build isolation so that it
293
+ # builds against the pre-installed minver dependencies.
294
+ python -m pip install --no-deps --no-build-isolation -ve .
295
+ else
296
+ python -m pip install --no-deps -ve .
297
+ fi
298
+
299
+ if [[ "${{ runner.os }}" != 'macOS' ]]; then
300
+ unset CPPFLAGS
301
+ fi
302
+
303
+ - name: Clear font cache
304
+ run: |
305
+ rm -rf ~/.cache/matplotlib
306
+ if: matrix.delete-font-cache
307
+
308
+ - name: Run pytest
309
+ run: |
310
+ python -mpytest -raR -n auto \
311
+ --maxfail=50 --timeout=300 --durations=25 \
312
+ --cov-report=xml --cov=lib --log-level=DEBUG --color=yes
313
+
314
+ - name: Filter C coverage
315
+ run: |
316
+ lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info
317
+ lcov --rc lcov_branch_coverage=1 --output-file coverage.info \
318
+ --extract coverage.info $PWD/src/'*' $PWD/lib/'*'
319
+ lcov --rc lcov_branch_coverage=1 --list coverage.info
320
+ find . -name '*.gc*' -delete
321
+ if: ${{ runner.os != 'macOS' }}
322
+ - name: Upload code coverage
323
+ uses: codecov/codecov-action@v3
324
+
325
+ - uses: actions/upload-artifact@v3
326
+ if: failure()
327
+ with:
328
+ name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images"
329
+ path: ./result_images
330
+
331
+ # Separate dependent job to only upload one issue from the matrix of jobs
332
+ create-issue:
333
+ if: ${{ failure() && github.event_name == 'schedule' }}
334
+ needs: [test]
335
+ permissions:
336
+ issues: write
337
+ runs-on: ubuntu-latest
338
+ name: "Create issue on failure"
339
+
340
+ steps:
341
+ - name: Create issue on failure
342
+ uses: imjohnbo/issue-bot@v3
343
+ with:
344
+ title: "[TST] Upcoming dependency test failures"
345
+ body: |
346
+ The weekly build with nightly wheels from numpy and pandas
347
+ has failed. Check the logs for any updates that need to be
348
+ made in matplotlib.
349
+ https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
350
+
351
+ pinned: false
352
+ close-previous: false
353
+ env:
354
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
testbed/matplotlib__matplotlib/LICENSE/LICENSE ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ License agreement for matplotlib versions 1.3.0 and later
2
+ =========================================================
3
+
4
+ 1. This LICENSE AGREEMENT is between the Matplotlib Development Team
5
+ ("MDT"), and the Individual or Organization ("Licensee") accessing and
6
+ otherwise using matplotlib software in source or binary form and its
7
+ associated documentation.
8
+
9
+ 2. Subject to the terms and conditions of this License Agreement, MDT
10
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide license
11
+ to reproduce, analyze, test, perform and/or display publicly, prepare
12
+ derivative works, distribute, and otherwise use matplotlib
13
+ alone or in any derivative version, provided, however, that MDT's
14
+ License Agreement and MDT's notice of copyright, i.e., "Copyright (c)
15
+ 2012- Matplotlib Development Team; All Rights Reserved" are retained in
16
+ matplotlib alone or in any derivative version prepared by
17
+ Licensee.
18
+
19
+ 3. In the event Licensee prepares a derivative work that is based on or
20
+ incorporates matplotlib or any part thereof, and wants to
21
+ make the derivative work available to others as provided herein, then
22
+ Licensee hereby agrees to include in any such work a brief summary of
23
+ the changes made to matplotlib .
24
+
25
+ 4. MDT is making matplotlib available to Licensee on an "AS
26
+ IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
27
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND
28
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
29
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB
30
+ WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
31
+
32
+ 5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
33
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
34
+ LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35
+ MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
36
+ THE POSSIBILITY THEREOF.
37
+
38
+ 6. This License Agreement will automatically terminate upon a material
39
+ breach of its terms and conditions.
40
+
41
+ 7. Nothing in this License Agreement shall be deemed to create any
42
+ relationship of agency, partnership, or joint venture between MDT and
43
+ Licensee. This License Agreement does not grant permission to use MDT
44
+ trademarks or trade name in a trademark sense to endorse or promote
45
+ products or services of Licensee, or any third party.
46
+
47
+ 8. By copying, installing or otherwise using matplotlib ,
48
+ Licensee agrees to be bound by the terms and conditions of this License
49
+ Agreement.
50
+
51
+ License agreement for matplotlib versions prior to 1.3.0
52
+ ========================================================
53
+
54
+ 1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the
55
+ Individual or Organization ("Licensee") accessing and otherwise using
56
+ matplotlib software in source or binary form and its associated
57
+ documentation.
58
+
59
+ 2. Subject to the terms and conditions of this License Agreement, JDH
60
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide license
61
+ to reproduce, analyze, test, perform and/or display publicly, prepare
62
+ derivative works, distribute, and otherwise use matplotlib
63
+ alone or in any derivative version, provided, however, that JDH's
64
+ License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
65
+ 2002-2011 John D. Hunter; All Rights Reserved" are retained in
66
+ matplotlib alone or in any derivative version prepared by
67
+ Licensee.
68
+
69
+ 3. In the event Licensee prepares a derivative work that is based on or
70
+ incorporates matplotlib or any part thereof, and wants to
71
+ make the derivative work available to others as provided herein, then
72
+ Licensee hereby agrees to include in any such work a brief summary of
73
+ the changes made to matplotlib.
74
+
75
+ 4. JDH is making matplotlib available to Licensee on an "AS
76
+ IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
77
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
78
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
79
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB
80
+ WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
81
+
82
+ 5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
83
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
84
+ LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
85
+ MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
86
+ THE POSSIBILITY THEREOF.
87
+
88
+ 6. This License Agreement will automatically terminate upon a material
89
+ breach of its terms and conditions.
90
+
91
+ 7. Nothing in this License Agreement shall be deemed to create any
92
+ relationship of agency, partnership, or joint venture between JDH and
93
+ Licensee. This License Agreement does not grant permission to use JDH
94
+ trademarks or trade name in a trademark sense to endorse or promote
95
+ products or services of Licensee, or any third party.
96
+
97
+ 8. By copying, installing or otherwise using matplotlib,
98
+ Licensee agrees to be bound by the terms and conditions of this License
99
+ Agreement.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_AMSFONTS ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The cmr10.pfb file is a Type-1 version of one of Knuth's Computer Modern fonts.
2
+ It is included here as test data only, but the following license applies.
3
+
4
+ Copyright (c) 1997, 2009, American Mathematical Society (http://www.ams.org).
5
+ All Rights Reserved.
6
+
7
+ "cmb10" is a Reserved Font Name for this Font Software.
8
+ "cmbsy10" is a Reserved Font Name for this Font Software.
9
+ "cmbsy5" is a Reserved Font Name for this Font Software.
10
+ "cmbsy6" is a Reserved Font Name for this Font Software.
11
+ "cmbsy7" is a Reserved Font Name for this Font Software.
12
+ "cmbsy8" is a Reserved Font Name for this Font Software.
13
+ "cmbsy9" is a Reserved Font Name for this Font Software.
14
+ "cmbx10" is a Reserved Font Name for this Font Software.
15
+ "cmbx12" is a Reserved Font Name for this Font Software.
16
+ "cmbx5" is a Reserved Font Name for this Font Software.
17
+ "cmbx6" is a Reserved Font Name for this Font Software.
18
+ "cmbx7" is a Reserved Font Name for this Font Software.
19
+ "cmbx8" is a Reserved Font Name for this Font Software.
20
+ "cmbx9" is a Reserved Font Name for this Font Software.
21
+ "cmbxsl10" is a Reserved Font Name for this Font Software.
22
+ "cmbxti10" is a Reserved Font Name for this Font Software.
23
+ "cmcsc10" is a Reserved Font Name for this Font Software.
24
+ "cmcsc8" is a Reserved Font Name for this Font Software.
25
+ "cmcsc9" is a Reserved Font Name for this Font Software.
26
+ "cmdunh10" is a Reserved Font Name for this Font Software.
27
+ "cmex10" is a Reserved Font Name for this Font Software.
28
+ "cmex7" is a Reserved Font Name for this Font Software.
29
+ "cmex8" is a Reserved Font Name for this Font Software.
30
+ "cmex9" is a Reserved Font Name for this Font Software.
31
+ "cmff10" is a Reserved Font Name for this Font Software.
32
+ "cmfi10" is a Reserved Font Name for this Font Software.
33
+ "cmfib8" is a Reserved Font Name for this Font Software.
34
+ "cminch" is a Reserved Font Name for this Font Software.
35
+ "cmitt10" is a Reserved Font Name for this Font Software.
36
+ "cmmi10" is a Reserved Font Name for this Font Software.
37
+ "cmmi12" is a Reserved Font Name for this Font Software.
38
+ "cmmi5" is a Reserved Font Name for this Font Software.
39
+ "cmmi6" is a Reserved Font Name for this Font Software.
40
+ "cmmi7" is a Reserved Font Name for this Font Software.
41
+ "cmmi8" is a Reserved Font Name for this Font Software.
42
+ "cmmi9" is a Reserved Font Name for this Font Software.
43
+ "cmmib10" is a Reserved Font Name for this Font Software.
44
+ "cmmib5" is a Reserved Font Name for this Font Software.
45
+ "cmmib6" is a Reserved Font Name for this Font Software.
46
+ "cmmib7" is a Reserved Font Name for this Font Software.
47
+ "cmmib8" is a Reserved Font Name for this Font Software.
48
+ "cmmib9" is a Reserved Font Name for this Font Software.
49
+ "cmr10" is a Reserved Font Name for this Font Software.
50
+ "cmr12" is a Reserved Font Name for this Font Software.
51
+ "cmr17" is a Reserved Font Name for this Font Software.
52
+ "cmr5" is a Reserved Font Name for this Font Software.
53
+ "cmr6" is a Reserved Font Name for this Font Software.
54
+ "cmr7" is a Reserved Font Name for this Font Software.
55
+ "cmr8" is a Reserved Font Name for this Font Software.
56
+ "cmr9" is a Reserved Font Name for this Font Software.
57
+ "cmsl10" is a Reserved Font Name for this Font Software.
58
+ "cmsl12" is a Reserved Font Name for this Font Software.
59
+ "cmsl8" is a Reserved Font Name for this Font Software.
60
+ "cmsl9" is a Reserved Font Name for this Font Software.
61
+ "cmsltt10" is a Reserved Font Name for this Font Software.
62
+ "cmss10" is a Reserved Font Name for this Font Software.
63
+ "cmss12" is a Reserved Font Name for this Font Software.
64
+ "cmss17" is a Reserved Font Name for this Font Software.
65
+ "cmss8" is a Reserved Font Name for this Font Software.
66
+ "cmss9" is a Reserved Font Name for this Font Software.
67
+ "cmssbx10" is a Reserved Font Name for this Font Software.
68
+ "cmssdc10" is a Reserved Font Name for this Font Software.
69
+ "cmssi10" is a Reserved Font Name for this Font Software.
70
+ "cmssi12" is a Reserved Font Name for this Font Software.
71
+ "cmssi17" is a Reserved Font Name for this Font Software.
72
+ "cmssi8" is a Reserved Font Name for this Font Software.
73
+ "cmssi9" is a Reserved Font Name for this Font Software.
74
+ "cmssq8" is a Reserved Font Name for this Font Software.
75
+ "cmssqi8" is a Reserved Font Name for this Font Software.
76
+ "cmsy10" is a Reserved Font Name for this Font Software.
77
+ "cmsy5" is a Reserved Font Name for this Font Software.
78
+ "cmsy6" is a Reserved Font Name for this Font Software.
79
+ "cmsy7" is a Reserved Font Name for this Font Software.
80
+ "cmsy8" is a Reserved Font Name for this Font Software.
81
+ "cmsy9" is a Reserved Font Name for this Font Software.
82
+ "cmtcsc10" is a Reserved Font Name for this Font Software.
83
+ "cmtex10" is a Reserved Font Name for this Font Software.
84
+ "cmtex8" is a Reserved Font Name for this Font Software.
85
+ "cmtex9" is a Reserved Font Name for this Font Software.
86
+ "cmti10" is a Reserved Font Name for this Font Software.
87
+ "cmti12" is a Reserved Font Name for this Font Software.
88
+ "cmti7" is a Reserved Font Name for this Font Software.
89
+ "cmti8" is a Reserved Font Name for this Font Software.
90
+ "cmti9" is a Reserved Font Name for this Font Software.
91
+ "cmtt10" is a Reserved Font Name for this Font Software.
92
+ "cmtt12" is a Reserved Font Name for this Font Software.
93
+ "cmtt8" is a Reserved Font Name for this Font Software.
94
+ "cmtt9" is a Reserved Font Name for this Font Software.
95
+ "cmu10" is a Reserved Font Name for this Font Software.
96
+ "cmvtt10" is a Reserved Font Name for this Font Software.
97
+ "euex10" is a Reserved Font Name for this Font Software.
98
+ "euex7" is a Reserved Font Name for this Font Software.
99
+ "euex8" is a Reserved Font Name for this Font Software.
100
+ "euex9" is a Reserved Font Name for this Font Software.
101
+ "eufb10" is a Reserved Font Name for this Font Software.
102
+ "eufb5" is a Reserved Font Name for this Font Software.
103
+ "eufb7" is a Reserved Font Name for this Font Software.
104
+ "eufm10" is a Reserved Font Name for this Font Software.
105
+ "eufm5" is a Reserved Font Name for this Font Software.
106
+ "eufm7" is a Reserved Font Name for this Font Software.
107
+ "eurb10" is a Reserved Font Name for this Font Software.
108
+ "eurb5" is a Reserved Font Name for this Font Software.
109
+ "eurb7" is a Reserved Font Name for this Font Software.
110
+ "eurm10" is a Reserved Font Name for this Font Software.
111
+ "eurm5" is a Reserved Font Name for this Font Software.
112
+ "eurm7" is a Reserved Font Name for this Font Software.
113
+ "eusb10" is a Reserved Font Name for this Font Software.
114
+ "eusb5" is a Reserved Font Name for this Font Software.
115
+ "eusb7" is a Reserved Font Name for this Font Software.
116
+ "eusm10" is a Reserved Font Name for this Font Software.
117
+ "eusm5" is a Reserved Font Name for this Font Software.
118
+ "eusm7" is a Reserved Font Name for this Font Software.
119
+ "lasy10" is a Reserved Font Name for this Font Software.
120
+ "lasy5" is a Reserved Font Name for this Font Software.
121
+ "lasy6" is a Reserved Font Name for this Font Software.
122
+ "lasy7" is a Reserved Font Name for this Font Software.
123
+ "lasy8" is a Reserved Font Name for this Font Software.
124
+ "lasy9" is a Reserved Font Name for this Font Software.
125
+ "lasyb10" is a Reserved Font Name for this Font Software.
126
+ "lcircle1" is a Reserved Font Name for this Font Software.
127
+ "lcirclew" is a Reserved Font Name for this Font Software.
128
+ "lcmss8" is a Reserved Font Name for this Font Software.
129
+ "lcmssb8" is a Reserved Font Name for this Font Software.
130
+ "lcmssi8" is a Reserved Font Name for this Font Software.
131
+ "line10" is a Reserved Font Name for this Font Software.
132
+ "linew10" is a Reserved Font Name for this Font Software.
133
+ "msam10" is a Reserved Font Name for this Font Software.
134
+ "msam5" is a Reserved Font Name for this Font Software.
135
+ "msam6" is a Reserved Font Name for this Font Software.
136
+ "msam7" is a Reserved Font Name for this Font Software.
137
+ "msam8" is a Reserved Font Name for this Font Software.
138
+ "msam9" is a Reserved Font Name for this Font Software.
139
+ "msbm10" is a Reserved Font Name for this Font Software.
140
+ "msbm5" is a Reserved Font Name for this Font Software.
141
+ "msbm6" is a Reserved Font Name for this Font Software.
142
+ "msbm7" is a Reserved Font Name for this Font Software.
143
+ "msbm8" is a Reserved Font Name for this Font Software.
144
+ "msbm9" is a Reserved Font Name for this Font Software.
145
+ "wncyb10" is a Reserved Font Name for this Font Software.
146
+ "wncyi10" is a Reserved Font Name for this Font Software.
147
+ "wncyr10" is a Reserved Font Name for this Font Software.
148
+ "wncysc10" is a Reserved Font Name for this Font Software.
149
+ "wncyss10" is a Reserved Font Name for this Font Software.
150
+
151
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
152
+ This license is copied below, and is also available with a FAQ at:
153
+ http://scripts.sil.org/OFL
154
+
155
+ -----------------------------------------------------------
156
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
157
+ -----------------------------------------------------------
158
+
159
+ PREAMBLE
160
+ The goals of the Open Font License (OFL) are to stimulate worldwide
161
+ development of collaborative font projects, to support the font creation
162
+ efforts of academic and linguistic communities, and to provide a free and
163
+ open framework in which fonts may be shared and improved in partnership
164
+ with others.
165
+
166
+ The OFL allows the licensed fonts to be used, studied, modified and
167
+ redistributed freely as long as they are not sold by themselves. The
168
+ fonts, including any derivative works, can be bundled, embedded,
169
+ redistributed and/or sold with any software provided that any reserved
170
+ names are not used by derivative works. The fonts and derivatives,
171
+ however, cannot be released under any other type of license. The
172
+ requirement for fonts to remain under this license does not apply
173
+ to any document created using the fonts or their derivatives.
174
+
175
+ DEFINITIONS
176
+ "Font Software" refers to the set of files released by the Copyright
177
+ Holder(s) under this license and clearly marked as such. This may
178
+ include source files, build scripts and documentation.
179
+
180
+ "Reserved Font Name" refers to any names specified as such after the
181
+ copyright statement(s).
182
+
183
+ "Original Version" refers to the collection of Font Software components as
184
+ distributed by the Copyright Holder(s).
185
+
186
+ "Modified Version" refers to any derivative made by adding to, deleting,
187
+ or substituting -- in part or in whole -- any of the components of the
188
+ Original Version, by changing formats or by porting the Font Software to a
189
+ new environment.
190
+
191
+ "Author" refers to any designer, engineer, programmer, technical
192
+ writer or other person who contributed to the Font Software.
193
+
194
+ PERMISSION & CONDITIONS
195
+ Permission is hereby granted, free of charge, to any person obtaining
196
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
197
+ redistribute, and sell modified and unmodified copies of the Font
198
+ Software, subject to the following conditions:
199
+
200
+ 1) Neither the Font Software nor any of its individual components,
201
+ in Original or Modified Versions, may be sold by itself.
202
+
203
+ 2) Original or Modified Versions of the Font Software may be bundled,
204
+ redistributed and/or sold with any software, provided that each copy
205
+ contains the above copyright notice and this license. These can be
206
+ included either as stand-alone text files, human-readable headers or
207
+ in the appropriate machine-readable metadata fields within text or
208
+ binary files as long as those fields can be easily viewed by the user.
209
+
210
+ 3) No Modified Version of the Font Software may use the Reserved Font
211
+ Name(s) unless explicit written permission is granted by the corresponding
212
+ Copyright Holder. This restriction only applies to the primary font name as
213
+ presented to the users.
214
+
215
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
216
+ Software shall not be used to promote, endorse or advertise any
217
+ Modified Version, except to acknowledge the contribution(s) of the
218
+ Copyright Holder(s) and the Author(s) or with their explicit written
219
+ permission.
220
+
221
+ 5) The Font Software, modified or unmodified, in part or in whole,
222
+ must be distributed entirely under this license, and must not be
223
+ distributed under any other license. The requirement for fonts to
224
+ remain under this license does not apply to any document created
225
+ using the Font Software.
226
+
227
+ TERMINATION
228
+ This license becomes null and void if any of the above conditions are
229
+ not met.
230
+
231
+ DISCLAIMER
232
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
233
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
234
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
235
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
236
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
237
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
238
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
239
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
240
+ OTHER DEALINGS IN THE FONT SOFTWARE.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_BAKOMA ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ BaKoMa Fonts Licence
3
+ --------------------
4
+
5
+ This licence covers two font packs (known as BaKoMa Fonts Collection,
6
+ which is available at `CTAN:fonts/cm/ps-type1/bakoma/'):
7
+
8
+ 1) BaKoMa-CM (1.1/12-Nov-94)
9
+ Computer Modern Fonts in PostScript Type 1 and TrueType font formats.
10
+
11
+ 2) BaKoMa-AMS (1.2/19-Jan-95)
12
+ AMS TeX fonts in PostScript Type 1 and TrueType font formats.
13
+
14
+ Copyright (C) 1994, 1995, Basil K. Malyshev. All Rights Reserved.
15
+
16
+ Permission to copy and distribute these fonts for any purpose is
17
+ hereby granted without fee, provided that the above copyright notice,
18
+ author statement and this permission notice appear in all copies of
19
+ these fonts and related documentation.
20
+
21
+ Permission to modify and distribute modified fonts for any purpose is
22
+ hereby granted without fee, provided that the copyright notice,
23
+ author statement, this permission notice and location of original
24
+ fonts (http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma)
25
+ appear in all copies of modified fonts and related documentation.
26
+
27
+ Permission to use these fonts (embedding into PostScript, PDF, SVG
28
+ and printing by using any software) is hereby granted without fee.
29
+ It is not required to provide any notices about using these fonts.
30
+
31
+ Basil K. Malyshev
32
+ INSTITUTE FOR HIGH ENERGY PHYSICS
33
+ IHEP, OMVT
34
+ Moscow Region
35
+ 142281 PROTVINO
36
+ RUSSIA
37
+
38
+ E-Mail: bakoma@mail.ru
39
+ or malyshev@mail.ihep.ru
40
+
testbed/matplotlib__matplotlib/LICENSE/LICENSE_CARLOGO ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ----> we renamed carlito -> carlogo to comply with the terms <----
2
+
3
+ Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Carlito".
4
+
5
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
6
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14
+
15
+ The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16
+
17
+ DEFINITIONS
18
+ "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19
+
20
+ "Reserved Font Name" refers to any names specified as such after the copyright statement(s).
21
+
22
+ "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23
+
24
+ "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25
+
26
+ "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27
+
28
+ PERMISSION & CONDITIONS
29
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30
+
31
+ 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32
+
33
+ 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34
+
35
+ 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36
+
37
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38
+
39
+ 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40
+
41
+ TERMINATION
42
+ This license becomes null and void if any of the above conditions are not met.
43
+
44
+ DISCLAIMER
45
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_COLORBREWER ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes
2
+
3
+ Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed
11
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
13
+ specific language governing permissions and limitations under the License.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_COURIERTEN ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Courier10PitchBT-Bold.pfb file is a Type-1 version of
2
+ Courier 10 Pitch BT Bold by Bitstream, obtained from
3
+ <https://ctan.org/tex-archive/fonts/courierten>. It is included
4
+ here as test data only, but the following license applies.
5
+
6
+
7
+ (c) Copyright 1989-1992, Bitstream Inc., Cambridge, MA.
8
+
9
+ You are hereby granted permission under all Bitstream propriety rights
10
+ to use, copy, modify, sublicense, sell, and redistribute the 4 Bitstream
11
+ Charter (r) Type 1 outline fonts and the 4 Courier Type 1 outline fonts
12
+ for any purpose and without restriction; provided, that this notice is
13
+ left intact on all copies of such fonts and that Bitstream's trademark
14
+ is acknowledged as shown below on all unmodified copies of the 4 Charter
15
+ Type 1 fonts.
16
+
17
+ BITSTREAM CHARTER is a registered trademark of Bitstream Inc.
18
+
testbed/matplotlib__matplotlib/LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CC0 1.0 Universal
2
+
3
+ ## Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an “owner”) of an original work of
8
+ authorship and/or a database (each, a “Work”).
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific works
12
+ (“Commons”) that the public can reliably and without fear of later claims of
13
+ infringement build upon, modify, incorporate in other works, reuse and
14
+ redistribute as freely as possible in any form whatsoever and for any purposes,
15
+ including without limitation commercial purposes. These owners may contribute
16
+ to the Commons to promote the ideal of a free culture and the further
17
+ production of creative, cultural and scientific works, or to gain reputation or
18
+ greater distribution for their Work in part through the use and efforts of
19
+ others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation of
22
+ additional consideration or compensation, the person associating CC0 with a
23
+ Work (the “Affirmer”), to the extent that he or she is an owner of Copyright
24
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
25
+ publicly distribute the Work under its terms, with knowledge of his or her
26
+ Copyright and Related Rights in the Work and the meaning and intended legal
27
+ effect of CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights (“Copyright and
31
+ Related Rights”). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate,
34
+ and translate a Work;
35
+ 2. moral rights retained by the original author(s) and/or performer(s);
36
+ 3. publicity and privacy rights pertaining to a person’s image or likeness
37
+ depicted in a Work;
38
+ 4. rights protecting against unfair competition in regards to a Work,
39
+ subject to the limitations in paragraph 4(i), below;
40
+ 5. rights protecting the extraction, dissemination, use and reuse of data in
41
+ a Work;
42
+ 6. database rights (such as those arising under Directive 96/9/EC of the
43
+ European Parliament and of the Council of 11 March 1996 on the legal
44
+ protection of databases, and under any national implementation thereof,
45
+ including any amended or successor version of such directive); and
46
+ 7. other similar, equivalent or corresponding rights throughout the world
47
+ based on applicable law or treaty, and any national implementations
48
+ thereof.
49
+
50
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
51
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
52
+ unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright
53
+ and Related Rights and associated claims and causes of action, whether now
54
+ known or unknown (including existing as well as future claims and causes of
55
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
56
+ duration provided by applicable law or treaty (including future time
57
+ extensions), (iii) in any current or future medium and for any number of
58
+ copies, and (iv) for any purpose whatsoever, including without limitation
59
+ commercial, advertising or promotional purposes (the “Waiver”). Affirmer
60
+ makes the Waiver for the benefit of each member of the public at large and
61
+ to the detriment of Affirmer’s heirs and successors, fully intending that
62
+ such Waiver shall not be subject to revocation, rescission, cancellation,
63
+ termination, or any other legal or equitable action to disrupt the quiet
64
+ enjoyment of the Work by the public as contemplated by Affirmer’s express
65
+ Statement of Purpose.
66
+
67
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
68
+ judged legally invalid or ineffective under applicable law, then the Waiver
69
+ shall be preserved to the maximum extent permitted taking into account
70
+ Affirmer’s express Statement of Purpose. In addition, to the extent the
71
+ Waiver is so judged Affirmer hereby grants to each affected person a
72
+ royalty-free, non transferable, non sublicensable, non exclusive,
73
+ irrevocable and unconditional license to exercise Affirmer’s Copyright and
74
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
75
+ maximum duration provided by applicable law or treaty (including future time
76
+ extensions), (iii) in any current or future medium and for any number of
77
+ copies, and (iv) for any purpose whatsoever, including without limitation
78
+ commercial, advertising or promotional purposes (the “License”). The License
79
+ shall be deemed effective as of the date CC0 was applied by Affirmer to the
80
+ Work. Should any part of the License for any reason be judged legally
81
+ invalid or ineffective under applicable law, such partial invalidity or
82
+ ineffectiveness shall not invalidate the remainder of the License, and in
83
+ such case Affirmer hereby affirms that he or she will not (i) exercise any
84
+ of his or her remaining Copyright and Related Rights in the Work or (ii)
85
+ assert any associated claims and causes of action with respect to the Work,
86
+ in either case contrary to Affirmer’s express Statement of Purpose.
87
+
88
+ 4. Limitations and Disclaimers.
89
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned,
90
+ surrendered, licensed or otherwise affected by this document.
91
+ 2. Affirmer offers the Work as-is and makes no representations or warranties
92
+ of any kind concerning the Work, express, implied, statutory or
93
+ otherwise, including without limitation warranties of title,
94
+ merchantability, fitness for a particular purpose, non infringement, or
95
+ the absence of latent or other defects, accuracy, or the present or
96
+ absence of errors, whether or not discoverable, all to the greatest
97
+ extent permissible under applicable law.
98
+ 3. Affirmer disclaims responsibility for clearing rights of other persons
99
+ that may apply to the Work or any use thereof, including without
100
+ limitation any person’s Copyright and Related Rights in the Work.
101
+ Further, Affirmer disclaims responsibility for obtaining any necessary
102
+ consents, permissions or other rights required for any use of the Work.
103
+ 4. Affirmer understands and acknowledges that Creative Commons is not a
104
+ party to this document and has no duty or obligation with respect to this
105
+ CC0 or use of the Work.
106
+
107
+ For more information, please see
108
+ http://creativecommons.org/publicdomain/zero/1.0/.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_QT4_EDITOR ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Module creating PyQt4 form dialogs/layouts to edit various type of parameters
3
+
4
+
5
+ formlayout License Agreement (MIT License)
6
+ ------------------------------------------
7
+
8
+ Copyright (c) 2009 Pierre Raybaut
9
+
10
+ Permission is hereby granted, free of charge, to any person
11
+ obtaining a copy of this software and associated documentation
12
+ files (the "Software"), to deal in the Software without
13
+ restriction, including without limitation the rights to use,
14
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the
16
+ Software is furnished to do so, subject to the following
17
+ conditions:
18
+
19
+ The above copyright notice and this permission notice shall be
20
+ included in all copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
24
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29
+ OTHER DEALINGS IN THE SOFTWARE.
30
+ """
testbed/matplotlib__matplotlib/LICENSE/LICENSE_SOLARIZED ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ https://github.com/altercation/solarized/blob/master/LICENSE
2
+ Copyright (c) 2011 Ethan Schoonover
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
testbed/matplotlib__matplotlib/LICENSE/LICENSE_STIX ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TERMS AND CONDITIONS
2
+
3
+ 1. Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of the STIX Fonts-TM set accompanying this license
5
+ (collectively, the "Fonts") and the associated documentation files
6
+ (collectively with the Fonts, the "Font Software"), to reproduce and
7
+ distribute the Font Software, including the rights to use, copy, merge
8
+ and publish copies of the Font Software, and to permit persons to whom
9
+ the Font Software is furnished to do so same, subject to the following
10
+ terms and conditions (the "License").
11
+
12
+ 2. The following copyright and trademark notice and these Terms and
13
+ Conditions shall be included in all copies of one or more of the Font
14
+ typefaces and any derivative work created as permitted under this
15
+ License:
16
+
17
+ Copyright (c) 2001-2005 by the STI Pub Companies, consisting of
18
+ the American Institute of Physics, the American Chemical Society, the
19
+ American Mathematical Society, the American Physical Society, Elsevier,
20
+ Inc., and The Institute of Electrical and Electronic Engineers, Inc.
21
+ Portions copyright (c) 1998-2003 by MicroPress, Inc. Portions copyright
22
+ (c) 1990 by Elsevier, Inc. All rights reserved. STIX Fonts-TM is a
23
+ trademark of The Institute of Electrical and Electronics Engineers, Inc.
24
+
25
+ 3. You may (a) convert the Fonts from one format to another (e.g.,
26
+ from TrueType to PostScript), in which case the normal and reasonable
27
+ distortion that occurs during such conversion shall be permitted and (b)
28
+ embed or include a subset of the Fonts in a document for the purposes of
29
+ allowing users to read text in the document that utilizes the Fonts. In
30
+ each case, you may use the STIX Fonts-TM mark to designate the resulting
31
+ Fonts or subset of the Fonts.
32
+
33
+ 4. You may also (a) add glyphs or characters to the Fonts, or modify
34
+ the shape of existing glyphs, so long as the base set of glyphs is not
35
+ removed and (b) delete glyphs or characters from the Fonts, provided
36
+ that the resulting font set is distributed with the following
37
+ disclaimer: "This [name] font does not include all the Unicode points
38
+ covered in the STIX Fonts-TM set but may include others." In each case,
39
+ the name used to denote the resulting font set shall not include the
40
+ term "STIX" or any similar term.
41
+
42
+ 5. You may charge a fee in connection with the distribution of the
43
+ Font Software, provided that no copy of one or more of the individual
44
+ Font typefaces that form the STIX Fonts-TM set may be sold by itself.
45
+
46
+ 6. THE FONT SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY
47
+ KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES
48
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
49
+ OF COPYRIGHT, PATENT, TRADEMARK OR OTHER RIGHT. IN NO EVENT SHALL
50
+ MICROPRESS OR ANY OF THE STI PUB COMPANIES BE LIABLE FOR ANY CLAIM,
51
+ DAMAGES OR OTHER LIABILITY, INCLUDING, BUT NOT LIMITED TO, ANY GENERAL,
52
+ SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
53
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM OR OUT OF THE USE OR
54
+ INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT
55
+ SOFTWARE.
56
+
57
+ 7. Except as contained in the notice set forth in Section 2, the
58
+ names MicroPress Inc. and STI Pub Companies, as well as the names of the
59
+ companies/organizations that compose the STI Pub Companies, shall not be
60
+ used in advertising or otherwise to promote the sale, use or other
61
+ dealings in the Font Software without the prior written consent of the
62
+ respective company or organization.
63
+
64
+ 8. This License shall become null and void in the event of any
65
+ material breach of the Terms and Conditions herein by licensee.
66
+
67
+ 9. A substantial portion of the STIX Fonts set was developed by
68
+ MicroPress Inc. for the STI Pub Companies. To obtain additional
69
+ mathematical fonts, please contact MicroPress, Inc., 68-30 Harrow
70
+ Street, Forest Hills, NY 11375, USA - Phone: (718) 575-1816.
71
+
testbed/matplotlib__matplotlib/LICENSE/LICENSE_YORICK ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD-style license for gist/yorick colormaps.
2
+
3
+ Copyright:
4
+
5
+ Copyright (c) 1996. The Regents of the University of California.
6
+ All rights reserved.
7
+
8
+ Permission to use, copy, modify, and distribute this software for any
9
+ purpose without fee is hereby granted, provided that this entire
10
+ notice is included in all copies of any software which is or includes
11
+ a copy or modification of this software and in all copies of the
12
+ supporting documentation for such software.
13
+
14
+ This work was produced at the University of California, Lawrence
15
+ Livermore National Laboratory under contract no. W-7405-ENG-48 between
16
+ the U.S. Department of Energy and The Regents of the University of
17
+ California for the operation of UC LLNL.
18
+
19
+
20
+ DISCLAIMER
21
+
22
+ This software was prepared as an account of work sponsored by an
23
+ agency of the United States Government. Neither the United States
24
+ Government nor the University of California nor any of their
25
+ employees, makes any warranty, express or implied, or assumes any
26
+ liability or responsibility for the accuracy, completeness, or
27
+ usefulness of any information, apparatus, product, or process
28
+ disclosed, or represents that its use would not infringe
29
+ privately-owned rights. Reference herein to any specific commercial
30
+ products, process, or service by trade name, trademark, manufacturer,
31
+ or otherwise, does not necessarily constitute or imply its
32
+ endorsement, recommendation, or favoring by the United States
33
+ Government or the University of California. The views and opinions of
34
+ authors expressed herein do not necessarily state or reflect those of
35
+ the United States Government or the University of California, and
36
+ shall not be used for advertising or product endorsement purposes.
37
+
38
+
39
+ AUTHOR
40
+
41
+ David H. Munro wrote Yorick and Gist. Berkeley Yacc (byacc) generated
42
+ the Yorick parser. The routines in Math are from LAPACK and FFTPACK;
43
+ MathC contains C translations by David H. Munro. The algorithms for
44
+ Yorick's random number generator and several special functions in
45
+ Yorick/include were taken from Numerical Recipes by Press, et. al.,
46
+ although the Yorick implementations are unrelated to those in
47
+ Numerical Recipes. A small amount of code in Gist was adapted from
48
+ the X11R4 release, copyright M.I.T. -- the complete copyright notice
49
+ may be found in the (unused) file Gist/host.c.