]> git.pld-linux.org Git - packages/python-debtcollector.git/commitdiff
- updated to 1.22.0 master auto/th/python-debtcollector-1.22.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 19 Jan 2024 21:32:39 +0000 (22:32 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 19 Jan 2024 21:32:39 +0000 (22:32 +0100)
python-debtcollector.spec

index fe21cf5b8ecdc426c887e2944a7648f420cdf12e..74ce39f28438326d1ee8ea8501fe49b3cc250f1b 100644 (file)
@@ -1,33 +1,56 @@
 #
 # Conditional build:
-%bcond_with    doc     # do build doc (missing deps)
-%bcond_with    tests   # do perform "make test" (missing deps)
+%bcond_without doc     # Sphinx documentation
+%bcond_with    tests   # unit tests (missing deps)
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
 
 Summary:       A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner
+Summary(pl.UTF-8):     Zbiór wzorców i strategii odchodzenia, pozwalający gromadzić dług technologiczny w sposób niedestruktywny
 Name:          python-debtcollector
-Version:       1.17.0
-Release:       7
-License:       Apache
+# keep 1.x here for python2 support
+Version:       1.22.0
+Release:       1
+License:       Apache v2.0
 Group:         Libraries/Python
 Source0:       https://files.pythonhosted.org/packages/source/d/debtcollector/debtcollector-%{version}.tar.gz
-# Source0-md5: f9d8b024ca72cf50505a48f4691fcdc3
-URL:           https://pypi.python.org/pypi/debtcollector
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+# Source0-md5: 0d12694a93a16824b1c67bece341229e
+URL:           https://pypi.org/project/debtcollector/
 %if %{with python2}
-BuildRequires: python-pbr >= 2.0.0
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-pbr >= 3.0.0
 BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-fixtures >= 3.0.0
+BuildRequires: python-funcsigs >= 1.0.0
+BuildRequires: python-six >= 1.10.0
+BuildRequires: python-stestr >= 2.0.0
+BuildRequires: python-subunit >= 1.0.0
+BuildRequires: python-testtools >= 2.2.0
+BuildRequires: python-wrapt >= 1.7.0
+%endif
 %endif
 %if %{with python3}
-BuildRequires: python3-pbr >= 2.0.0
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-pbr >= 3.0.0
 BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-fixtures >= 3.0.0
+BuildRequires: python3-funcsigs >= 1.0.0
+BuildRequires: python3-six >= 1.10.0
+BuildRequires: python3-stestr >= 2.0.0
+BuildRequires: python3-subunit >= 1.0.0
+BuildRequires: python3-testtools >= 2.2.0
+BuildRequires: python3-wrapt >= 1.7.0
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python-openstackdocstheme >= 1.18.1
+BuildRequires: python-reno >= 2.5.0
+BuildRequires: sphinx-pdg-2 >= 1.7.0
 %endif
-Requires:      python-funcsigs >= 0.4
-Requires:      python-pbr >= 2.0.0
-Requires:      python-six >= 1.9.0
-Requires:      python-wrapt >= 1.7.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,12 +65,21 @@ DeprecationWarning or PendingDeprecationWarning or similar derivative
 to developers using libraries (or potentially applications) about
 future deprecations.
 
+%description -l pl.UTF-8
+Zbiór wzorców i strategii odchodzenia, pozwalający gromadzić dług
+technologiczny w sposób niedestruktywny. Celem biblioteki jest
+dostarczenie dobrze udokumentowanych, wychodzących naprzeciw
+programistom wzorców odchodzenia, które zaczynają się od podstawowego
+zbioru i mogą rozszerzać do większego zbioru wzorców w miarę upływu
+czasu. Pożądanym wyjściem wzorców jest wykorzystanie modułu warnings
+do emitowania wyjątków DeprecationWarning, PendingDeprecationWarning
+lub pochodnych programistom wykorzystującym biblioteki (ew. aplikacje)
+o przyszłych odchodzących funkcjach.
+
 %package -n python3-debtcollector
 Summary:       A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner
+Summary(pl.UTF-8):     Zbiór wzorców i strategii odchodzenia, pozwalający gromadzić dług technologiczny w sposób niedestruktywny
 Group:         Libraries/Python
-Requires:      python3-pbr >= 2.0.0
-Requires:      python3-six >= 1.9.0
-Requires:      python3-wrapt >= 1.7.0
 
 %description -n python3-debtcollector
 A collection of Python deprecation patterns and strategies that help
@@ -60,6 +92,17 @@ DeprecationWarning or PendingDeprecationWarning or similar derivative
 to developers using libraries (or potentially applications) about
 future deprecations.
 
+%description -n python3-debtcollector -l pl.UTF-8
+Zbiór wzorców i strategii odchodzenia, pozwalający gromadzić dług
+technologiczny w sposób niedestruktywny. Celem biblioteki jest
+dostarczenie dobrze udokumentowanych, wychodzących naprzeciw
+programistom wzorców odchodzenia, które zaczynają się od podstawowego
+zbioru i mogą rozszerzać do większego zbioru wzorców w miarę upływu
+czasu. Pożądanym wyjściem wzorców jest wykorzystanie modułu warnings
+do emitowania wyjątków DeprecationWarning, PendingDeprecationWarning
+lub pochodnych programistom wykorzystującym biblioteki (ew. aplikacje)
+o przyszłych odchodzących funkcjach.
+
 %package apidocs
 Summary:       API documentation for Python debtcollector module
 Summary(pl.UTF-8):     Dokumentacja API modułu Pythona debtcollector
@@ -84,9 +127,7 @@ Dokumentacja API modułu Pythona debtcollector.
 %endif
 
 %if %{with doc}
-cd doc
-%{__make} -j1 html
-rm -rf _build/html/_sources
+sphinx-build-2 -b html doc/source doc/build/html
 %endif
 
 %install
@@ -96,14 +137,14 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %py_postclean
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/debtcollector/tests
 %endif
 
 %if %{with python3}
 %py3_install
 
-# python dependency generator does not support conditionals
-# remove python2-only dependencies here
-sed -i -e"/python_version=='2./,+1 d" $RPM_BUILD_ROOT%{py3_sitescriptdir}/debtcollector-%{version}-py*.egg-info/requires.txt
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/debtcollector/tests
 %endif
 
 %clean
@@ -128,5 +169,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc doc/_build/html/*
+%doc doc/build/html/{_modules,_static,contributor,install,reference,user,*.html,*.js}
 %endif
This page took 0.175159 seconds and 4 git commands to generate.