14
0
forked from pool/python-sybil

Compare commits

...

20 Commits

Author SHA256 Message Date
93654b93ef Accepting request 1205373 from devel:languages:python
- Make seedir dependency optional for SLFO

OBS-URL: https://build.opensuse.org/request/show/1205373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=20
2024-10-04 15:08:24 +00:00
0825ff7507 - Make seedir dependency optional for SLFO
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=42
2024-10-03 07:48:41 +00:00
e1c376ccdd Accepting request 1181992 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1181992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=19
2024-06-21 14:02:50 +00:00
e0bc1fbe72 Accepting request 1173546 from devel:languages:python
- 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/request/show/1173546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=18
2024-05-14 11:37:06 +00:00
ab279e9487 Accepting request 1139373 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1139373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=17
2024-01-17 21:14:56 +00:00
f8cc1d6122 Accepting request 1100743 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1100743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=16
2023-07-27 14:50:37 +00:00
dab54a51cf Accepting request 1092841 from devel:languages:python
- tag sle15 for new python stack

OBS-URL: https://build.opensuse.org/request/show/1092841
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=15
2023-06-14 14:28:46 +00:00
0379377958 Accepting request 981540 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/981540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=14
2022-06-13 11:01:51 +00:00
2186fb2d1f Accepting request 955436 from devel:languages:python
- Add python-sybil-fix-ordering.diff fixing issue with tests
  failing on different filesystem setups.

OBS-URL: https://build.opensuse.org/request/show/955436
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=13
2022-02-17 22:39:57 +00:00
910600d625 Accepting request 940129 from devel:languages:python
- 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/request/show/940129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=12
2021-12-25 19:16:25 +00:00
Richard Brown
cdd0a2533d Accepting request 874534 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/874534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=11
2021-03-02 13:42:16 +00:00
e8a7ade750 Accepting request 830077 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/830077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=10
2020-09-04 09:00:08 +00:00
4126f95b11 Accepting request 790808 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/790808
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=9
2020-04-07 08:21:01 +00:00
8abfdc318e Accepting request 785870 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/785870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=8
2020-03-26 23:26:30 +00:00
5714d8b55e Accepting request 700972 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/700972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=7
2019-05-06 11:28:19 +00:00
9b3f7bafee Accepting request 689259 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/689259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=6
2019-03-29 19:42:32 +00:00
767855492c Accepting request 650654 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/650654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=5
2018-11-22 12:26:35 +00:00
19facf63e8 Accepting request 632139 from devel:languages:python
- Raise pytest requirement to match up what is in setup.py

OBS-URL: https://build.opensuse.org/request/show/632139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=4
2018-08-31 08:46:09 +00:00
b7bfe4c8d0 Accepting request 628740 from devel:languages:python
- Version update to 1.0.9:
  * Support pytest-3.7

OBS-URL: https://build.opensuse.org/request/show/628740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=3
2018-08-12 18:56:02 +00:00
f904c1049f Accepting request 626414 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/626414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sybil?expand=0&rev=2
2018-07-31 14:02:01 +00:00
2 changed files with 20 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 3 07:46:17 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Make seedir dependency optional for SLFO
-------------------------------------------------------------------
Thu Jun 13 15:36:08 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -39,12 +39,14 @@ BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest >= 7.1}
BuildRequires: %{python_module seedir}
BuildRequires: %{python_module sybil = %{version}}
BuildRequires: %{python_module testfixtures}
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
BuildRequires: %{python_module dataclasses}
%endif
%if 0%{suse_version} > 1600
BuildRequires: %{python_module seedir}
%endif
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -61,6 +63,11 @@ of the normal test run. Integration is provided for the main Python test runners
%autosetup -p1 -n sybil-%{version}
sed -i '/pytest-cov/ d' setup.py
%if 0%{suse_version} <= 1600
# Remove seedir dependency for SLFO
sed -i '/import seedir/d' tests/helpers.py
%endif
%build
%pyproject_wheel
@@ -72,7 +79,13 @@ sed -i '/pytest-cov/ d' setup.py
%check
%if %{with test}
%pytest
%if 0%{suse_version} <= 1600
# Remove seedir build dependency
test_flags="--ignore docs/patterns.rst"
%endif
%pytest $test_flags
%endif
%if !%{with test}