Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d76b75b

Browse filesBrowse files
authored
MAINT Use towncrier for changelog management (#30046)
1 parent 4dc7dbb commit d76b75b
Copy full SHA for d76b75b

File tree

Expand file treeCollapse file tree

48 files changed

+307
-0
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

48 files changed

+307
-0
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
"templates",
180180
"includes",
181181
"**/sg_execution_times.rst",
182+
"whats_new/upcoming_changes",
182183
]
183184

184185
# The reST default role (used for this markup: `text`) to use for all

‎doc/whats_new/upcoming_changes/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/.gitkeep
Whitespace-only changes.
+47Lines changed: 47 additions & 0 deletions

‎doc/whats_new/upcoming_changes/array-api/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/array-api/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/changed-models/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/changed-models/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/custom-top-level/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/custom-top-level/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/many-modules/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/many-modules/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/metadata-routing/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/metadata-routing/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/security/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/security/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.base/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.base/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.calibration/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.calibration/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.cluster/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.cluster/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.compose/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.compose/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.covariance/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.covariance/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.cross_decomposition/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.cross_decomposition/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.datasets/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.datasets/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.decomposition/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.decomposition/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.discriminant_analysis/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.discriminant_analysis/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.dummy/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.dummy/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.ensemble/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.ensemble/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.exceptions/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.exceptions/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.feature_extraction/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.feature_extraction/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.feature_selection/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.feature_selection/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.gaussian_process/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.gaussian_process/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.impute/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.impute/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.inspection/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.inspection/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.isotonic/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.isotonic/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.kernel_approximation/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.kernel_approximation/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.kernel_ridge/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.kernel_ridge/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.linear_model/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.linear_model/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.manifold/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.manifold/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.metrics/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.metrics/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.mixture/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.mixture/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.model_selection/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.model_selection/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.multiclass/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.multiclass/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.multioutput/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.multioutput/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.naive_bayes/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.naive_bayes/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.neighbors/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.neighbors/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.neural_network/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.neural_network/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.pipeline/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.pipeline/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.preprocessing/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.preprocessing/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.random_projection/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.random_projection/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.semi_supervised/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.semi_supervised/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.svm/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.svm/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.tree/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.tree/.gitkeep
Whitespace-only changes.

‎doc/whats_new/upcoming_changes/sklearn.utils/.gitkeep

Copy file name to clipboardExpand all lines: doc/whats_new/upcoming_changes/sklearn.utils/.gitkeep
Whitespace-only changes.
+43Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% if render_title %}
2+
{% if versiondata.name %}
3+
{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }})
4+
{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}}
5+
{% else %}
6+
{{ versiondata.version }} ({{ versiondata.date }})
7+
{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}}
8+
{% endif %}
9+
{% endif %}
10+
11+
{% set underline = underlines[0] %}
12+
{% for section, content_per_category in sections.items() if content_per_category %}
13+
{% if section != 'custom-top-level' %}
14+
{{ section }}
15+
{{ underline * section|length }}
16+
17+
{% endif %}
18+
{# section-specific description #}
19+
{% if section == 'Support for Array API' %}
20+
Additional estimators and functions have been updated to include support for all
21+
`Array API <https://data-apis.org/array-api/latest/>`_ compliant inputs.
22+
23+
See :ref:`array_api` for more details.
24+
25+
{% endif %}
26+
{% if section == 'Metadata routing' %}
27+
Refer to the :ref:`Metadata Routing User Guide <metadata_routing>` for
28+
more details.
29+
30+
{% endif %}
31+
{# We loop over definitions because, contrary to content_per_category, it follow the category order as defined in pyproject.toml #}
32+
{% for category in definitions if category in content_per_category %}
33+
{% set content = content_per_category[category] %}
34+
{% for text, issue_links in content.items() %}
35+
{% set tag = definitions[category]['name'] %}
36+
{# If category != 'other' add tag like |Fix| or |Feature|. This assumes the text is formatted as a bullet point #}
37+
{% set text_with_tag = text if category == 'other' else '{0} {1}{2}'.format(text[0], tag, text[1:]) %}
38+
{# issue_links is a list so need to join. For our purposes, issue_links is always of length 1 #}
39+
{{ text_with_tag }} {{ issue_links|join(', ') }}
40+
41+
{% endfor %}
42+
{% endfor %}
43+
{% endfor %}

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+216Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,219 @@ package = "sklearn" # name of your package
252252
"Documentation" = [
253253
"spin.cmds.meson.docs"
254254
]
255+
256+
[tool.towncrier]
257+
package = "sklearn"
258+
filename = "doc/whats_new/notes-towncrier.rst"
259+
directory = "doc/whats_new/upcoming_changes"
260+
issue_format = ":pr:`{issue}`"
261+
template = "doc/whats_new/upcoming_changes/towncrier_template.rst.jinja2"
262+
title_format = "Version {version} ({project_date})"
263+
all_bullets = false
264+
265+
[[tool.towncrier.type]]
266+
directory = "major-feature"
267+
name = "|MajorFeature|"
268+
showcontent = true
269+
270+
[[tool.towncrier.type]]
271+
directory = "feature"
272+
name = "|Feature|"
273+
showcontent = true
274+
275+
[[tool.towncrier.type]]
276+
directory = "efficiency"
277+
name = "|Efficiency|"
278+
showcontent = true
279+
280+
[[tool.towncrier.type]]
281+
directory = "enhancement"
282+
name = "|Enhancement|"
283+
showcontent = true
284+
285+
[[tool.towncrier.type]]
286+
directory = "fix"
287+
name = "|Fix|"
288+
showcontent = true
289+
290+
[[tool.towncrier.type]]
291+
directory = "api"
292+
name = "|API|"
293+
showcontent = true
294+
295+
[[tool.towncrier.type]]
296+
directory = "other"
297+
name = ""
298+
showcontent = true
299+
300+
[[tool.towncrier.section]]
301+
name = "Security"
302+
path = "security"
303+
304+
[[tool.towncrier.section]]
305+
name = "Changed models"
306+
path = "changed-models"
307+
308+
[[tool.towncrier.section]]
309+
name = "Changes impacting many modules"
310+
path = "many-modules"
311+
312+
[[tool.towncrier.section]]
313+
name = "Support for Array API"
314+
path = "array-api"
315+
316+
[[tool.towncrier.section]]
317+
name = "Metadata routing"
318+
path = "metadata-routing"
319+
320+
[[tool.towncrier.section]]
321+
name = "custom-top-level"
322+
path = "custom-top-level"
323+
324+
[[tool.towncrier.section]]
325+
name = ":mod:`sklearn.base`"
326+
path = "sklearn.base"
327+
328+
[[tool.towncrier.section]]
329+
name = ":mod:`sklearn.calibration`"
330+
path = "sklearn.calibration"
331+
332+
[[tool.towncrier.section]]
333+
name = ":mod:`sklearn.cluster`"
334+
path = "sklearn.cluster"
335+
336+
[[tool.towncrier.section]]
337+
name = ":mod:`sklearn.compose`"
338+
path = "sklearn.compose"
339+
340+
[[tool.towncrier.section]]
341+
name = ":mod:`sklearn.covariance`"
342+
path = "sklearn.covariance"
343+
344+
[[tool.towncrier.section]]
345+
name = ":mod:`sklearn.cross_decomposition`"
346+
path = "sklearn.cross_decomposition"
347+
348+
[[tool.towncrier.section]]
349+
name = ":mod:`sklearn.datasets`"
350+
path = "sklearn.datasets"
351+
352+
[[tool.towncrier.section]]
353+
name = ":mod:`sklearn.decomposition`"
354+
path = "sklearn.decomposition"
355+
356+
[[tool.towncrier.section]]
357+
name = ":mod:`sklearn.discriminant_analysis`"
358+
path = "sklearn.discriminant_analysis"
359+
360+
[[tool.towncrier.section]]
361+
name = ":mod:`sklearn.dummy`"
362+
path = "sklearn.dummy"
363+
364+
[[tool.towncrier.section]]
365+
name = ":mod:`sklearn.ensemble`"
366+
path = "sklearn.ensemble"
367+
368+
[[tool.towncrier.section]]
369+
name = ":mod:`sklearn.exceptions`"
370+
path = "sklearn.exceptions"
371+
372+
[[tool.towncrier.section]]
373+
name = ":mod:`sklearn.feature_extraction`"
374+
path = "sklearn.feature_extraction"
375+
376+
[[tool.towncrier.section]]
377+
name = ":mod:`sklearn.feature_selection`"
378+
path = "sklearn.feature_selection"
379+
380+
[[tool.towncrier.section]]
381+
name = ":mod:`sklearn.gaussian_process`"
382+
path = "sklearn.gaussian_process"
383+
384+
[[tool.towncrier.section]]
385+
name = ":mod:`sklearn.impute`"
386+
path = "sklearn.impute"
387+
388+
[[tool.towncrier.section]]
389+
name = ":mod:`sklearn.inspection`"
390+
path = "sklearn.inspection"
391+
392+
[[tool.towncrier.section]]
393+
name = ":mod:`sklearn.isotonic`"
394+
path = "sklearn.isotonic"
395+
396+
[[tool.towncrier.section]]
397+
name = ":mod:`sklearn.kernel_approximation`"
398+
path = "sklearn.kernel_approximation"
399+
400+
[[tool.towncrier.section]]
401+
name = ":mod:`sklearn.kernel_ridge`"
402+
path = "sklearn.kernel_ridge"
403+
404+
[[tool.towncrier.section]]
405+
name = ":mod:`sklearn.linear_model`"
406+
path = "sklearn.linear_model"
407+
408+
[[tool.towncrier.section]]
409+
name = ":mod:`sklearn.manifold`"
410+
path = "sklearn.manifold"
411+
412+
[[tool.towncrier.section]]
413+
name = ":mod:`sklearn.metrics`"
414+
path = "sklearn.metrics"
415+
416+
[[tool.towncrier.section]]
417+
name = ":mod:`sklearn.mixture`"
418+
path = "sklearn.mixture"
419+
420+
[[tool.towncrier.section]]
421+
name = ":mod:`sklearn.model_selection`"
422+
path = "sklearn.model_selection"
423+
424+
[[tool.towncrier.section]]
425+
name = ":mod:`sklearn.multiclass`"
426+
path = "sklearn.multiclass"
427+
428+
[[tool.towncrier.section]]
429+
name = ":mod:`sklearn.multioutput`"
430+
path = "sklearn.multioutput"
431+
432+
[[tool.towncrier.section]]
433+
name = ":mod:`sklearn.naive_bayes`"
434+
path = "sklearn.naive_bayes"
435+
436+
[[tool.towncrier.section]]
437+
name = ":mod:`sklearn.neighbors`"
438+
path = "sklearn.neighbors"
439+
440+
[[tool.towncrier.section]]
441+
name = ":mod:`sklearn.neural_network`"
442+
path = "sklearn.neural_network"
443+
444+
[[tool.towncrier.section]]
445+
name = ":mod:`sklearn.pipeline`"
446+
path = "sklearn.pipeline"
447+
448+
[[tool.towncrier.section]]
449+
name = ":mod:`sklearn.preprocessing`"
450+
path = "sklearn.preprocessing"
451+
452+
[[tool.towncrier.section]]
453+
name = ":mod:`sklearn.random_projection`"
454+
path = "sklearn.random_projection"
455+
456+
[[tool.towncrier.section]]
457+
name = ":mod:`sklearn.semi_supervised`"
458+
path = "sklearn.semi_supervised"
459+
460+
[[tool.towncrier.section]]
461+
name = ":mod:`sklearn.svm`"
462+
path = "sklearn.svm"
463+
464+
[[tool.towncrier.section]]
465+
name = ":mod:`sklearn.tree`"
466+
path = "sklearn.tree"
467+
468+
[[tool.towncrier.section]]
469+
name = ":mod:`sklearn.utils`"
470+
path = "sklearn.utils"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.