Skip to content

Commit

Permalink
pypi-inflect: Autospec creation for update from version 5.6.2 to vers…
Browse files Browse the repository at this point in the history
…ion 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.
  • Loading branch information
fenrus75 committed Aug 2, 2022
1 parent a6ae536 commit e4579a5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,5 +1,5 @@
PKG_NAME := pypi-inflect
URL = https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
URL = https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
ARCHIVES =

include ../common/Makefile.common
2 changes: 1 addition & 1 deletion options.conf
@@ -1,6 +1,6 @@
[package]
name = pypi-inflect
url = https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
url = https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
archives =
giturl = https://github.com/jaraco/inflect/
domain =
Expand Down
20 changes: 11 additions & 9 deletions pypi-inflect.spec
Expand Up @@ -3,10 +3,10 @@
# Generated by: autospec.py
#
Name : pypi-inflect
Version : 5.6.2
Release : 11
URL : https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
Source0 : https://files.pythonhosted.org/packages/cb/db/cae5d8524c4b5e574c281895b212062f3b06d0e14186904ed71c538b4e90/inflect-5.6.2.tar.gz
Version : 6.0.0
Release : 12
URL : https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/93/b3/f53dae21efbc41231797d136f97414a441b9e4cc51ee72a1780793b84bed/inflect-6.0.0.tar.gz
Summary : Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words
Group : Development/Tools
License : MIT
Expand All @@ -15,6 +15,7 @@ Requires: pypi-inflect-python = %{version}-%{release}
Requires: pypi-inflect-python3 = %{version}-%{release}
BuildRequires : buildreq-distutils3
BuildRequires : pypi(py)
BuildRequires : pypi(pydantic)
BuildRequires : pypi(setuptools)
BuildRequires : pypi(setuptools_scm)
BuildRequires : pypi-pluggy
Expand Down Expand Up @@ -50,24 +51,25 @@ Summary: python3 components for the pypi-inflect package.
Group: Default
Requires: python3-core
Provides: pypi(inflect)
Requires: pypi(pydantic)

%description python3
python3 components for the pypi-inflect package.


%prep
%setup -q -n inflect-5.6.2
cd %{_builddir}/inflect-5.6.2
%setup -q -n inflect-6.0.0
cd %{_builddir}/inflect-6.0.0
pushd ..
cp -a inflect-5.6.2 buildavx2
cp -a inflect-6.0.0 buildavx2
popd

%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1657924384
export SOURCE_DATE_EPOCH=1659484117
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
Expand All @@ -92,7 +94,7 @@ popd
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/pypi-inflect
cp %{_builddir}/inflect-5.6.2/LICENSE %{buildroot}/usr/share/package-licenses/pypi-inflect/8e6689d37f82d5617b7f7f7232c94024d41066d1
cp %{_builddir}/inflect-%{version}/LICENSE %{buildroot}/usr/share/package-licenses/pypi-inflect/8e6689d37f82d5617b7f7f7232c94024d41066d1
pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
Expand Down
2 changes: 1 addition & 1 deletion release
@@ -1 +1 @@
11
12
2 changes: 1 addition & 1 deletion upstream
@@ -1 +1 @@
2cf147ccdca9bf4b2ae3f0fbb8eb4ebf2836959f/inflect-5.6.2.tar.gz
79c110d43122db8c61e7ee6d22b6f376ab43ab86/inflect-6.0.0.tar.gz
2 changes: 1 addition & 1 deletion versions
@@ -1 +1 @@
5.6.2
6.0.0

0 comments on commit e4579a5

Please sign in to comment.