1
0
Commit Graph

30 Commits

Author SHA256 Message Date
2512fecbbf changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=39
2022-10-07 19:16:01 +00:00
6ebbf9d64b Accepting request 1008848 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.19.2 
  * Fix incorrect domain used for collections.abc.Callable.

OBS-URL: https://build.opensuse.org/request/show/1008848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=38
2022-10-07 19:14:17 +00:00
63a962a79d Accepting request 989231 from home:bnavigator:branches:devel:languages:python
- Update to 1.18.3
  * Fix for new nptyping by @gaborbernat in #235
- Remove requirement on old extra package pathlib

OBS-URL: https://build.opensuse.org/request/show/989231
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=36
2022-07-15 07:13:41 +00:00
42fab2d8e3 Adjust SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=34
2022-06-06 23:19:48 +00:00
43e903f39e Adjust SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=33
2022-06-06 23:11:04 +00:00
2311043ace Adjust SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=32
2022-06-06 23:04:59 +00:00
5a1ec36786 - Update to 1.18.2:
- [pre-commit.ci] pre-commit autoupdate
  - Support and require nptyping 2.1.1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=31
2022-06-06 23:04:29 +00:00
a8c2cd2e2d Too much
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=29
2022-05-11 10:10:34 +00:00
fe370c2707 - Switch to multibuild to break build cycles.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=28
2022-05-11 10:08:49 +00:00
aa4b62857e Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=27
2022-05-09 14:09:48 +00:00
ce57ddbe08 Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=26
2022-05-09 14:05:14 +00:00
36e1105890 Accepting request 975167 from home:mcepl:branches:devel:languages:python
- Upgrade to 1.18.1:
  - Fix mocked module import not working when used as guarded
    import
  - Support and require nptyping>=2
  - Handle UnionType
  - Mark it as requiring nptyping<2
  - Add typehints_use_rtype option
  - Handles TypeError when getting source code via inspect
  - Add support for type subscriptions with multiple elements,
    where one or more elements are tuples; e.g.,
    nptyping.NDArray[(Any, ...), nptyping.Float]
  - Fix bug for arbitrary types accepting singleton
    subscriptions; e.g., nptyping.Float[64]
  - Resolve forward references
  - Expand and better handle TypeVar
  - Add intershpinx reference link for ... to Ellipsis (as is
    just an alias)
  - Prevents reaching inner blocks that contains if TYPE_CHECKING
  - Log a warning instead of crashing when a type guard import
    fails to resolve
  - When resolving type guard imports if the target module does
    not have source code (such is the case for C-extension
    modules) do nothing instead of crashing
  - Fix fully_qualified should be typehints_fully_qualified
  - Resolve type guard imports before evaluating annotations for
    objects
  - Remove set_type_checking_flag flag as this is now done by
    default
  - Fix crash when the inspect module returns an invalid python
    syntax source
  - Made formatting function configurable using the option
    typehints_formatter
  - Fixed normalize_source_lines() messing with the indentation
    of methods with decorators that have parameters starting with
    def.
  - Handle ValueError or TypeError being raised when signature of
    an object cannot be determined
  - Fix KeyError being thrown when argument is not documented
    (e.g. cls argument for class methods, and self for methods)
  - Added typehints_defaults config option allowing to
    automatically annotate parameter defaults.
  - Fixed NewType inserts a reference as first argument instead
    of a string
  - Dropped Python 3.6 support
  - Python 3.10 support
  - Normalize async functions properly
  - Allow py310 style annotations (PEP-563)

OBS-URL: https://build.opensuse.org/request/show/975167
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=25
2022-05-05 10:40:05 +00:00
39a190e5d5 Accepting request 942819 from home:bnavigator:py310
- Skip python310: Not ready yet. Factory needs only the primary
  python3 flavor

OBS-URL: https://build.opensuse.org/request/show/942819
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=24
2021-12-29 00:37:48 +00:00
ab323f08fc Accepting request 909937 from home:mcepl:branches:devel:languages:python
- Update to 1.12.0:
  - Dropped Python 3.5 support
  - Added the simplify_optional_unions config option
  - Fixed indentation of multiline strings
  - Changed formatting of None to point to the Python stdlib docs
  - Updated special dataclass handling

OBS-URL: https://build.opensuse.org/request/show/909937
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=23
2021-08-03 09:50:38 +00:00
2ba6c18315 Fix changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=21
2021-04-24 14:13:21 +00:00
78bb76820f - Remove no-net-tests.patch as adding the fixed
python-sphinx-autodoc-typehints-system-object.inv.patch 
  makes tests requiring network working
  (gh#agronholm/sphinx-autodoc-typehints#174).
- Add no-net-tests.patch which marks tests requiring network

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=20
2021-04-24 14:12:45 +00:00
8b8a7243f8 - Readd fixed
python-sphinx-autodoc-typehints-system-object.inv.patch which
  makes tests requiring network working

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=19
2021-04-23 16:21:14 +00:00
96d010c0f2 - Add no-net-tests.patch which marks tests requiring network
(gh#agronholm/sphinx-autodoc-typehints#174).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=17
2021-04-23 14:24:54 +00:00
278aec5722 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=16 2020-09-23 13:44:38 +00:00
619846cf17 - remove python-sphinx-autodoc-typehints-system-object.inv.patch (breaks the build)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=15
2020-09-23 13:44:30 +00:00
2e49cccc20 - update to 1.11.0:
* Dropped support for Sphinx < 3.0
  * Added support for alternative parameter names (``arg``, ``argument``, ``parameter``)
  * Fixed import path for Signature (PR by Matthew Treinish)
  * Fixed ``TypeError`` when formatting a parametrized ``typing.IO`` annotation
  * Fixed data class displaying a return type in its ``__init__()`` method

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=14
2020-09-23 13:42:57 +00:00
Tomáš Chvátal
1b523451b8 Accepting request 782143 from home:pgajdos:python
- version update to 1.10.3
  * Fixed ``TypeError`` (or wrong rendered class name) when an annotation is a generic class that has
    a ``name`` property
  * Fixed inner classes missing their parent class name(s) when rendered
  * Fixed ``KeyError`` when encountering mocked annotations (``autodoc_mock_imports``)
  * Rewrote the annotation formatting logic (fixes Python 3.5.2 compatibility regressions and an
    ``AttributeError`` regression introduced in v1.9.0)
  * Fixed decorator classes not being processed as classes
  * Added support for typing_extensions_
  * Added the ``typehints_document_rtype`` option (PR by Simon-Martin Schröder)
  * Fixed metaclasses as annotations causing ``TypeError``
  * Fixed rendering of ``typing.Literal``
  * Fixed OSError when generating docs for SQLAlchemy mapped classes
  * Fixed unparametrized generic classes being rendered with their type parameters
    (e.g. ``Dict[~KT, ~VT]``)
- added patches
  fix use object.inv which comes with python-doc
  + python-sphinx-autodoc-typehints-system-object.inv.patch

OBS-URL: https://build.opensuse.org/request/show/782143
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=12
2020-03-09 08:51:39 +00:00
Tomáš Chvátal
657748ea33 - Update to 1.8.0:
* Fixed regression which caused TypeError or OSError when trying to set annotations due to PR #87
  * Fixed unintentional mangling of annotation type names
  * Added proper :py:data targets for NoReturn, ClassVar and Tuple
  * Added support for inline type comments (like (int, str) -> None) (PR by Bernát Gábor)
  * Use the native AST parser for type comment support on Python 3.8+

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=10
2019-09-16 13:39:29 +00:00
Tomáš Chvátal
052fcc22a2 - Update to 1.7.0:
* Fixed unwrapped local functions causing errors (PR by Kimiyuki Onaka)
  * Fixed AttributeError when documenting the __init__() method of a data class
  * Added support for type hint comments (PR by Markus Unterwaditzer)
  * Added flag for rendering classes with their fully qualified names (PR by Holly Becker)
- Remove merged patch sphinx21.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=8
2019-09-10 10:06:41 +00:00
Tomáš Chvátal
7f7d27d3b7 - Add patch to fix build with new sphinx:
* sphinx21.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=6
2019-07-03 09:20:15 +00:00
Tomáš Chvátal
88d4a5acf0 - Add patch to fix build with new sphinx
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=5
2019-07-03 09:14:31 +00:00
Tomáš Chvátal
a093b1d73a - Drop not really needed devel dependency
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=4
2019-06-06 13:41:15 +00:00
Dominique Leuenberger
4f6cc02cb7 Accepting request 687908 from devel:languages:python
- Remove patch setup-tests.patch, we are using pytest now.
- initial package for version 1.6.0

OBS-URL: https://build.opensuse.org/request/show/687908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinx-autodoc-typehints?expand=0&rev=1
2019-03-24 14:01:35 +00:00
Tomáš Chvátal
56ff328a60 Accepting request 687903 from home:sebix:branches:devel:languages:python
please forward to Factory
- Remove patch setup-tests.patch, we are using pytest now.

OBS-URL: https://build.opensuse.org/request/show/687903
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=2
2019-03-23 15:56:31 +00:00
Thomas Bechtold
5ee444f032 Accepting request 687459 from home:sebix
initial package
can also maintain if you wish

OBS-URL: https://build.opensuse.org/request/show/687459
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=1
2019-03-22 10:14:22 +00:00