Commit Graph

20 Commits

Author SHA256 Message Date
Steve Kowalik
727079f4c2 - Sprinkle in multibuild to avoid a cycle.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=37
2024-05-13 04:10:07 +00:00
Steve Kowalik
03c5560bbe - Update to 6.1.0:
* Add support for lexing nested fenced codeblocks in markdown.
  * Add support for tilde-delimited codeblocks in markdown.
  * Fix bug with the end offset of codeblocks in markdown.
  * Support pytest 8 and above, due to yet another breaking change in an API
    Sybil relies on.
  * Remove use of deprecated py.path.local.
  * Fix lexing of ReST directives and directives-in-comments where the
    directives were not separated by at least one newline.
  * Official support for Python 3.12 with Python 3.7 now being the minimum
    supported version.
  * sybil.parsers.rest.lexers.DirectiveLexer and
    sybil.parsers.myst.lexers.DirectiveLexer directives now have their
    options extracted as part of the lexing process.
  * Added support for MyST single-line html-style comment directives.
  * Fixed parsing of MyST directive options with no leading whitespace.
  * Fixed parsing of Markdown and MyST fenced codeblocks at the end of
    documents with no trailing newline.
  * Rework document evaluators to be more flexible and structured.
  * :ref:`skip <skip-parser>` has been reworked to check validity of operations
    and allow a reason to be provided for an unconditional skip so it can be
    highlighted as a skipped test in test runner output. The skip parsers
    are also now lexer-based.
  * Make Region.evaluator optional, removing the need for the separate
    LexedRegion class.
  * Fix bug in traceback trimming on the latest release of pytest.
  * Fixed bug in the repr of LexedRegion instances where a lexeme was None.
  * Fixed lexing of ReST directives, such as :rst:dir:`code-block`, where they
    occurred at the end of a docstring.
  * Ensure the sybil.Document.namespace in which doctests are

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=36
2024-05-08 04:24:44 +00:00
019627b665 Accepting request 1139200 from home:mcalabkova:branches:openSUSE:Backports:SLE-15-SP6:mailman
- Drop unneeded setuptools-git dependency

OBS-URL: https://build.opensuse.org/request/show/1139200
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=34
2024-01-17 07:18:22 +00:00
cadbc5782c Accepting request 1100616 from home:mcalabkova:branches:devel:languages:python:pytest
Please note: The newest version is currently 5.0.3. Version 4.0.0 was heavily 
rewritten, there are some not-yet-packaged test dependencies. I am just lazy 
to create new packages, so making a little step with small changes (which
suffice to fix the build with new pytest).

- Update to 3.0.1
  * Continue with the ever shifting sands of pytest APIs, this time 
    appeasing warnings from pytest 7 that when fixed break compatibility 
    with pytest 6.
- Drop python-sybil-fix-ordering.diff
- Add pytest74.patch to support pytest 7.4

OBS-URL: https://build.opensuse.org/request/show/1100616
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=32
2023-07-26 06:43:55 +00:00
5c049ce885 - tag sle15 for new python stack
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=30
2023-06-13 11:23:18 +00:00
cc58ed16b1 Accepting request 981490 from home:gladiac:mailman3
- Add missing BR python-dataclasses for openSUSE Leap

OBS-URL: https://build.opensuse.org/request/show/981490
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=28
2022-06-09 15:20:57 +00:00
fbd8547bbc Fixing changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=27
2022-02-16 16:50:15 +00:00
7914998739 Accepting request 955343 from openSUSE:infrastructure:mailman3
- Fix issue with tests failing on different filesystem setups

OBS-URL: https://build.opensuse.org/request/show/955343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=26
2022-02-16 16:34:59 +00:00
Steve Kowalik
fd28f930b2 - Update to 3.0.0:
* Require pytest 6.2.0.
  * Drop Python 2 support.
  * Add support for Python 3.10
  * Remove the encoding parameter to
    :class:`~sybil.parsers.doctest.DocTestParser` as it is no longer used.
  * :class:`~sybil.parsers.codeblock.CodeBlockParser` has been renamed to
    :class:`~sybil.parsers.codeblock.PythonCodeBlockParser`, see the
    :ref:`codeblock-parser` documentation for details.
  * Support has been added to check examples in Python source code in
    addition to documentation source files.
  * :attr:`~sybil.parsers.doctest.FIX_BYTE_UNICODE_REPR` has been removed
    as it should no longer be needed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=25
2021-12-13 04:12:44 +00:00
f7bc4ff528 Accepting request 874428 from home:bnavigator:branches:devel:languages:python
- Update to 2.0.1
  * Make :class:`~sybil.parsers.doctest.DocTestParser` more
    permissive with respect to tabs in documents. Tabs that aren't
    in the doctest block not longer cause parsing of the document to
    fail.
- Release 2.0.0
  * Drop support for nose.
  * Handle encoded data returned by doctest execution on Python 2.

OBS-URL: https://build.opensuse.org/request/show/874428
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=23
2021-02-23 10:16:42 +00:00
Tomáš Chvátal
c7cb304ae3 Accepting request 830034 from home:mcalabkova:branches:devel:languages:python:pytest
- update to 1.4.0
  * Support pytest 6
  * Have sybil support nested directories of source files
  * Support a sequence of patterns rather than just one.

OBS-URL: https://build.opensuse.org/request/show/830034
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=21
2020-08-27 19:45:59 +00:00
Tomáš Chvátal
6f6e37ddc8 Accepting request 790796 from home:pgajdos:python
- version update to 1.3.0
  * Treat all documentation source files as being ``utf-8`` encoded. This can be overriden
    by passing an encoding when instantiating a :class:`~sybil.Sybil`.

OBS-URL: https://build.opensuse.org/request/show/790796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=19
2020-04-02 08:21:03 +00:00
Tomáš Chvátal
83bc78a02b Accepting request 785868 from home:pgajdos:python
- version update to 1.2.2
  - Improvements to :attr:`~sybil.parsers.doctest.FIX_BYTE_UNICODE_REPR`
    for multiple strings on a single line.
  - Better handling of files with Windows line endings on Linux under Python 2.
  - Fixes for pytest 3.1.0.

OBS-URL: https://build.opensuse.org/request/show/785868
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=17
2020-03-17 10:19:25 +00:00
Tomáš Chvátal
54250010f6 Accepting request 700963 from home:pgajdos
- version update to 1.2.0
  * Only compile code in :ref:`codeblocks <codeblock-parser>` at evaluation time,
    giving :ref:`skip <skip-parser>` a chance to skip code blocks that won't
    compile on a particular version of Python.
  * Add warning about the limitations of
    :attr:`~sybil.parsers.doctest.FIX_BYTE_UNICODE_REPR`.
  * Support explicit filenames to include and patterns to exclude
    when instantiating a :class:`~sybil.Sybil`.
  * Add the :ref:`skip <skip-parser>` parser.
- deleted patches
  - sybil-pytest4.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/700963
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=15
2019-05-06 07:51:15 +00:00
Tomáš Chvátal
180f95e977 Accepting request 688905 from home:jayvdb:coala:test-rig
- Remove irrelevant and invalid runtime dependencies
- Set pytest as a Recommends
- Remove unnecessary build dependencies
- Simplify %check routine

OBS-URL: https://build.opensuse.org/request/show/688905
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=13
2019-03-28 08:39:51 +00:00
Tomáš Chvátal
b65d030a05 Accepting request 650653 from home:scarabeus_iv:branches:devel:languages:python
- Add patch to work with new pytest:
  * sybil-pytest4.patch

OBS-URL: https://build.opensuse.org/request/show/650653
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=11
2018-11-21 13:03:29 +00:00
Tomáš Chvátal
5d1efd00a0 - Raise pytest requirement to match up what is in setup.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=9
2018-08-29 11:07:20 +00:00
Tomáš Chvátal
8acd6c4997 - Version update to 1.0.9:
* Support pytest-3.7

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=7
2018-08-11 09:17:31 +00:00
Tomáš Chvátal
feab7f1b74 Accepting request 626091 from home:jengelh:branches:devel:languages:python
- Do not let the description assume any specific use context.

OBS-URL: https://build.opensuse.org/request/show/626091
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=5
2018-07-30 07:37:04 +00:00
Todd R
3bd8dd9f1f Accepting request 611988 from devel:languages:python:misc
Automated testing for the examples in your documentation

OBS-URL: https://build.opensuse.org/request/show/611988
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=1
2018-05-24 20:56:56 +00:00