]> git.pld-linux.org Git - packages/python3-inflect.git/commitdiff
- python-inflect.spec updated to 5.4.0 for python 3.7+ auto/th/python3-inflect-5.4.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 6 Mar 2022 20:34:13 +0000 (21:34 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 6 Mar 2022 20:34:13 +0000 (21:34 +0100)
python-inflect.spec [deleted file]
python3-inflect.spec [new file with mode: 0644]

diff --git a/python-inflect.spec b/python-inflect.spec
deleted file mode 100644 (file)
index e35f625..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-#
-# Conditional build:
-%bcond_without doc     # Sphinx documentation
-%bcond_without tests   # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary:       Correctly generate plurals, singular nouns, ordinals, indefinite articles
-Summary(pl.UTF-8):     Poprawne generowanie liczby mnogiej i pojedynczej, liczebników, przedimków nieokreślonych
-Name:          python-inflect
-# keep 3.x here for python2 support
-Version:       3.0.2
-Release:       1
-License:       MIT
-Group:         Libraries/Python
-#Source0Download: https://pypi.org/simple/inflect/
-Source0:       https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
-# Source0-md5: 29c60edf9917762e24c3b9aef63701c5
-URL:           https://pypi.org/project/inflect/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools >= 1:31.0.1
-BuildRequires: python-setuptools_scm >= 1.15.0
-%if %{with tests}
-BuildRequires: python-importlib_metadata
-BuildRequires: python-nose
-BuildRequires: python-pytest >= 3.5
-BuildRequires: python-pytest-black-multipy
-#BuildRequires:        python-pytest-checkdocs >= 1.2.3
-BuildRequires: python-pytest-cov
-BuildRequires: python-pytest-flake8
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools >= 1:31.0.1
-BuildRequires: python3-setuptools_scm >= 1.15.0
-%if %{with tests}
-BuildRequires: python3-importlib_metadata
-BuildRequires: python3-nose
-BuildRequires: python3-pytest >= 3.5
-BuildRequires: python3-pytest-black-multipy
-#BuildRequires:        python3-pytest-checkdocs >= 1.2.3
-BuildRequires: python3-pytest-cov
-BuildRequires: python3-pytest-flake8
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires: python-jaraco.packaging >= 3.2
-BuildRequires: python-rst.linker >= 1.9
-BuildRequires: sphinx-pdg-2
-%endif
-Requires:      python-modules >= 1:2.7
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Correctly generate plurals, singular nouns, ordinals, indefinite
-articles; convert numbers to words.
-
-%description -l pl.UTF-8
-Poprawne generowanie liczby mnogiej i pojedynczej, liczebników,
-przedimków nieokreślonych; przekształcanie liczb na słowa.
-
-%package -n python3-inflect
-Summary:       Correctly generate plurals, singular nouns, ordinals, indefinite articles
-Summary(pl.UTF-8):     Poprawne generowanie liczby mnogiej i pojedynczej, liczebników, przedimków nieokreślonych
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.5
-
-%description -n python3-inflect
-Correctly generate plurals, singular nouns, ordinals, indefinite
-articles; convert numbers to words.
-
-%description -n python3-inflect -l pl.UTF-8
-Poprawne generowanie liczby mnogiej i pojedynczej, liczebników,
-przedimków nieokreślonych; przekształcanie liczb na słowa.
-
-%package apidocs
-Summary:       API documentation for Python inflect module
-Summary(pl.UTF-8):     Dokumentacja API modułu Pythona inflect
-Group:         Documentation
-
-%description apidocs
-API documentation for Python inflect module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona inflect.
-
-%prep
-%setup -q -n inflect-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-ln -snf ../tests build-2/tests
-cd build-2
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_black_multipy,pytest_flake8,pytest_cov.plugin \
-PYTHONPATH=$(echo $(pwd)/lib) \
-%{__python} -m pytest tests
-cd ..
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-ln -snf ../tests build-2/tests
-cd build-3
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_black_multipy,pytest_flake8,pytest_cov.plugin \
-PYTHONPATH=$(echo $(pwd)/lib) \
-%{__python3} -m pytest tests
-cd ..
-%endif
-%endif
-
-%if %{with doc}
-PYTHONPATH=$(pwd) \
-sphinx-build-2 -b html docs docs/build/html
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py_sitescriptdir}/inflect.py[co]
-%{py_sitescriptdir}/inflect-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-inflect
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py3_sitescriptdir}/inflect.py
-%{py3_sitescriptdir}/__pycache__/inflect.cpython-*.py[co]
-%{py3_sitescriptdir}/inflect-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/build/html/{_static,*.html,*.js}
-%endif
diff --git a/python3-inflect.spec b/python3-inflect.spec
new file mode 100644 (file)
index 0000000..eed8738
--- /dev/null
@@ -0,0 +1,102 @@
+# TODO: finish doc and tests (BRs)
+#
+# Conditional build:
+%bcond_with    doc     # Sphinx documentation
+%bcond_with    tests   # unit tests
+
+Summary:       Correctly generate plurals, singular nouns, ordinals, indefinite articles
+Summary(pl.UTF-8):     Poprawne generowanie liczby mnogiej i pojedynczej, liczebników, przedimków nieokreślonych
+Name:          python3-inflect
+Version:       5.4.0
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/inflect/
+Source0:       https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
+# Source0-md5: 98e2983eba8db51c77adace0bc16b711
+URL:           https://pypi.org/project/inflect/
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools >= 1:31.0.1
+BuildRequires: python3-setuptools_scm >= 3.4.1
+BuildRequires: python3-toml
+%if %{with tests}
+BuildRequires: python3-pygments
+BuildRequires: python3-pytest >= 6
+BuildRequires: python3-pytest-black >= 0.3.7
+#BuildRequires:        python3-pytest-checkdocs >= 2.4
+BuildRequires: python3-pytest-cov
+BuildRequires: python3-pytest-enabler >= 1.0.1
+BuildRequires: python3-pytest-flake8
+BuildRequires: python3-pytest-mypy
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python3-jaraco.packaging >= 8.2
+BuildRequires: python3-jaraco.tidelift >= 1.4
+BuildRequires: python3-rst.linker >= 1.9
+BuildRequires: sphinx-pdg-3
+%endif
+Requires:      python3-modules >= 1:3.7
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Correctly generate plurals, singular nouns, ordinals, indefinite
+articles; convert numbers to words.
+
+%description -l pl.UTF-8
+Poprawne generowanie liczby mnogiej i pojedynczej, liczebników,
+przedimków nieokreślonych; przekształcanie liczb na słowa.
+
+%package apidocs
+Summary:       API documentation for Python inflect module
+Summary(pl.UTF-8):     Dokumentacja API modułu Pythona inflect
+Group:         Documentation
+
+%description apidocs
+API documentation for Python inflect module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona inflect.
+
+%prep
+%setup -q -n inflect-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+ln -snf ../tests build-3/tests
+cd build-3
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_black_multipy,pytest_flake8,pytest_cov.plugin \
+PYTHONPATH=$(echo $(pwd)/build-3/lib) \
+%{__python3} -m pytest tests
+cd ..
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE README.rst
+%{py3_sitescriptdir}/inflect
+%{py3_sitescriptdir}/inflect-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,*.html,*.js}
+%endif
This page took 0.055823 seconds and 4 git commands to generate.