15
0
Files
python-xdoctest/python-xdoctest.spec
Markéta Machová c768efc2f1 Accepting request 1091118 from home:pgajdos:python
- version update to 1.1.1
  ## Version 1.1.1
  ### Changed
  * Binary tests are now only run on "full" installs to reduce minimal dependencies.
  * Support for Python 3.11
  * Minor typing fixes
  
  ## Version 1.1.0 - Released 2022-09-05
  ### Fixed
  * Can now handle basic versions of the new `__editable__` package finder mechanism.
  * Parsing bug where directives were incorrectly flagged as inline if they were
    directly followed by a function with a decorator.
  ### Removed
  * Dropped 2.7 and 3.5 support. Now supporting 3.6+ Use xdoctest<=1.0.2 for 2.7
    or 3.5 support.
  ### Changed
  * Improved the "dump" functionality of converting doctests to unit tests.
  
  ## Version 1.0.2 - Released 2022-08-19
  ### Added
  * Environs as options:
    `XDOCTEST_VERBOSE`, `XDOCTEST_OPTIONS`, `XDOCTEST_GLOBAL_EXEC`, `XDOCTEST_REPORT`,
    `XDOCTEST_STYLE`, and `XDOCTEST_ANALYSIS` environment variables can now be used
    to specify configuration defaults.
  ### Changed
  * Added experimental hidden feature `--insert-skip-directive-above-failures`
    that can be used to modify your code such that failing doctests are marked as
    skip.
  * Disabled traceback suppression on module import errors (this is is
    configurable via the `supress_import_errors` option).

OBS-URL: https://build.opensuse.org/request/show/1091118
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xdoctest?expand=0&rev=7
2023-06-07 10:09:13 +00:00

72 lines
2.0 KiB
RPMSpec

#
# spec file for package python-xdoctest
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-xdoctest
Version: 1.1.1
Release: 0
Summary: Enhanced Python builtin doctest module
License: Apache-2.0
URL: https://github.com/Erotemic/xdoctest
Source: https://github.com/Erotemic/xdoctest/archive/refs/tags/v%{version}.tar.gz#/xdoctest-%{version}.tar.gz
# https://github.com/Erotemic/xdoctest/pull/142
Patch0: python-xdoctest-no-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pygments}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-pygments
BuildArch: noarch
%python_subpackages
%description
A rewrite of the builtin doctest module with a pytest plugin.
%prep
%autosetup -p1 -n xdoctest-%{version}
%build
sed -i '1{/^#!/d}' src/xdoctest/__main__.py
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/xdoctest
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative xdoctest
%postun
%python_uninstall_alternative xdoctest
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/xdoctest
%{python_sitelib}/xdoctest*
%changelog