Skip to content

Commit 567e33c

Browse files
committed
doc: use sphinx-issues to reference issues and prs
1 parent 1afa402 commit 567e33c

4 files changed

Lines changed: 41 additions & 21 deletions

File tree

doc/changelog.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,43 @@ Changelog
77
Added
88
^^^^^
99
- Python 3.13 support.
10-
- Proper Base64 serialization. #31
10+
- Proper Base64 serialization. :issue:`31`
1111
- :meth:`~BaseModel.get_field_root_type` supports :data:`~typing.UnionType`.
1212

1313
Changed
1414
^^^^^^^
15-
- :attr:`SearchRequest.attributes <scim2_models.SearchRequest.attributes>` and :attr:`SearchRequest.attributes <scim2_models.SearchRequest.excluded_attributes>` are mutually exclusive. #19
16-
- :class:`~scim2_models.Schema` ids must be valid URIs. #26
15+
- :attr:`SearchRequest.attributes <scim2_models.SearchRequest.attributes>` and :attr:`SearchRequest.attributes <scim2_models.SearchRequest.excluded_attributes>` are mutually exclusive. :issue:`19`
16+
- :class:`~scim2_models.Schema` ids must be valid URIs. :issue:`26`
1717

1818
[0.2.2] - 2024-09-20
1919
--------------------
2020

2121
Fixed
2222
^^^^^
23-
- :class:`~scim2_models.ListResponse` pydantic discriminator issue introduced with pydantic 2.9.0. #75
24-
- Extension payloads are not required on response contexts. #77
23+
- :class:`~scim2_models.ListResponse` pydantic discriminator issue introduced with pydantic 2.9.0. :issue:`75`
24+
- Extension payloads are not required on response contexts. :issue:`77`
2525

2626
[0.2.1] - 2024-09-06
2727
--------------------
2828

2929
Fixed
3030
^^^^^
31-
- :attr:`~scim2_models.Resource.external_id` is :data:`scim2_models.CaseExact.true`. #74
31+
- :attr:`~scim2_models.Resource.external_id` is :data:`scim2_models.CaseExact.true`. :issue:`74`
3232

3333
[0.2.0] - 2024-08-18
3434
--------------------
3535

3636
Fixed
3737
^^^^^
38-
- Fix the extension mechanism by introducing the :class:`~scim2_models.Extension` class. #60, #63
38+
- Fix the extension mechanism by introducing the :class:`~scim2_models.Extension` class. :issue:`60`, :issue:`63`
3939

4040
.. note::
4141

4242
``schema.make_model()`` becomes ``Resource.from_schema(schema)`` or ``Extension.from_schema(schema)``.
4343

4444
Changed
4545
^^^^^^^
46-
- Enable pydantic :attr:`~pydantic.config.ConfigDict.validate_assignment` option. #54
46+
- Enable pydantic :attr:`~pydantic.config.ConfigDict.validate_assignment` option. :issue:`54`
4747

4848
[0.1.15] - 2024-08-18
4949
---------------------
@@ -54,7 +54,7 @@ Added
5454

5555
Fixed
5656
^^^^^
57-
- :class:`scim2_models.Manager` is a :class:`~scim2_models.MultiValuedComplexAttribute`. #62
57+
- :class:`scim2_models.Manager` is a :class:`~scim2_models.MultiValuedComplexAttribute`. :issue:`62`
5858

5959
Changed
6060
^^^^^^^
@@ -76,39 +76,39 @@ Changed
7676
Fixed
7777
^^^^^
7878
- `get_by_payload` return :data:`None` on invalid payloads
79-
- instance :meth:`~scim2_models.Resource.model_dump` with multiple extensions #57
79+
- instance :meth:`~scim2_models.Resource.model_dump` with multiple extensions :issue:`57`
8080

8181
[0.1.13] - 2024-07-15
8282
---------------------
8383

8484
Fixed
8585
^^^^^
8686
- Schema dump with context was broken.
87-
- :attr:`scim2_models.PatchOperation.op` attribute is case insensitive to be compatible with Microsoft Entra. #55
87+
- :attr:`scim2_models.PatchOperation.op` attribute is case insensitive to be compatible with Microsoft Entra. :issue:`55`
8888

8989
[0.1.12] - 2024-07-11
9090
---------------------
9191

9292
Fixed
9393
^^^^^
94-
- Additional bugfixes about attribute case sensitivity #45
95-
- Dump was broken after sub-model assignments #48
96-
- Extension attributes dump were ignored #49
97-
- :class:`~scim2_models.ListResponse` tolerate any schema order #50
94+
- Additional bugfixes about attribute case sensitivity :issue:`45`
95+
- Dump was broken after sub-model assignments :issue:`48`
96+
- Extension attributes dump were ignored :issue:`49`
97+
- :class:`~scim2_models.ListResponse` tolerate any schema order :issue:`50`
9898

9999
[0.1.11] - 2024-07-02
100100
---------------------
101101

102102
Fixed
103103
^^^^^
104-
- Attributes are case insensitive #39
104+
- Attributes are case insensitive :issue:`39`
105105

106106
[0.1.10] - 2024-06-30
107107
---------------------
108108

109109
Added
110110
^^^^^
111-
- Export resource models with :data:`~scim2_models.Resource.to_schema` #7
111+
- Export resource models with :data:`~scim2_models.Resource.to_schema` :issue:`7`
112112

113113
[0.1.9] - 2024-06-29
114114
--------------------
@@ -127,7 +127,7 @@ Fixed
127127

128128
Added
129129
^^^^^
130-
- Dynamic pydantic model creation from SCIM schemas. #6
130+
- Dynamic pydantic model creation from SCIM schemas. :issue:`6`
131131

132132
Changed
133133
^^^^^^^
@@ -136,7 +136,7 @@ Changed
136136
Fix
137137
^^^
138138
- Allow relative URLs in :data:`~scim2_models.Reference`.
139-
- Models with multiples extensions could not be initialized. #37
139+
- Models with multiples extensions could not be initialized. :issue:`37`
140140

141141
[0.1.7] - 2024-06-16
142142
--------------------
@@ -149,7 +149,7 @@ Added
149149

150150
Fix
151151
^^^
152-
- Add missing default values. #33
152+
- Add missing default values. :issue:`33`
153153

154154
[0.1.6] - 2024-06-06
155155
--------------------

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"sphinx.ext.todo",
1717
"sphinx.ext.viewcode",
1818
"sphinxcontrib.autodoc_pydantic",
19+
"sphinx_issues",
1920
"sphinx_togglebutton",
2021
"myst_parser",
2122
]
@@ -86,3 +87,7 @@
8687
doctest_global_setup = """
8788
from scim2_models import *
8889
"""
90+
91+
# -- Options for sphinx-issues -------------------------------------
92+
93+
issues_github_path = "python-scim/scim2-models"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ doc = [
4848
"myst-parser>=3.0.1",
4949
"shibuya>=2024.5.15",
5050
"sphinx>=7.3.7",
51+
"sphinx-issues >= 5.0.0",
5152
"sphinx-togglebutton>=0.3.2",
5253
]
5354

uv.lock

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)