Blame SPECS/python-portend.spec

de44bd
# Created by pyp2rpm-3.3.2
de44bd
%global pypi_name portend
de44bd
%global with_docs 1
de44bd
%{?python_enable_dependency_generator}
de44bd
de44bd
Name:           python-%{pypi_name}
de44bd
Version:        2.7.1
de44bd
Release:        4%{?dist}
de44bd
Summary:        TCP port monitoring utilities
de44bd
de44bd
License:        MIT
de44bd
URL:            https://github.com/jaraco/portend
de44bd
Source0:        %{pypi_source}
de44bd
BuildArch:      noarch
de44bd
 
de44bd
%description
de44bd
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
de44bd
momentous or calamitous) is likely to happen.
de44bd
de44bd
%package -n python3-%{pypi_name}
de44bd
Summary:        portend documentation
de44bd
de44bd
BuildRequires:  python3-devel
de44bd
BuildRequires:  python3dist(jaraco.functools)
de44bd
BuildRequires:  python3dist(pytest) >= 3.4
de44bd
BuildRequires:  python3dist(pytest-cov)
de44bd
#BuildRequires:  python3dist(pytest-sugar) >= 0.9.1
de44bd
BuildRequires:  python3dist(setuptools)
de44bd
BuildRequires:  python3dist(setuptools-scm) >= 1.15
de44bd
BuildRequires:  python3dist(tempora) >= 1.8
de44bd
de44bd
%description -n python3-%{pypi_name}
de44bd
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
de44bd
momentous or calamitous) is likely to happen.
de44bd
de44bd
%if 0%{?with_docs}
de44bd
%package -n python-%{pypi_name}-doc
de44bd
Summary:        portend documentation
de44bd
de44bd
BuildRequires:  python3dist(jaraco.packaging) >= 3.2
de44bd
BuildRequires:  python3dist(rst.linker) >= 1.9
de44bd
BuildRequires:  python3dist(sphinx)
de44bd
BuildRequires:  python3-more-itertools
de44bd
de44bd
%description -n python-%{pypi_name}-doc
de44bd
Documentation for portend
de44bd
%endif
de44bd
de44bd
%prep
de44bd
%autosetup -n %{pypi_name}-%{version}
de44bd
# Remove bundled egg-info
de44bd
rm -rf %{pypi_name}.egg-info
de44bd
# black is apparently not a valid option?
de44bd
sed -i 's/ --black//' pytest.ini
de44bd
de44bd
# Don't run the linter as part of tests
de44bd
sed -i '/^addopts=--flake8$/d' pyproject.toml
de44bd
sed -i '/pytest-flake8/d' setup.cfg
de44bd
rm .flake8
de44bd
de44bd
%build
de44bd
%py3_build
de44bd
de44bd
%if 0%{?with_docs}
de44bd
# generate html docs 
de44bd
PYTHONPATH=${PWD} sphinx-build-3 docs html
de44bd
# remove the sphinx-build leftovers
de44bd
rm -rf html/.{doctrees,buildinfo}
de44bd
%endif
de44bd
de44bd
%install
de44bd
%py3_install
de44bd
de44bd
%check
de44bd
%if 0%{?el8}
de44bd
# disable flake8 in the tests, need a newer version of pytest (3.5) which is not
de44bd
# available on EL8, and is pulled in by python-pytest-flake8.
de44bd
sed -i 's/ --flake8//' pytest.ini
de44bd
%endif
de44bd
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
de44bd
de44bd
%files -n python3-%{pypi_name}
de44bd
%license LICENSE
de44bd
%doc README.rst
de44bd
%{python3_sitelib}/__pycache__/*
de44bd
%{python3_sitelib}/%{pypi_name}.py
de44bd
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
de44bd
de44bd
%if 0%{?with_docs}
de44bd
%files -n python-%{pypi_name}-doc
de44bd
%doc html
de44bd
%license LICENSE
de44bd
%endif
de44bd
de44bd
%changelog
de44bd
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 2.7.1-4
de44bd
- Rebuild from lookaside
de44bd
de44bd
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3
de44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
de44bd
de44bd
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.7.1-2
de44bd
- Rebuilt for Python 3.10
de44bd
de44bd
* Mon Feb 15 2021 Dan radez <dradez@redhat.com> - 2.7.1-1
de44bd
- update to 2.7.1
de44bd
de44bd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
de44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
de44bd
de44bd
* Wed Dec 09 2020 Dan Radez <dradez@redhat.com> - 2.7.0-1
de44bd
- update to 2.7
de44bd
de44bd
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-4
de44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
de44bd
de44bd
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6-3
de44bd
- Rebuilt for Python 3.9
de44bd
de44bd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
de44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
de44bd
de44bd
* Tue Nov 05 2019 Dan Radez <dradez@redhat.com> - 2.6-1
de44bd
- update to 2.6
de44bd
- reenable flake8
de44bd
- add coverage build dep
de44bd
de44bd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5-4
de44bd
- Rebuilt for Python 3.8.0rc1 (#1748018)
de44bd
de44bd
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5-3
de44bd
- Rebuilt for Python 3.8
de44bd
de44bd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
de44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
de44bd
de44bd
* Tue Jun 11 2019 Dan Radez <dradez@redhat.com> - 2.5-1
de44bd
- Update to 2.5
de44bd
de44bd
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.3-1
de44bd
- Initial package.