Skip to content

Commit 7856ee0

Browse files
committed
Fixed requirements for docs
1 parent 48980d7 commit 7856ee0

File tree

7 files changed

+82
-4
lines changed

7 files changed

+82
-4
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ docs: ## generate Sphinx HTML documentation, including API docs
3535
pubdocs: docs ## Publish the documentation to GitHub
3636
ghp-import -op docs
3737

38+
39+
update-requires: ## Update the requirements.txt file
40+
pip-compile --output-file=requirements/prod.txt pyproject.toml
41+
pip-compile --extra=test --output-file=requirements/test.txt pyproject.toml
42+
pip-compile --extra=docs --output-file=requirements/docs.txt pyproject.toml
43+
pip-compile --extra=dev --extra=docs --extra=test --output-file=requirements/dev.txt pyproject.toml
44+
3845
#
3946
# Helper targets. Not meant to use directly
4047
#

docsrc/reference/bumpversion/bumpversion.cli.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
```
6565
````
6666

67-
````{py:function} bump(args: list, config_file: typing.Optional[str], verbose: int, allow_dirty: typing.Optional[bool], current_version: typing.Optional[str], new_version: typing.Optional[str], parse: typing.Optional[str], serialize: typing.Optional[typing.List[str]], search: typing.Optional[str], replace: typing.Optional[str], no_configured_files: bool, ignore_missing_version: bool, dry_run: bool, commit: typing.Optional[bool], tag: typing.Optional[bool], sign_tags: typing.Optional[bool], tag_name: typing.Optional[str], tag_message: typing.Optional[str], message: typing.Optional[str], commit_args: typing.Optional[str], show_list: bool) -> None
67+
````{py:function} bump(args: list, config_file: typing.Optional[str], verbose: int, allow_dirty: typing.Optional[bool], current_version: typing.Optional[str], new_version: typing.Optional[str], parse: typing.Optional[str], serialize: typing.Optional[typing.List[str]], search: typing.Optional[str], replace: typing.Optional[str], no_regex: bool, no_configured_files: bool, ignore_missing_version: bool, dry_run: bool, commit: typing.Optional[bool], tag: typing.Optional[bool], sign_tags: typing.Optional[bool], tag_name: typing.Optional[str], tag_message: typing.Optional[str], message: typing.Optional[str], commit_args: typing.Optional[str], show_list: bool) -> None
6868
:canonical: bumpversion.cli.bump
6969
7070
```{autodoc2-docstring} bumpversion.cli.bump
@@ -78,7 +78,7 @@
7878
```
7979
````
8080

81-
````{py:function} replace(files: list, config_file: typing.Optional[str], verbose: int, allow_dirty: typing.Optional[bool], current_version: typing.Optional[str], new_version: typing.Optional[str], parse: typing.Optional[str], serialize: typing.Optional[typing.List[str]], search: typing.Optional[str], replace: typing.Optional[str], no_configured_files: bool, ignore_missing_version: bool, dry_run: bool) -> None
81+
````{py:function} replace(files: list, config_file: typing.Optional[str], verbose: int, allow_dirty: typing.Optional[bool], current_version: typing.Optional[str], new_version: typing.Optional[str], parse: typing.Optional[str], serialize: typing.Optional[typing.List[str]], search: typing.Optional[str], replace: typing.Optional[str], no_regex: bool, no_configured_files: bool, ignore_missing_version: bool, dry_run: bool) -> None
8282
:canonical: bumpversion.cli.replace
8383
8484
```{autodoc2-docstring} bumpversion.cli.replace

docsrc/reference/bumpversion/bumpversion.config.md

+22
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,17 @@ Bases: {py:obj}`pydantic.BaseModel`
233233
234234
````
235235
236+
````{py:attribute} no_regex
237+
:canonical: bumpversion.config.FileConfig.no_regex
238+
:type: typing.Optional[bool]
239+
:value: >
240+
None
241+
242+
```{autodoc2-docstring} bumpversion.config.FileConfig.no_regex
243+
```
244+
245+
````
246+
236247
````{py:attribute} ignore_missing_version
237248
:canonical: bumpversion.config.FileConfig.ignore_missing_version
238249
:type: typing.Optional[bool]
@@ -309,6 +320,17 @@ Bases: {py:obj}`pydantic.BaseSettings`
309320
310321
````
311322
323+
````{py:attribute} no_regex
324+
:canonical: bumpversion.config.Config.no_regex
325+
:type: bool
326+
:value: >
327+
None
328+
329+
```{autodoc2-docstring} bumpversion.config.Config.no_regex
330+
```
331+
332+
````
333+
312334
````{py:attribute} ignore_missing_version
313335
:canonical: bumpversion.config.Config.ignore_missing_version
314336
:type: bool

docsrc/reference/bumpversion/bumpversion.files.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@
8181
```{autodoc2-docstring} bumpversion.files.ConfiguredFile.__init__
8282
```
8383
84+
````{py:method} get_file_contents() -> str
85+
:canonical: bumpversion.files.ConfiguredFile.get_file_contents
86+
87+
```{autodoc2-docstring} bumpversion.files.ConfiguredFile.get_file_contents
88+
```
89+
90+
````
91+
92+
````{py:method} write_file_contents(contents: str) -> None
93+
:canonical: bumpversion.files.ConfiguredFile.write_file_contents
94+
95+
```{autodoc2-docstring} bumpversion.files.ConfiguredFile.write_file_contents
96+
```
97+
98+
````
99+
84100
````{py:method} contains_version(version: bumpversion.version_part.Version, context: typing.MutableMapping) -> bool
85101
:canonical: bumpversion.files.ConfiguredFile.contains_version
86102
@@ -89,7 +105,7 @@
89105
90106
````
91107
92-
````{py:method} contains(search: str) -> bool
108+
````{py:method} contains(search: re.Pattern) -> bool
93109
:canonical: bumpversion.files.ConfiguredFile.contains
94110
95111
```{autodoc2-docstring} bumpversion.files.ConfiguredFile.contains
@@ -105,6 +121,14 @@
105121
106122
````
107123
124+
````{py:method} get_search_pattern(context: typing.MutableMapping) -> re.Pattern
125+
:canonical: bumpversion.files.ConfiguredFile.get_search_pattern
126+
127+
```{autodoc2-docstring} bumpversion.files.ConfiguredFile.get_search_pattern
128+
```
129+
130+
````
131+
108132
````{py:method} __str__() -> str
109133
:canonical: bumpversion.files.ConfiguredFile.__str__
110134

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ docs = [
6767
"myst-parser",
6868
"furo",
6969
"Sphinx>=4.3.0",
70+
"sphinx-autodoc2",
7071
"sphinx-autodoc-typehints",
7172
"sphinx-click",
7273
"sphinx-copybutton",

requirements/dev.txt

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ alabaster==0.7.13
88
# via sphinx
99
argopt==0.8.2
1010
# via git-fame
11+
astroid==2.15.6
12+
# via sphinx-autodoc2
1113
babel==2.12.1
1214
# via sphinx
1315
beautifulsoup4==4.12.2
@@ -67,6 +69,8 @@ jinja2==3.1.2
6769
# generate-changelog
6870
# myst-parser
6971
# sphinx
72+
lazy-object-proxy==1.9.0
73+
# via astroid
7074
linkify-it-py==2.0.2
7175
# via bump-my-version (pyproject.toml)
7276
markdown-it-py==3.0.0
@@ -154,6 +158,8 @@ sphinx==7.0.1
154158
# sphinx-copybutton
155159
sphinx-autodoc-typehints==1.23.2
156160
# via bump-my-version (pyproject.toml)
161+
sphinx-autodoc2==0.4.2
162+
# via bump-my-version (pyproject.toml)
157163
sphinx-basic-ng==1.0.0b1
158164
# via furo
159165
sphinx-click==4.4.0
@@ -180,6 +186,7 @@ tomli==2.0.1
180186
# coverage
181187
# pyproject-hooks
182188
# pytest
189+
# sphinx-autodoc2
183190
tomlkit==0.11.8
184191
# via bump-my-version (pyproject.toml)
185192
tqdm==4.65.0
@@ -188,7 +195,9 @@ typer==0.9.0
188195
# via generate-changelog
189196
typing-extensions==4.6.3
190197
# via
198+
# astroid
191199
# pydantic
200+
# sphinx-autodoc2
192201
# typer
193202
uc-micro-py==1.0.2
194203
# via linkify-it-py
@@ -198,6 +207,8 @@ virtualenv==20.23.1
198207
# via pre-commit
199208
wheel==0.40.0
200209
# via pip-tools
210+
wrapt==1.15.0
211+
# via astroid
201212

202213
# The following packages are considered to be unsafe in a requirements file:
203214
# pip

requirements/docs.txt

+14-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#
77
alabaster==0.7.13
88
# via sphinx
9+
astroid==2.15.6
10+
# via sphinx-autodoc2
911
babel==2.12.1
1012
# via sphinx
1113
beautifulsoup4==4.12.2
@@ -36,6 +38,8 @@ jinja2==3.1.2
3638
# via
3739
# myst-parser
3840
# sphinx
41+
lazy-object-proxy==1.9.0
42+
# via astroid
3943
linkify-it-py==2.0.2
4044
# via bump-my-version (pyproject.toml)
4145
markdown-it-py==3.0.0
@@ -89,6 +93,8 @@ sphinx==7.0.1
8993
# sphinx-copybutton
9094
sphinx-autodoc-typehints==1.23.2
9195
# via bump-my-version (pyproject.toml)
96+
sphinx-autodoc2==0.4.2
97+
# via bump-my-version (pyproject.toml)
9298
sphinx-basic-ng==1.0.0b1
9399
# via furo
94100
sphinx-click==4.4.0
@@ -107,11 +113,18 @@ sphinxcontrib-qthelp==1.0.3
107113
# via sphinx
108114
sphinxcontrib-serializinghtml==1.1.5
109115
# via sphinx
116+
tomli==2.0.1
117+
# via sphinx-autodoc2
110118
tomlkit==0.11.8
111119
# via bump-my-version (pyproject.toml)
112120
typing-extensions==4.6.3
113-
# via pydantic
121+
# via
122+
# astroid
123+
# pydantic
124+
# sphinx-autodoc2
114125
uc-micro-py==1.0.2
115126
# via linkify-it-py
116127
urllib3==2.0.3
117128
# via requests
129+
wrapt==1.15.0
130+
# via astroid

0 commit comments

Comments
 (0)