77561e0
%global srcname nose-testconfig
e9a6b6f
Name:           python-nose-testconfig
77561e0
Version:        0.10
c5b2c07
Release:        13%{?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 python2-%{srcname}
77561e0
Summary:        Test configuration plugin for nosetests for Python2
77561e0
%{?python_provide:%python_provide python2-%{srcname}}
77561e0
77561e0
BuildRequires:  python2-devel
c5cd33c
BuildRequires:  python2-setuptools
e9a6b6f
c5cd33c
Requires:       python2-nose
c5b2c07
# Require >= 5.1 for yaml.FullLoader, used by Patch0
c5b2c07
Requires:       python2-pyyaml >= 5.1
e9a6b6f
77561e0
%description -n python2-%{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 2 version of the package.
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
%py2_build
77561e0
%py3_build
e9a6b6f
e9a6b6f
%install
77561e0
%py2_install
77561e0
%py3_install
e9a6b6f
77561e0
%files -n python2-%{srcname}
2771898
%license LICENSE-2.0
2771898
%doc ACKS TODO docs/index.txt
e9a6b6f
%{python2_sitelib}/testconfig.py*
e9a6b6f
%{python2_sitelib}/nose_testconfig-%{version}-*.egg-info
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
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