Blame python-jaraco-classes.spec

561fd4b
# Created by pyp2rpm-3.3.2
1beba3e
%global pkg_name jaraco-classes
1beba3e
%global pypi_name jaraco.classes
561fd4b
# waiting on jaraco-packaging and rst-linker to build docs
561fd4b
%bcond_with doc
561fd4b
1beba3e
Name:           python-%{pkg_name}
1b2b589
Version:        3.1.0
6cd1cef
Release:        3%{?dist}
561fd4b
Summary:        Utility functions for Python class constructs
561fd4b
561fd4b
License:        MIT
561fd4b
URL:            https://github.com/jaraco/jaraco.classes
1beba3e
Source0:        %{pypi_source %{pypi_name}}
561fd4b
BuildArch:      noarch
561fd4b
 
561fd4b
%description
561fd4b
Utility functions for Python class constructs.
561fd4b
1beba3e
%package -n python3-%{pkg_name}
561fd4b
Summary:        %{summary}
561fd4b
Requires:       python3-jaraco
561fd4b
Requires:       python3dist(six)
561fd4b
561fd4b
BuildConflicts: python3dist(pytest) = 3.7.3
561fd4b
BuildRequires:  python3-devel
14700a5
BuildRequires:  python3dist(pytest) >= 3.4
8c9df24
561fd4b
BuildRequires:  python3dist(setuptools)
b0318c6
BuildRequires:  python3dist(setuptools-scm) >= 1.15
561fd4b
1beba3e
%{?python_provide:%python_provide python3-%{pkg_name}}
561fd4b
1beba3e
%description -n python3-%{pkg_name}
561fd4b
Utility functions for Python class constructs.
561fd4b
561fd4b
%if %{with docs}
1beba3e
%package -n python-%{pkg_name}-doc
561fd4b
Summary:        jaraco-classes documentation
561fd4b
561fd4b
BuildRequires:  python3dist(pytest-checkdocs)
561fd4b
BuildRequires:  python3dist(sphinx)
290344d
BuildRequires:  python3dist(jaraco.packaging) >= 3.2
290344d
BuildRequires:  python3dist(rst.linker) >= 1.9
561fd4b
1beba3e
%description -n python-%{pkg_name}-doc
561fd4b
Documentation for jaraco-classes
561fd4b
%endif
561fd4b
561fd4b
%prep
561fd4b
%autosetup -n jaraco.classes-%{version}
561fd4b
# Remove bundled egg-info
1beba3e
rm -rf %{pkg_name}.egg-info
c741848
# disable flake8 in the tests, need a newer version of pytest-flake8
c741848
# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2
c741848
# AttributeError: 'Application' object has no attribute 'make_notifier'
c741848
sed -i 's/ --flake8//' pytest.ini
1b2b589
sed -i 's/ --black//' pytest.ini
1b2b589
sed -i 's/ --cov//' pytest.ini
561fd4b
561fd4b
%build
561fd4b
%py3_build
561fd4b
%if %{with docs}
561fd4b
# generate html docs 
561fd4b
PYTHONPATH=${PWD} sphinx-build-3 docs html
561fd4b
# remove the sphinx-build leftovers
561fd4b
rm -rf html/.{doctrees,buildinfo}
561fd4b
%endif
561fd4b
561fd4b
%install
561fd4b
%py3_install
561fd4b
561fd4b
%check
c741848
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
561fd4b
1beba3e
%files -n python3-%{pkg_name}
561fd4b
%license LICENSE
561fd4b
%doc README.rst
561fd4b
# These excludes are provided by python3-jaraco
561fd4b
%exclude %{python3_sitelib}/jaraco/__init__*
561fd4b
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
561fd4b
%{python3_sitelib}/jaraco
9d2a4a7
%{python3_sitelib}/jaraco.classes-%{version}-py%{python3_version}.egg-info
561fd4b
561fd4b
%if %{with docs}
1beba3e
%files -n python-%{pkg_name}-doc
561fd4b
%doc html
561fd4b
%license LICENSE
561fd4b
%endif
561fd4b
561fd4b
%changelog
6cd1cef
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
6cd1cef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6cd1cef
e63555d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
e63555d
- Rebuilt for Python 3.9
e63555d
1b2b589
* Wed Feb 12 2020 Dan Radez <dan@radez.net> - 3.1.0
1b2b589
- update to 3.1.0
1b2b589
c4c2a46
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8
c4c2a46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c4c2a46
14700a5
* Mon Nov 11 2019 Ken Dreyer <kdreyer@redhat.com> - 2.0-7
14700a5
- Set minimum pytest version to 3.4 for compatibility with el8
14700a5
abbdb71
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0-6
abbdb71
- Rebuilt for Python 3.8.0rc1 (#1748018)
abbdb71
404deca
* Thu Aug 22 2019 Dan Radez <dradez@redhat.com> - 2.0-5
01d937f
- Removing the sed . to _ it's confusing and not needed
01d937f
6197799
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0-4
6197799
- Rebuilt for Python 3.8
6197799
516da20
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
516da20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
516da20
1beba3e
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 2.0-2
1beba3e
- fixed egg info
1beba3e
561fd4b
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.0-1
561fd4b
- Initial package.