[packages/python3-sphinxcontrib-asyncio] - python-sphinxcontrib-asyncio.spec updated to 0.3.0 for python 3.5+/Sphinx 3+
qboosh
qboosh at pld-linux.org
Mon Mar 28 19:52:14 CEST 2022
commit d6f0f59c4631c95339776c9a0e94677bd95543e8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 28 19:51:54 2022 +0200
- python-sphinxcontrib-asyncio.spec updated to 0.3.0 for python 3.5+/Sphinx 3+
...ncio.spec => python3-sphinxcontrib-asyncio.spec | 74 ++++------------------
1 file changed, 11 insertions(+), 63 deletions(-)
---
diff --git a/python-sphinxcontrib-asyncio.spec b/python3-sphinxcontrib-asyncio.spec
similarity index 55%
rename from python-sphinxcontrib-asyncio.spec
rename to python3-sphinxcontrib-asyncio.spec
index 22586b0..2a967da 100644
--- a/python-sphinxcontrib-asyncio.spec
+++ b/python3-sphinxcontrib-asyncio.spec
@@ -1,41 +1,31 @@
#
# Conditional build:
%bcond_without doc # Sphinx documentation
-%bcond_with tests # unit tests (not included in release tarball)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with tests # unit tests (not included in sdist)
Summary: Sphinx extension to support coroutines in markup
Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
-Name: python-sphinxcontrib-asyncio
-Version: 0.2.0
-Release: 4
+Name: python3-sphinxcontrib-asyncio
+Version: 0.3.0
+Release: 1
License: Apache v2
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sphinxcontrib-asyncio/
Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
-# Source0-md5: ad3372cb3be157a98834c2f121674862
+# Source0-md5: 5445823a927f3368dd81b9061bec0055
URL: https://pypi.org/project/sphinxcontrib-asyncio/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-modules >= 1:3.5
BuildRequires: python3-setuptools
%if %{with tests}
+BuildRequires: python3-Sphinx >= 3.0
BuildRequires: python3-pytest
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: sphinx-pdg
+BuildRequires: sphinx-pdg >= 3.0
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.5
Requires: python-sphinxcontrib
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,19 +36,6 @@ Sphinx extension for adding asyncio-specific markups.
%description -l pl.UTF-8
Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
-%package -n python3-sphinxcontrib-asyncio
-Summary: Sphinx extension to support coroutines in markup
-Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.3
-Requires: python3-sphinxcontrib
-
-%description -n python3-sphinxcontrib-asyncio
-Sphinx extension for adding asyncio-specific markups.
-
-%description -n python3-sphinxcontrib-asyncio -l pl.UTF-8
-Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
-
%package apidocs
Summary: API documentation for Python sphinxcontrib-asyncio module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona sphinxcontrib-asyncio
@@ -74,21 +51,12 @@ Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
%setup -q -n sphinxcontrib-asyncio-%{version}
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest tests
%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
@@ -98,44 +66,24 @@ PYTHONPATH=$(pwd) \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-# provides by python-sphinxcontrib in PLD
-%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib/__init__.py*
-%endif
-
-%if %{with python3}
%py3_install
# provides by python3-sphinxcontrib in PLD
%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__init__.py \
$RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__pycache__/__init__.*.py*
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGES.rst README.rst
-%{py_sitescriptdir}/sphinxcontrib/asyncio.py[co]
-%{py_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinxcontrib-asyncio
-%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
%{py3_sitescriptdir}/sphinxcontrib/asyncio.py
%{py3_sitescriptdir}/sphinxcontrib/__pycache__/asyncio.cpython-*.py[co]
%{py3_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinxcontrib-asyncio.git/commitdiff/d6f0f59c4631c95339776c9a0e94677bd95543e8
More information about the pld-cvs-commit
mailing list