14
0
forked from pool/python-nose2
Files
python-nose2/python-nose2.spec

81 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-nose2
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-nose2
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
Version: 0.12.0
Release: 0
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
Summary: The successor to the Python testing framework nose, based on unittest
License: BSD-2-Clause AND Python-2.0
URL: https://github.com/nose-devs/nose2
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
Suggests: python-coverage
BuildArch: noarch
%python_subpackages
%description
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
nose2 is the successor to nose. It's unittest with plugins.
nose2 is a new project and does not support all of the behaviors of nose.
nose2's purpose is to extend unittest to make testing nicer and easier to understand.
%prep
%setup -q -n nose2-%{version}
%build
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
%pyproject_wheel
%install
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
# -I : work around boo#1201041
%pyproject_install -I
%python_clone -a %{buildroot}%{_bindir}/nose2
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_CTYPE=C.UTF8
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
%{python_expand # nose must test itself in an editable install
$python -m venv editable-%{$python_bin_suffix} --system-site-packages
. editable-%{$python_bin_suffix}/bin/activate
pip install -e .
nose2 -v --pretty-assert
deactivate
}
%post
%python_install_alternative nose2
%postun
%python_uninstall_alternative nose2
%files %{python_files}
%license license.txt
%doc AUTHORS README.rst
%python_alternative %{_bindir}/nose2
Accepting request 998350 from home:bnavigator:branches:devel:languages:python - Update to 0.12.0 * Note: The 0.12.x series will be the final releases of nose2 which support Python 2. * Passing --junit-xml-path now implies --junit-xml when using the junitxml plugin. This means that the --junit-xml flag can be omitted when --junit-xml-path is specified. (:issue:`521`) * Remove the dependency on coverage. Use of the coverage plugin now requires that you either install coverage independently, or use the extra, nose2[coverage_plugin]. As a result, nose2 no longer has any strict dependencies * Remove the dependency on six, instead using a vendored copy. This ensures that the dependency for nose2 doesn't conflict with application dependencies * nose2 no longer provides an entry-point named based on the current python version, e.g. nose2-3.8 on python3.8 . Only the nose2 command is provided. * Remove support for setup.py test on nose2 itself. This usage is deprecated by setuptools. Developers contributing to nose2 are encouraged to use tox to run nose2's testsuite, per the contributing guide. - Release 0.11.0 * Test classes now have their short description (first line of docstring) printed in verbose output * The junitxml plugin now sets timestamp on each testcase node as an ISO-8601 timestamp. Thanks to :user:`deeplow` for the contribution! * Drop support for Python 3.5 * Python 3.10 is now officially supported. Python 3.11-dev will be supported on a best-effort basis. Thanks to :user:`hugovk` and :user:`tirkarthi` for their contributions! OBS-URL: https://build.opensuse.org/request/show/998350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
2022-08-20 21:28:15 +00:00
%{python_sitelib}/nose2
%{python_sitelib}/nose2-%{version}*-info
%changelog