Skip to content

Commit c14e026

Browse files
committed
Release v1.4.2
1 parent ef37b18 commit c14e026

File tree

116 files changed

+9998
-25647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+9998
-25647
lines changed

docs/_static/basic.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,3 +641,43 @@ dt.field-even:after {
641641
dd.field-list {
642642
grid-column-start: 2;
643643
}
644+
645+
hr.docutils {
646+
font-weight: bold;
647+
/* border: 2px solid #7a9eec; */
648+
border: 2px solid grey;
649+
border-left-style: none;
650+
border-right-style: none;
651+
border-top-style: none;
652+
}
653+
654+
div.versionadded {
655+
color: black;
656+
/* padding: 10px 0 0 10px; */
657+
font-weight: bold;
658+
margin: 5px 0;
659+
}
660+
661+
div.versionchanged {
662+
color: black;
663+
/* padding: 0 10px 0 0; */
664+
font-weight: bold;
665+
margin: 5px 0;
666+
}
667+
668+
span.added {
669+
background: #eeffcc ;
670+
border: 2px solid #aacc99;
671+
border-left-style: none;
672+
border-right-style: none;
673+
padding: 5px;
674+
}
675+
676+
span.changed {
677+
background: #fbe3e4 ;
678+
border: 2px solid #fbc2c4;
679+
border-left-style: none;
680+
border-right-style: none;
681+
padding: 5px;
682+
}
683+

docs/buffer.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@ MemoryBuffer
1919
Buffer factories
2020
================
2121

22-
Buffer factory protocol
23-
-----------------------
24-
2522
.. autoclass:: BufferFactory
2623

27-
bytes factory
2824
-------------
2925

3026
.. autoclass:: BytesBufferFactory
3127

32-
ctypes factory
3328
--------------
3429

3530
.. autoclass:: CTypesBufferFactory

docs/changelog.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
Changelog
33
#########
44

5+
Version 1.4.2
6+
=============
7+
8+
* Optimizations.
9+
* Cleanup of pylint warnings.
10+
* Updated documentation.
11+
* Fixed unregistered bugs:
12+
13+
- Signature in `firebird.base.config.IntOption.clear`.
14+
- Signature in `firebird.base.trace.TraceManager.add_trace`. Keyword argument `decorator`
15+
(with default) could not be used with args/kwargs, so it was removed. New
16+
`~firebird.base.trace.TraceManager.decorator` attribute was added to
17+
`~firebird.base.trace.TraceManager` that could be used to change trace decorator used
18+
for intrumentation.
19+
520
Version 1.4.1
621
=============
722

@@ -32,7 +47,7 @@ Version 1.3.0
3247

3348
* `~firebird.base.config` module:
3449

35-
- Layout produced by `.get_config()` was changed.
50+
- Layout produced by `~firebird.base.config.get_config()` was changed.
3651
- `.Config` has new constructor keyword-only argument `description`.
3752
- Fix: uregistered bug in config.ListOption - value and default was the same instance
3853

docs/collections.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,19 @@ Types for type hints & annotations
4141
Collections
4242
===========
4343

44-
BaseObjectCollection
45-
--------------------
4644
.. autoclass:: BaseObjectCollection
4745

48-
DataList
4946
--------
47+
5048
.. autoclass:: DataList
5149

52-
Registry
5350
--------
51+
5452
.. autoclass:: Registry
5553

5654
Functions
5755
=========
5856

59-
make_lambda
60-
-----------
6157
.. autofunction:: make_lambda
6258

6359

docs/conf.py

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
author = 'Pavel Císař'
2424

2525
# The short X.Y version
26-
version = '1.4.1'
26+
version = '1.4.2'
2727

2828
# The full version, including alpha/beta/rc tags
29-
release = '1.4.1'
29+
release = '1.4.2'
3030

3131

3232
# -- General configuration ---------------------------------------------------
@@ -35,12 +35,14 @@
3535
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3636
# ones.
3737
extensions = [
38-
'sphinx.ext.autodoc',
3938
'sphinx.ext.intersphinx',
39+
'sphinx.ext.autodoc',
4040
'sphinx.ext.napoleon',
41-
'sphinx_autodoc_typehints',
41+
'sphinx.ext.viewcode',
42+
'sphinx.ext.autosectionlabel',
43+
#'sphinx_autodoc_typehints',
4244
'sphinx.ext.todo',
43-
'sphinx.ext.coverage',
45+
#'sphinx.ext.coverage',
4446
]
4547

4648
# Add any paths that contain templates here, relative to this directory.
@@ -61,6 +63,8 @@
6163

6264
# -- Options for HTML output -------------------------------------------------
6365

66+
html_favicon = '_static/fb-favicon.png'
67+
6468
# The theme to use for HTML and HTML Help pages. See the documentation for
6569
# a list of builtin themes.
6670
#
@@ -158,6 +162,8 @@
158162

159163
# -- Extension configuration -------------------------------------------------
160164

165+
autosectionlabel_prefix_document = True
166+
161167
# Autodoc options
162168
# ---------------
163169
autodoc_default_options = {
@@ -170,17 +176,33 @@
170176
'no-inherited-members': True,
171177
}
172178
set_type_checking_flag = True
173-
#always_document_param_types = True
179+
autodoc_class_signature = 'mixed'
180+
always_document_param_types = True
181+
autodoc_typehints = 'both' # default 'signature'
182+
autodoc_typehints_format = 'short'
183+
autodoc_typehints_description_target = 'all'
184+
185+
autodoc_type_aliases = {'Item': '~firebird.base.collections.Item',
186+
'TypeSpec': '~firebird.base.collections.TypeSpec',
187+
'ItemExpr': '~firebird.base.collections.ItemExpr',
188+
'FilterExpr': '~firebird.base.collections.FilterExpr',
189+
'CheckExpr': '~firebird.base.collections.CheckExpr',
190+
}
174191

175192
# Napoleon options
176193
# ----------------
177194
napoleon_include_init_with_doc = True
178195
napoleon_include_private_with_doc = True
179196
napoleon_include_special_with_doc = True
180-
napoleon_use_admonition_for_examples = True
197+
napoleon_use_admonition_for_examples = False
181198
napoleon_use_admonition_for_notes = True
182199
napoleon_use_admonition_for_references = True
183-
#napoleon_use_ivar = True
200+
napoleon_use_ivar = False
201+
napoleon_use_rtype = True
202+
napoleon_use_param = True
203+
napoleon_use_keyword = True
204+
napoleon_attr_annotations = True
205+
napoleon_preprocess_types = True
184206

185207
# -- Options for intersphinx extension ---------------------------------------
186208

docs/config.txt

Lines changed: 51 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ First, you need to define your own configuration.
8989
self.master_db: DbConfig = DbConfig('master-db')
9090
self.backup_db: DbConfig = DbConfig('backup-db')
9191

92-
.. note::
92+
.. important::
9393

9494
Option must be assigned to Config attributes with the same name as option name.
9595

@@ -306,14 +306,17 @@ The protobuf message is defined in :file:`/proto/config.proto`.
306306

307307
.. seealso:: `.ConfigOption`, `.ConfigListOption`
308308

309+
Constants
310+
=========
311+
312+
.. data:: PROTO_CONFIG
313+
:annotation: Fully qualified name for `ConfigProto`_ protobuf.
314+
309315
.. tip::
310316

311317
To address `ConfigProto`_ in functions like `~firebird.base.protobuf.create_message()`,
312318
use `PROTO_CONFIG` constant.
313319

314-
.. data:: PROTO_CONFIG
315-
:annotation: Fully qualified name for `ConfigProto`_ protobuf.
316-
317320

318321
Application Directory Scheme
319322
============================
@@ -324,104 +327,106 @@ Application Directory Scheme
324327

325328
.. autoclass:: DirectoryScheme
326329

330+
-----
331+
327332
.. autoclass:: WindowsDirectoryScheme
328333

334+
-----
335+
329336
.. autoclass:: LinuxDirectoryScheme
330337

338+
-----
339+
331340
.. autoclass:: MacOSDirectoryScheme
332341

342+
-----
343+
333344
.. autofunction:: get_directory_scheme
334345

335346
Config
336347
======
337348

338-
Config
339-
------
340349
.. autoclass:: Config
341350

342351
Options
343352
=======
344353

345-
Option
346-
------
347354
.. autoclass:: Option
348355

349-
StrOption
350-
---------
356+
-----
357+
351358
.. autoclass:: StrOption
352359

353-
IntOption
354-
---------
360+
-----
361+
355362
.. autoclass:: IntOption
356363

357-
FloatOption
358-
-----------
364+
-----
365+
359366
.. autoclass:: FloatOption
360367

361-
DecimalOption
362-
-------------
368+
-----
369+
363370
.. autoclass:: DecimalOption
364371

365-
BoolOption
366-
----------
372+
-----
373+
367374
.. autoclass:: BoolOption
368375

369-
ZMQAddressOption
370-
----------------
376+
-----
377+
371378
.. autoclass:: ZMQAddressOption
372379

373-
EnumOption
374-
----------
380+
-----
381+
375382
.. autoclass:: EnumOption
376383

377-
FlagOption
378-
----------
384+
-----
385+
379386
.. autoclass:: FlagOption
380387

381-
UUIDOption
382-
----------
388+
-----
389+
383390
.. autoclass:: UUIDOption
384391

385-
MIMEOption
386-
----------
392+
-----
393+
387394
.. autoclass:: MIMEOption
388395

389-
ListOption
390-
----------
396+
-----
397+
391398
.. autoclass:: ListOption
392399

393-
DataclassOption
394-
---------------
400+
-----
401+
395402
.. autoclass:: DataclassOption
396403

397-
PathOption
398-
----------
404+
-----
405+
399406
.. autoclass:: PathOption
400407

401-
PyExprOption
402-
------------
408+
-----
409+
403410
.. autoclass:: PyExprOption
404411

405-
PyCodeOption
406-
------------
412+
-----
413+
407414
.. autoclass:: PyCodeOption
408415

409-
PyCallableOption
410-
----------------
416+
-----
417+
411418
.. autoclass:: PyCallableOption
412419

413-
ConfigOption
414-
------------
420+
-----
421+
415422
.. autoclass:: ConfigOption
416423

417-
ConfigListOption
418-
----------------
424+
-----
425+
419426
.. autoclass:: ConfigListOption
420427

421428
Functions
422429
=========
423430

424-
create_config
425-
-------------
426431
.. autofunction:: create_config
427432

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 9305cd2bf6ad568008c57dfe7bbf87a0
3+
config: 17c3c05c66ed7574c1d99f328dd94484
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

0 commit comments

Comments
 (0)