
Most servers meanwhile default to secure http, so prefering to link those over plain http (better default, and saves one redirect) Change-Id: I0a7f31e000f8c0aedaae5e42d9b522aca4d8a814
90 lines
3.2 KiB
Django/Jinja
90 lines
3.2 KiB
Django/Jinja
%global pypi_name debtcollector
|
|
Name: {{ py2name('debtcollector') }}
|
|
Version: 1.19.0
|
|
Release: 0
|
|
Summary: A collection of Python deprecation patterns and strategies
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages/Python
|
|
URL: https://docs.openstack.org/developer/debtcollector/
|
|
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py2pkg('devel', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('fixtures', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('funcsigs', py_versions=['py2']) }}
|
|
BuildRequires: {{ py2pkg('pbr', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('python-subunit', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('setuptools', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('testrepository', py_versions=['py2', 'py3']) }}
|
|
BuildRequires: {{ py2pkg('wrapt', py_versions=['py2', 'py3']) }}
|
|
Requires: {{ py2pkg('pbr') }}
|
|
Requires: {{ py2pkg('six') }}
|
|
Requires: {{ py2pkg('wrapt') }}
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Requires: {{ py2pkg('funcsigs') }}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
A collection of Python deprecation patterns and strategies that help
|
|
you collect your technical debt in a non-destructive manner. The goal
|
|
of this library is to provide well documented developer facing
|
|
deprecation patterns that start of with a basic set and can expand
|
|
into a larger set of patterns as time goes on. The desired output of
|
|
these patterns is to apply the warnings module to emit
|
|
DeprecationWarning or PendingDeprecationWarning or similar derivative
|
|
to developers using libraries (or potentially applications) about
|
|
future deprecations.
|
|
|
|
%package -n python-debtcollector-doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation/HTML
|
|
BuildRequires: {{ py2pkg('Sphinx') }}
|
|
BuildRequires: {{ py2pkg('openstackdocstheme', py_versions=['py2', 'py3']) }}
|
|
|
|
%description -n python-debtcollector-doc
|
|
A collection of Python deprecation patterns and strategies that help
|
|
you collect your technical debt in a non-destructive manner. The goal
|
|
of this library is to provide well documented developer facing
|
|
deprecation patterns that start of with a basic set and can expand
|
|
into a larger set of patterns as time goes on. The desired output of
|
|
these patterns is to apply the warnings module to emit
|
|
DeprecationWarning or PendingDeprecationWarning or similar derivative
|
|
to developers using libraries (or potentially applications) about
|
|
future deprecations.
|
|
|
|
This package contains documentation in HTML format.
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
%py_req_cleanup
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
|
|
|
%build
|
|
%python_build
|
|
|
|
# generate html doc
|
|
%{__python2} setup.py build_sphinx
|
|
# remove the Sphinx-build leftovers
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
%check
|
|
%{python_expand rm -rf .testrepository
|
|
$python setup.py test
|
|
}
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python2_sitelib}/%{pypi_name}
|
|
%{python2_sitelib}/%{pypi_name}-*.egg-info
|
|
|
|
%files -n python-debtcollector-doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|