77561e0
%global srcname nose-testconfig
e9a6b6f
Name:           python-nose-testconfig
77561e0
Version:        0.10
f5b9e59
Release:        31%{?dist}
e9a6b6f
Summary:        Test configuration plugin for nosetests
e9a6b6f
e9a6b6f
License:        ASL 2.0
e9a6b6f
URL:            https://bitbucket.org/jnoller/nose-testconfig/
77561e0
Source0:        https://pypi.python.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
e9a6b6f
e9a6b6f
# Upstream does not include the license, which is required for redistribution
e9a6b6f
# See https://bitbucket.org/jnoller/nose-testconfig/issue/10/
e9a6b6f
Source1:        LICENSE-2.0
e9a6b6f
c5b2c07
# explicitly accept the API change in pyyaml-5.1 to suppress the warning when
c5b2c07
# loading a yaml file. This will load yaml files with yaml.FullLoader, which
c5b2c07
# allows for !!python extensions but does not allow arbitrary code execution.
c5b2c07
Patch0:         nose-testconfig-pyyaml-warning.patch
c5b2c07
e9a6b6f
BuildArch:      noarch
e9a6b6f
77561e0
%description
77561e0
nose-testconfig is a plugin to the nose test framework which provides a
77561e0
faculty for passing test-specific (or test-run specific) configuration data
77561e0
to the tests being executed.
77561e0
77561e0
Currently configuration files in the following formats are supported:
77561e0
77561e0
- YAML (via PyYAML <http://pypi.python.org/pypi/PyYAML/>)
77561e0
- INI (via ConfigParser <http://docs.python.org/lib/module-ConfigParser.html>)
77561e0
- Pure Python (via Exec)
77561e0
- JSON (via JSON <http://docs.python.org/library/json.html>)
77561e0
77561e0
%package -n python3-%{srcname}
e9a6b6f
Summary:        Test configuration plugin for nosetests for Python3
77561e0
%{?python_provide:%python_provide python3-%{srcname}}
77561e0
77561e0
BuildRequires:  python3-devel
77561e0
BuildRequires:  python3-setuptools
77561e0
e9a6b6f
Requires:       python3-nose
c5b2c07
# Require >= 5.1 for yaml.FullLoader, used by Patch0
c5b2c07
Requires:       python3-PyYAML >= 5.1
e9a6b6f
77561e0
%description -n python3-%{srcname}
e9a6b6f
nose-testconfig is a plugin to the nose test framework which provides a
e9a6b6f
faculty for passing test-specific (or test-run specific) configuration data
e9a6b6f
to the tests being executed.
e9a6b6f
e9a6b6f
Currently configuration files in the following formats are supported:
e9a6b6f
e9a6b6f
- YAML (via PyYAML <http://pypi.python.org/pypi/PyYAML/>)
e9a6b6f
- INI (via ConfigParser <http://docs.python.org/lib/module-ConfigParser.html>)
e9a6b6f
- Pure Python (via Exec)
e9a6b6f
- JSON (via JSON <http://docs.python.org/library/json.html>)
e9a6b6f
77561e0
This is the Python 3 version of the package.
77561e0
e9a6b6f
%prep
c5b2c07
%autosetup -n %{srcname}-%{version} -p1
e9a6b6f
rm -rf nose_testconfig.egg-info
e9a6b6f
cp %{SOURCE1} .
e9a6b6f
e9a6b6f
%build
77561e0
%py3_build
e9a6b6f
e9a6b6f
%install
77561e0
%py3_install
e9a6b6f
77561e0
%files -n python3-%{srcname}
2771898
%license LICENSE-2.0
2771898
%doc ACKS TODO docs/index.txt
e9a6b6f
%{python3_sitelib}/testconfig.py*
e9a6b6f
%{python3_sitelib}/__pycache__/testconfig.*
e9a6b6f
%{python3_sitelib}/nose_testconfig-%{version}-*.egg-info
e9a6b6f
e9a6b6f
%changelog
f5b9e59
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-31
f5b9e59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
f5b9e59
091706e
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-30
091706e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
091706e
8ce244a
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-29
8ce244a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8ce244a
de5795e
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.10-28
de5795e
- Rebuilt for Python 3.12
de5795e
f87a3b2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-27
f87a3b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f87a3b2
0a09604
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-26
0a09604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0a09604
0b90787
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.10-25
0b90787
- Rebuilt for Python 3.11
0b90787
a94cb80
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-24
a94cb80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a94cb80
56e2206
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-23
56e2206
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
56e2206
daafbf3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10-22
daafbf3
- Rebuilt for Python 3.10
daafbf3
0a2b9e6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-21
0a2b9e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0a2b9e6
bee31c4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-20
bee31c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bee31c4
4c0c704
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10-19
4c0c704
- Rebuilt for Python 3.9
4c0c704
effeaac
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-18
effeaac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
effeaac
d6bcc78
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10-17
d6bcc78
- Rebuilt for Python 3.8.0rc1 (#1748018)
d6bcc78
da63f13
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10-16
da63f13
- Rebuilt for Python 3.8
da63f13
f3003fb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-15
f3003fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f3003fb
e034e10
* Mon Apr 22 2019 David Shea <dshea@redhat.com> - 0.10-14
e034e10
- Remove the python2 subpackage (#1701680)
e034e10
c5b2c07
* Mon Mar 25 2019 David Shea <dshea@redhat.com> - 0.10-13
c5b2c07
- Handle a warning displayed by pyyaml-5.1 (#1692477)
c5b2c07
73b5693
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-12
73b5693
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
73b5693
8bb2962
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-11
8bb2962
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8bb2962
dbd1a12
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.10-10
dbd1a12
- Rebuilt for Python 3.7
dbd1a12
8ab3791
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-9
8ab3791
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8ab3791
c5cd33c
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10-8
c5cd33c
- Update Python 2 dependency declarations to new packaging standards
c5cd33c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c5cd33c
933a84b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-7
933a84b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
933a84b
5ebc8e0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-6
5ebc8e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5ebc8e0
d76520e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10-5
d76520e
- Rebuild for Python 3.6
d76520e
f591c44
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
f591c44
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f591c44
6552ca7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
6552ca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6552ca7
f49cb94
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
f49cb94
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f49cb94
77561e0
* Mon Oct  5 2015 David Shea <dshea@redhat.com> - 0.10-1
77561e0
- Update to upstream version 0.10, which adds support for multiple configs
77561e0
- Change to the new packaging guildelines which renames python-nose-testconfig to python2-nose-testconfig
77561e0
b89f612
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
b89f612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b89f612
2771898
* Wed Jan 28 2015 David Shea <dshea@redhat.com> - 0.9-4
2771898
- Use %%license for the license file
2771898
e9a6b6f
* Tue Aug 12 2014 David Shea <dshea@redhat.com> - 0.9-3
e9a6b6f
- Added a comment about the inclusion of an external copy of the ASL
e9a6b6f
e9a6b6f
* Mon Aug 11 2014 David Shea <dshea@redhat.com> - 0.9-2
e9a6b6f
- Include a copy of the Apache Software License, 2.0.
e9a6b6f
e9a6b6f
* Thu Apr 10 2014 David Shea <dshea@redhat.com> - 0.9-1
e9a6b6f
- Initial package