77561e
%global srcname nose-testconfig
e9a6b6
Name:           python-nose-testconfig
77561e
Version:        0.10
c5b2c0
Release:        13%{?dist}
e9a6b6
Summary:        Test configuration plugin for nosetests
e9a6b6
e9a6b6
License:        ASL 2.0
e9a6b6
URL:            https://bitbucket.org/jnoller/nose-testconfig/
77561e
Source0:        https://pypi.python.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
e9a6b6
e9a6b6
# Upstream does not include the license, which is required for redistribution
e9a6b6
# See https://bitbucket.org/jnoller/nose-testconfig/issue/10/
e9a6b6
Source1:        LICENSE-2.0
e9a6b6
c5b2c0
# explicitly accept the API change in pyyaml-5.1 to suppress the warning when
c5b2c0
# loading a yaml file. This will load yaml files with yaml.FullLoader, which
c5b2c0
# allows for !!python extensions but does not allow arbitrary code execution.
c5b2c0
Patch0:         nose-testconfig-pyyaml-warning.patch
c5b2c0
e9a6b6
BuildArch:      noarch
e9a6b6
77561e
%description
77561e
nose-testconfig is a plugin to the nose test framework which provides a
77561e
faculty for passing test-specific (or test-run specific) configuration data
77561e
to the tests being executed.
77561e
77561e
Currently configuration files in the following formats are supported:
77561e
77561e
- YAML (via PyYAML <http: pypi.python.org="" pypi="" pyyaml=""/>)
77561e
- INI (via ConfigParser <http: docs.python.org="" lib="" module-configparser.html="">)
77561e
- Pure Python (via Exec)
77561e
- JSON (via JSON <http: docs.python.org="" library="" json.html="">)
77561e
77561e
%package -n python2-%{srcname}
77561e
Summary:        Test configuration plugin for nosetests for Python2
77561e
%{?python_provide:%python_provide python2-%{srcname}}
77561e
77561e
BuildRequires:  python2-devel
c5cd33
BuildRequires:  python2-setuptools
e9a6b6
c5cd33
Requires:       python2-nose
c5b2c0
# Require >= 5.1 for yaml.FullLoader, used by Patch0
c5b2c0
Requires:       python2-pyyaml >= 5.1
e9a6b6
77561e
%description -n python2-%{srcname}
e9a6b6
nose-testconfig is a plugin to the nose test framework which provides a
e9a6b6
faculty for passing test-specific (or test-run specific) configuration data
e9a6b6
to the tests being executed.
e9a6b6
e9a6b6
Currently configuration files in the following formats are supported:
e9a6b6
e9a6b6
- YAML (via PyYAML <http: pypi.python.org="" pypi="" pyyaml=""/>)
e9a6b6
- INI (via ConfigParser <http: docs.python.org="" lib="" module-configparser.html="">)
e9a6b6
- Pure Python (via Exec)
e9a6b6
- JSON (via JSON <http: docs.python.org="" library="" json.html="">)
e9a6b6
77561e
This is the Python 2 version of the package.
77561e
77561e
%package -n python3-%{srcname}
e9a6b6
Summary:        Test configuration plugin for nosetests for Python3
77561e
%{?python_provide:%python_provide python3-%{srcname}}
77561e
77561e
BuildRequires:  python3-devel
77561e
BuildRequires:  python3-setuptools
77561e
e9a6b6
Requires:       python3-nose
c5b2c0
# Require >= 5.1 for yaml.FullLoader, used by Patch0
c5b2c0
Requires:       python3-PyYAML >= 5.1
e9a6b6
77561e
%description -n python3-%{srcname}
e9a6b6
nose-testconfig is a plugin to the nose test framework which provides a
e9a6b6
faculty for passing test-specific (or test-run specific) configuration data
e9a6b6
to the tests being executed.
e9a6b6
e9a6b6
Currently configuration files in the following formats are supported:
e9a6b6
e9a6b6
- YAML (via PyYAML <http: pypi.python.org="" pypi="" pyyaml=""/>)
e9a6b6
- INI (via ConfigParser <http: docs.python.org="" lib="" module-configparser.html="">)
e9a6b6
- Pure Python (via Exec)
e9a6b6
- JSON (via JSON <http: docs.python.org="" library="" json.html="">)
e9a6b6
77561e
This is the Python 3 version of the package.
77561e
e9a6b6
%prep
c5b2c0
%autosetup -n %{srcname}-%{version} -p1
e9a6b6
rm -rf nose_testconfig.egg-info
e9a6b6
cp %{SOURCE1} .
e9a6b6
e9a6b6
%build
77561e
%py2_build
77561e
%py3_build
e9a6b6
e9a6b6
%install
77561e
%py2_install
77561e
%py3_install
e9a6b6
77561e
%files -n python2-%{srcname}
277189
%license LICENSE-2.0
277189
%doc ACKS TODO docs/index.txt
e9a6b6
%{python2_sitelib}/testconfig.py*
e9a6b6
%{python2_sitelib}/nose_testconfig-%{version}-*.egg-info
e9a6b6
77561e
%files -n python3-%{srcname}
277189
%license LICENSE-2.0
277189
%doc ACKS TODO docs/index.txt
e9a6b6
%{python3_sitelib}/testconfig.py*
e9a6b6
%{python3_sitelib}/__pycache__/testconfig.*
e9a6b6
%{python3_sitelib}/nose_testconfig-%{version}-*.egg-info
e9a6b6
e9a6b6
%changelog
c5b2c0
* Mon Mar 25 2019 David Shea <dshea@redhat.com> - 0.10-13
c5b2c0
- Handle a warning displayed by pyyaml-5.1 (#1692477)
c5b2c0
73b569
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-12
73b569
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
73b569
8bb296
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-11
8bb296
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8bb296
dbd1a1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.10-10
dbd1a1
- Rebuilt for Python 3.7
dbd1a1
8ab379
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-9
8ab379
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8ab379
c5cd33
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10-8
c5cd33
- Update Python 2 dependency declarations to new packaging standards
c5cd33
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c5cd33
933a84
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-7
933a84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
933a84
5ebc8e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-6
5ebc8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5ebc8e
d76520
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10-5
d76520
- Rebuild for Python 3.6
d76520
f591c4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
f591c4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f591c4
6552ca
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
6552ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6552ca
f49cb9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
f49cb9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f49cb9
77561e
* Mon Oct  5 2015 David Shea <dshea@redhat.com> - 0.10-1
77561e
- Update to upstream version 0.10, which adds support for multiple configs
77561e
- Change to the new packaging guildelines which renames python-nose-testconfig to python2-nose-testconfig
77561e
b89f61
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
b89f61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b89f61
277189
* Wed Jan 28 2015 David Shea <dshea@redhat.com> - 0.9-4
277189
- Use %%license for the license file
277189
e9a6b6
* Tue Aug 12 2014 David Shea <dshea@redhat.com> - 0.9-3
e9a6b6
- Added a comment about the inclusion of an external copy of the ASL
e9a6b6
e9a6b6
* Mon Aug 11 2014 David Shea <dshea@redhat.com> - 0.9-2
e9a6b6
- Include a copy of the Apache Software License, 2.0.
e9a6b6
e9a6b6
* Thu Apr 10 2014 David Shea <dshea@redhat.com> - 0.9-1
e9a6b6
- Initial package