Skip to content

Commit e4579a5

Browse files
committed
pypi-inflect: Autospec creation for update from version 5.6.2 to version 6.0.0
Jason R. Coombs (12): Ran pre-commit autoupdate Use '-dev' for every Python version. Ref actions/setup-python#213. Use Python 3.11 for cutting releases. Combine common elements of compare() Add doc test capturing expectation when an empty word is passed. Ref #157. Expected error is a pydantic ValidationError Define a word as a string of one or more characters and validate that assumption in .compare. Fixes #157. Apply validation on other compare* methods. Update changelog. Additionally validate words in other public methods. Manually move the comment after reformatting by black. Ref psf/black#2843. Include the noqa twice, once for Python 3.7 and again for later Pythons.
1 parent a6ae536 commit e4579a5

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PKG_NAME := pypi-inflect
2-
URL = https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
2+
URL = https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
33
ARCHIVES =
44

55
include ../common/Makefile.common

options.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = pypi-inflect
3-
url = https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
3+
url = https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
44
archives =
55
giturl = https://github.com/jaraco/inflect/
66
domain =

pypi-inflect.spec

+11-9
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Generated by: autospec.py
44
#
55
Name : pypi-inflect
6-
Version : 5.6.2
7-
Release : 11
8-
URL : https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
9-
Source0 : https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
6+
Version : 6.0.0
7+
Release : 12
8+
URL : https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
9+
Source0 : https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
1010
Summary : Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words
1111
Group : Development/Tools
1212
License : MIT
@@ -15,6 +15,7 @@ Requires: pypi-inflect-python = %{version}-%{release}
1515
Requires: pypi-inflect-python3 = %{version}-%{release}
1616
BuildRequires : buildreq-distutils3
1717
BuildRequires : pypi(py)
18+
BuildRequires : pypi(pydantic)
1819
BuildRequires : pypi(setuptools)
1920
BuildRequires : pypi(setuptools_scm)
2021
BuildRequires : pypi-pluggy
@@ -50,24 +51,25 @@ Summary: python3 components for the pypi-inflect package.
5051
Group: Default
5152
Requires: python3-core
5253
Provides: pypi(inflect)
54+
Requires: pypi(pydantic)
5355

5456
%description python3
5557
python3 components for the pypi-inflect package.
5658

5759

5860
%prep
59-
%setup -q -n inflect-5.6.2
60-
cd %{_builddir}/inflect-5.6.2
61+
%setup -q -n inflect-6.0.0
62+
cd %{_builddir}/inflect-6.0.0
6163
pushd ..
62-
cp -a inflect-5.6.2 buildavx2
64+
cp -a inflect-6.0.0 buildavx2
6365
popd
6466

6567
%build
6668
export http_proxy=http://127.0.0.1:9/
6769
export https_proxy=http://127.0.0.1:9/
6870
export no_proxy=localhost,127.0.0.1,0.0.0.0
6971
export LANG=C.UTF-8
70-
export SOURCE_DATE_EPOCH=1657924384
72+
export SOURCE_DATE_EPOCH=1659484117
7173
export GCC_IGNORE_WERROR=1
7274
export AR=gcc-ar
7375
export RANLIB=gcc-ranlib
@@ -92,7 +94,7 @@ popd
9294
export MAKEFLAGS=%{?_smp_mflags}
9395
rm -rf %{buildroot}
9496
mkdir -p %{buildroot}/usr/share/package-licenses/pypi-inflect
95-
cp %{_builddir}/inflect-5.6.2/LICENSE %{buildroot}/usr/share/package-licenses/pypi-inflect/8e6689d37f82d5617b7f7f7232c94024d41066d1
97+
cp %{_builddir}/inflect-%{version}/LICENSE %{buildroot}/usr/share/package-licenses/pypi-inflect/8e6689d37f82d5617b7f7f7232c94024d41066d1
9698
pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl
9799
echo ----[ mark ]----
98100
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :

release

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11
1+
12

upstream

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2cf147ccdca9bf4b2ae3f0fbb8eb4ebf2836959f/inflect-5.6.2.tar.gz
1+
79c110d43122db8c61e7ee6d22b6f376ab43ab86/inflect-6.0.0.tar.gz

versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.6.2
1+
6.0.0

0 commit comments

Comments
 (0)