optbinning-slim 0.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- optbinning_slim-0.22.0/CHANGELOG.md +108 -0
- optbinning_slim-0.22.0/LICENSE +201 -0
- optbinning_slim-0.22.0/MANIFEST.in +11 -0
- optbinning_slim-0.22.0/PKG-INFO +872 -0
- optbinning_slim-0.22.0/README.md +819 -0
- optbinning_slim-0.22.0/assets/binning_2d_readme.png +0 -0
- optbinning_slim-0.22.0/assets/binning_2d_readme_example.png +0 -0
- optbinning_slim-0.22.0/assets/binning_2d_readme_woe.png +0 -0
- optbinning_slim-0.22.0/assets/binning_binary.png +0 -0
- optbinning_slim-0.22.0/assets/binning_data_stream.gif +0 -0
- optbinning_slim-0.22.0/assets/binning_readme_example_split_woe.png +0 -0
- optbinning_slim-0.22.0/assets/binning_readme_example_woe.png +0 -0
- optbinning_slim-0.22.0/optbinning/__init__.py +30 -0
- optbinning_slim-0.22.0/optbinning/_version.py +3 -0
- optbinning_slim-0.22.0/optbinning/binning/__init__.py +12 -0
- optbinning_slim-0.22.0/optbinning/binning/auto_monotonic.py +438 -0
- optbinning_slim-0.22.0/optbinning/binning/base.py +55 -0
- optbinning_slim-0.22.0/optbinning/binning/binning.py +1317 -0
- optbinning_slim-0.22.0/optbinning/binning/binning_information.py +122 -0
- optbinning_slim-0.22.0/optbinning/binning/binning_process.py +1556 -0
- optbinning_slim-0.22.0/optbinning/binning/binning_process_information.py +52 -0
- optbinning_slim-0.22.0/optbinning/binning/binning_statistics.py +2099 -0
- optbinning_slim-0.22.0/optbinning/binning/continuous_binning.py +1058 -0
- optbinning_slim-0.22.0/optbinning/binning/continuous_cp.py +258 -0
- optbinning_slim-0.22.0/optbinning/binning/cp.py +584 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/__init__.py +12 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/base.py +16 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/binning_process_sketch.py +642 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/binning_process_sketch_information.py +71 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/binning_sketch.py +1014 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/bsketch.py +456 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/bsketch_information.py +107 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/gk.py +219 -0
- optbinning_slim-0.22.0/optbinning/binning/distributed/plots.py +56 -0
- optbinning_slim-0.22.0/optbinning/binning/mdlp.py +224 -0
- optbinning_slim-0.22.0/optbinning/binning/metrics.py +367 -0
- optbinning_slim-0.22.0/optbinning/binning/mip.py +472 -0
- optbinning_slim-0.22.0/optbinning/binning/model_data.py +299 -0
- optbinning_slim-0.22.0/optbinning/binning/multiclass_binning.py +930 -0
- optbinning_slim-0.22.0/optbinning/binning/multiclass_cp.py +200 -0
- optbinning_slim-0.22.0/optbinning/binning/multiclass_mip.py +203 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/__init__.py +5 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/binning_2d.py +968 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/binning_statistics_2d.py +922 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/continuous_binning_2d.py +842 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/cp_2d.py +198 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/mip_2d.py +208 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/model_data_2d.py +265 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/model_data_cart_2d.py +341 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/preprocessing_2d.py +118 -0
- optbinning_slim-0.22.0/optbinning/binning/multidimensional/transformations_2d.py +245 -0
- optbinning_slim-0.22.0/optbinning/binning/outlier.py +227 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/__init__.py +6 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/base.py +525 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/binning.py +442 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/binning_information.py +130 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/binning_statistics.py +708 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/continuous_binning.py +420 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/metrics.py +131 -0
- optbinning_slim-0.22.0/optbinning/binning/piecewise/transformations.py +191 -0
- optbinning_slim-0.22.0/optbinning/binning/prebinning.py +152 -0
- optbinning_slim-0.22.0/optbinning/binning/preprocessing.py +374 -0
- optbinning_slim-0.22.0/optbinning/binning/transformations.py +452 -0
- optbinning_slim-0.22.0/optbinning/binning/uncertainty/__init__.py +4 -0
- optbinning_slim-0.22.0/optbinning/binning/uncertainty/binning_scenarios.py +823 -0
- optbinning_slim-0.22.0/optbinning/exceptions.py +39 -0
- optbinning_slim-0.22.0/optbinning/formatting.py +28 -0
- optbinning_slim-0.22.0/optbinning/information.py +108 -0
- optbinning_slim-0.22.0/optbinning/logging.py +33 -0
- optbinning_slim-0.22.0/optbinning/metrics/__init__.py +0 -0
- optbinning_slim-0.22.0/optbinning/metrics/classification.py +115 -0
- optbinning_slim-0.22.0/optbinning/metrics/regression.py +169 -0
- optbinning_slim-0.22.0/optbinning/options.py +312 -0
- optbinning_slim-0.22.0/optbinning/scorecard/__init__.py +12 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/__init__.py +4 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/base.py +46 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/counterfactual.py +668 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/counterfactual_information.py +75 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/mip.py +361 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/model_data.py +36 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/multi_mip.py +452 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/problem_data.py +56 -0
- optbinning_slim-0.22.0/optbinning/scorecard/counterfactual/utils.py +26 -0
- optbinning_slim-0.22.0/optbinning/scorecard/monitoring.py +835 -0
- optbinning_slim-0.22.0/optbinning/scorecard/monitoring_information.py +64 -0
- optbinning_slim-0.22.0/optbinning/scorecard/plots.py +263 -0
- optbinning_slim-0.22.0/optbinning/scorecard/rounding.py +110 -0
- optbinning_slim-0.22.0/optbinning/scorecard/scorecard.py +732 -0
- optbinning_slim-0.22.0/optbinning/scorecard/scorecard_information.py +75 -0
- optbinning_slim-0.22.0/optbinning_slim.egg-info/PKG-INFO +872 -0
- optbinning_slim-0.22.0/optbinning_slim.egg-info/SOURCES.txt +120 -0
- optbinning_slim-0.22.0/optbinning_slim.egg-info/dependency_links.txt +1 -0
- optbinning_slim-0.22.0/optbinning_slim.egg-info/requires.txt +28 -0
- optbinning_slim-0.22.0/optbinning_slim.egg-info/top_level.txt +1 -0
- optbinning_slim-0.22.0/pyproject.toml +96 -0
- optbinning_slim-0.22.0/setup.cfg +4 -0
- optbinning_slim-0.22.0/tests/__init__.py +0 -0
- optbinning_slim-0.22.0/tests/data/boston_housing.csv +1034 -0
- optbinning_slim-0.22.0/tests/data/breast_cancer.csv +570 -0
- optbinning_slim-0.22.0/tests/data/breast_cancer.parquet +0 -0
- optbinning_slim-0.22.0/tests/datasets/__init__.py +4 -0
- optbinning_slim-0.22.0/tests/datasets/datasets.py +20 -0
- optbinning_slim-0.22.0/tests/test_binning.py +691 -0
- optbinning_slim-0.22.0/tests/test_binning_2d.py +343 -0
- optbinning_slim-0.22.0/tests/test_binning_piecewise.py +311 -0
- optbinning_slim-0.22.0/tests/test_binning_process.py +617 -0
- optbinning_slim-0.22.0/tests/test_binning_process_sketch.py +185 -0
- optbinning_slim-0.22.0/tests/test_binning_scenarios.py +265 -0
- optbinning_slim-0.22.0/tests/test_binning_sketch.py +307 -0
- optbinning_slim-0.22.0/tests/test_continuous_binning.py +313 -0
- optbinning_slim-0.22.0/tests/test_continuous_binning_2d.py +311 -0
- optbinning_slim-0.22.0/tests/test_continuous_binning_piecewise.py +126 -0
- optbinning_slim-0.22.0/tests/test_counterfactual.py +316 -0
- optbinning_slim-0.22.0/tests/test_formatting.py +41 -0
- optbinning_slim-0.22.0/tests/test_logging.py +40 -0
- optbinning_slim-0.22.0/tests/test_mdlp.py +174 -0
- optbinning_slim-0.22.0/tests/test_multiclass_binning.py +254 -0
- optbinning_slim-0.22.0/tests/test_outlier.py +99 -0
- optbinning_slim-0.22.0/tests/test_package.py +46 -0
- optbinning_slim-0.22.0/tests/test_scorecard.py +486 -0
- optbinning_slim-0.22.0/tests/test_scorecard_monitoring.py +243 -0
- optbinning_slim-0.22.0/tests/test_scorecard_plots.py +49 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Release notes for `optbinning-slim`, a maintenance fork of
|
|
4
|
+
[optbinning](https://github.com/guillermo-navas-palencia/optbinning). Versions
|
|
5
|
+
before 0.22.0 are upstream's; their notes are in the
|
|
6
|
+
[upstream documentation](http://gnpalencia.org/optbinning/release_notes.html).
|
|
7
|
+
|
|
8
|
+
The fork adds no algorithms. Everything below is packaging, currency with the
|
|
9
|
+
Python and dependency stack, defect fixes and test coverage.
|
|
10
|
+
|
|
11
|
+
## 0.22.0 (2026-08-23)
|
|
12
|
+
|
|
13
|
+
First release of the fork, branched at upstream 0.21.0.
|
|
14
|
+
|
|
15
|
+
### Requirements
|
|
16
|
+
|
|
17
|
+
- **Python >= 3.13.** Tested on 3.13 and 3.14; both are in CI and in the trove
|
|
18
|
+
classifiers. Upstream 0.21.0 declared `>=3.7` and tested up to 3.12.
|
|
19
|
+
- **Dependency floors raised**, and the `ortools` upper cap **dropped**:
|
|
20
|
+
`matplotlib>=3.10`, `numpy>=2.3`, `ortools>=9.14` (was `>=9.4,<9.12`),
|
|
21
|
+
`pandas>=2.3`, `ropwr>=1.2`, `scikit-learn>=1.7`, `scipy>=1.15`. The cap was
|
|
22
|
+
not protecting against anything the suite can reach: on OR-Tools 9.15 every
|
|
23
|
+
solver status, split and IV is unchanged.
|
|
24
|
+
|
|
25
|
+
### Packaging
|
|
26
|
+
|
|
27
|
+
- `setup.py`, `requirements.txt` and `test_requirements.txt` replaced by a
|
|
28
|
+
single PEP 621 `pyproject.toml`. `environment.yml` builds the conda
|
|
29
|
+
environment and restates no dependency.
|
|
30
|
+
- The distribution is named **`optbinning-slim`**; the import package stays
|
|
31
|
+
`optbinning`, so it is a drop-in replacement. The two distributions claim the
|
|
32
|
+
same import package and must not share an environment.
|
|
33
|
+
- Upstream's Sphinx sources (`doc/`) and the unused Travis configuration were
|
|
34
|
+
removed. Docstrings remain the user-facing documentation; upstream's rendered
|
|
35
|
+
documentation still describes the library.
|
|
36
|
+
|
|
37
|
+
### Removed
|
|
38
|
+
|
|
39
|
+
- **`solver="ls"` and the LocalSolver integration.** `localsolver` is not
|
|
40
|
+
distributed on PyPI and the `hexaly` package that succeeds it provides no
|
|
41
|
+
`localsolver` module, so the option could not be used by anyone installing
|
|
42
|
+
this package. `OptimalBinning` now accepts `("cp", "mip")`, matching every
|
|
43
|
+
other estimator.
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- `OptimalPWBinning` and `ContinuousOptimalPWBinning` accept
|
|
48
|
+
**`solver="clarabel"`**. `ropwr` 1.2 resolves `solver="auto"` to Clarabel on
|
|
49
|
+
constrained problems, and the estimators previously rejected the solver they
|
|
50
|
+
were themselves using.
|
|
51
|
+
- `OptimalBinningSketch.plot_progress` takes **`savefig`** and `save_kwargs`,
|
|
52
|
+
like every other plot method. It previously always called `plt.show()`, which
|
|
53
|
+
blocks on an interactive backend.
|
|
54
|
+
- `PWContinuousBinningTable.quality_score`, which `analysis()` computed but did
|
|
55
|
+
not publish, unlike the three sibling binning tables.
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- **pandas 3.0 support.** A variable whose column carries pandas' string dtype
|
|
60
|
+
was classified as numerical and its strings reached `check_array`, raising
|
|
61
|
+
`could not convert string to float`. `BinningProcess` now tests
|
|
62
|
+
`is_numeric_dtype` directly. As a consequence a categorical column is binned
|
|
63
|
+
as categorical, where it was previously treated as numerical.
|
|
64
|
+
- **`read_json` produced an unusable estimator.** It rebuilt the binning table
|
|
65
|
+
but restored none of the state `transform` and `splits` read, so a loaded
|
|
66
|
+
estimator returned `None` from `.splits` and raised `TypeError` from
|
|
67
|
+
`.transform`. Affected `OptimalBinning`, `ContinuousOptimalBinning` and
|
|
68
|
+
`MulticlassOptimalBinning`.
|
|
69
|
+
- **`to_json` could not write a categorical binning at all** (`Object of type
|
|
70
|
+
... is not JSON serializable`), and the payload could not represent one: it
|
|
71
|
+
saved the grouped categories rather than the split positions needed to
|
|
72
|
+
rebuild them. Both are fixed, and the payload gained `splits_optimal`. Files
|
|
73
|
+
written by earlier versions raise a `ValueError` naming the problem rather
|
|
74
|
+
than loading a broken estimator.
|
|
75
|
+
- **MDLP applied its stopping criterion to the recursion only**, so every node
|
|
76
|
+
with a viable candidate contributed a split and `min_samples_split` could not
|
|
77
|
+
prevent the first one. The Fayyad-Irani criterion now decides whether the
|
|
78
|
+
split is accepted. **This changes results**: on breast-cancer "mean radius"
|
|
79
|
+
the default fit goes from 7 splits to 3, and
|
|
80
|
+
`OptimalBinning(prebinning_method="mdlp")` from IV 4.79132740 to 4.76862756.
|
|
81
|
+
A target carrying no information now yields no splits.
|
|
82
|
+
- **MDLP rejected an integral float target** with a numpy cast error that did
|
|
83
|
+
not mention the target. It is now accepted; non-integral or negative labels
|
|
84
|
+
raise a `ValueError` that names it.
|
|
85
|
+
- `ContinuousOptimalBinning2D` accepted `prebinning_method="mdlp"` and failed
|
|
86
|
+
during `fit`; it is now rejected by parameter validation, like the 1D
|
|
87
|
+
estimator.
|
|
88
|
+
- `OptimalBinningSketch`'s docstring advertised `solver="ls"`, which its own
|
|
89
|
+
validation rejected.
|
|
90
|
+
|
|
91
|
+
### Testing
|
|
92
|
+
|
|
93
|
+
- 176 tests to **212**, and coverage from 85% to **89%**. The suite passes on
|
|
94
|
+
Python 3.13 and 3.14.
|
|
95
|
+
- `MDLP`'s only two algorithmic tests were commented out upstream, leaving the
|
|
96
|
+
recursion, split search and stopping criterion uncovered; they are replaced
|
|
97
|
+
by property-based tests. JSON persistence had no tests at all.
|
|
98
|
+
- `tests/test_package.py` pins that ortools still solves after
|
|
99
|
+
`import optbinning`. ortools and highspy ship colliding `libhighs.so.1`
|
|
100
|
+
libraries, so the import order in `optbinning/__init__.py` is load-bearing —
|
|
101
|
+
see `reports/OPEN_ITEMS.md`.
|
|
102
|
+
|
|
103
|
+
### Known issues
|
|
104
|
+
|
|
105
|
+
- cvxpy's HIGHS backend is unavailable in any process that imports optbinning,
|
|
106
|
+
because ortools and highspy ship different HiGHS builds under the same
|
|
107
|
+
SONAME. optbinning's own `solver="highs"` is unaffected. Full diagnosis in
|
|
108
|
+
`reports/OPEN_ITEMS.md`.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# LICENSE, README.md and pyproject.toml are included by setuptools already.
|
|
2
|
+
include CHANGELOG.md
|
|
3
|
+
# The test suite and its fixtures ship in the sdist so a downstream packager can
|
|
4
|
+
# run pytest against the released tarball; the artifacts tests write do not.
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
recursive-include tests/data *
|
|
7
|
+
recursive-include assets *
|
|
8
|
+
prune tests/results
|
|
9
|
+
prune .github
|
|
10
|
+
prune .idea
|
|
11
|
+
prune reports
|