Skip to content

Commit c99354c

Browse files
committed
Rename from jaraco.functools to pypi-jaraco.functools
0 parents  commit c99354c

17 files changed

+350
-0
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.*~
2+
*~
3+
*.info
4+
*.mod
5+
*.swp
6+
.repo-index
7+
*.log
8+
build.log.round*
9+
*.tar.*
10+
*.tgz
11+
!*.tar.*.*
12+
*.zip
13+
*.jar
14+
*.pom
15+
*.xml
16+
commitmsg
17+
results/
18+
rpms/
19+
for-review.txt

ChangeLog

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
2.0
2+
===
3+
4+
Switch to `pkgutil namespace technique
5+
<https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages>`_
6+
for the ``jaraco`` namespace.
7+
8+
1.20
9+
====
10+
11+
Added ``save_method_args``, adopted from ``irc.functools``.
12+
13+
1.19
14+
====
15+
16+
Added ``.reset`` support to ``once``.
17+
18+
1.18
19+
====
20+
21+
Add ``result_invoke`` decorator.
22+
23+
1.17
24+
====
25+
26+
Add ``retry`` decorator.
27+
28+
1.16
29+
====
30+
31+
#7: ``retry_call`` now accepts infinity for the ``retries``
32+
parameter.
33+
34+
1.15.2
35+
======
36+
37+
Refresh packaging.
38+
39+
1.15.1
40+
======
41+
42+
Fix assign_params on Python 2.
43+
44+
1.15
45+
====
46+
47+
Add ``assign_params`` function.
48+
49+
1.14
50+
====
51+
52+
Add ``pass_none`` decorator function.
53+
54+
1.13
55+
====
56+
57+
Add ``print_yielded`` func implementing the func of the same
58+
name found in autocommand docs.
59+
60+
1.12
61+
====
62+
63+
Issue #6: Added a bit of documentation and xfail tests showing
64+
that the ``method_cache`` can't be used with other decorators
65+
such as ``property``.
66+
67+
1.11
68+
====
69+
70+
Include dates and links in changelog.
71+
72+
1.10
73+
====
74+
75+
Use Github for continuous deployment to PyPI.
76+
77+
1.9
78+
===
79+
80+
Add ``retry_call``, a general-purpose function retry mechanism.
81+
See ``test_functools`` for tests and example usage.
82+
83+
1.8
84+
===
85+
86+
More generous handling of missing lru_cache when installed on
87+
Python 2 and older pip. Now all functools except ``method_cache``
88+
will continue to work even if ``backports.functools_lru_cache``
89+
is not installed. Also allows functools32 as a fallback if
90+
available.
91+
92+
1.7
93+
===
94+
95+
Moved hosting to github.
96+
97+
1.6
98+
===
99+
100+
``method_cache`` now accepts a cache_wrapper parameter, allowing
101+
for custom parameters to an ``lru_cache`` or an entirely different
102+
cache implementation.
103+
104+
Use ``backports.functools_lru_cache`` to provide ``lru_cache`` for
105+
Python 2.
106+
107+
1.5
108+
===
109+
110+
Implement ``Throttler`` as a descriptor so it may be used to decorate
111+
methods. Introduces ``first_invoke`` function.
112+
113+
Fixed failure in Throttler on Python 2 due to improper use of integer
114+
division.
115+
116+
1.4
117+
===
118+
119+
Added ``Throttler`` class from `irc <https://bitbucket.org/jaraco/irc>`_.
120+
121+
1.3
122+
===
123+
124+
Added ``call_aside`` decorator.
125+
126+
1.2
127+
===
128+
129+
Added ``apply`` decorator.
130+
131+
1.0
132+
===
133+
134+
Initial release drawn from jaraco.util.

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PKG_NAME := pypi-jaraco.functools
2+
URL = https://files.pythonhosted.org/packages/1e/c8/6733dc1c6afca663c08534e7f4e7b14751019f6dd3476c40dbecb3904449/jaraco.functools-3.5.0.tar.gz
3+
ARCHIVES =
4+
5+
include ../common/Makefile.common

buildreq_add

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file contains additional build requirements that did not get
2+
# picked up automatically. One name per line, no whitespace.
3+
setuptools_scm

buildreq_ban

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains build requirements that get picked up but are
2+
# undesirable. One entry per line, no whitespace.

excludes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains the output files that need %exclude. Full path
2+
# names, one per line.

options.conf

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[package]
2+
name = pypi-jaraco.functools
3+
url = https://files.pythonhosted.org/packages/1e/c8/6733dc1c6afca663c08534e7f4e7b14751019f6dd3476c40dbecb3904449/jaraco.functools-3.5.0.tar.gz
4+
archives =
5+
giturl = https://github.com/jaraco/jaraco.functools.git
6+
domain =
7+
alias =
8+
9+
[autospec]
10+
# build 32 bit libraries
11+
32bit = false
12+
# allow package to build with test failures
13+
allow_test_failures = false
14+
# unset %build ld_as_needed variable
15+
asneeded = false
16+
# this package is trusted enough to automatically update (used by other tools)
17+
autoupdate = true
18+
# extend flags with '-std=gnu++98
19+
broken_c++ = false
20+
# disable parallelization during build
21+
broken_parallel_build = false
22+
# this package is a library compatibility package and only ships versioned library files
23+
compat = false
24+
# set conservative build flags
25+
conservative_flags = false
26+
# dev package requires the extras to be installed
27+
dev_requires_extras = false
28+
# pass -ffast-math to compiler
29+
fast-math = false
30+
# optimize build for speed over size
31+
funroll-loops = false
32+
# set flags to smallest -02 flags possible
33+
insecure_build = false
34+
# do not remove static libraries
35+
keepstatic = false
36+
# do not require autostart subpackage
37+
no_autostart = false
38+
# do not generate debuginfo for this package
39+
nodebug = false
40+
# disable stripping binaries
41+
nostrip = false
42+
# configure build also for openmpi
43+
openmpi = false
44+
# optimize build for size over speed
45+
optimize_size = false
46+
# set profile for pgo
47+
pgo = false
48+
# set flags for security-sensitive builds
49+
security_sensitive = false
50+
# package is only used by servers
51+
server = false
52+
# do not run test suite
53+
skip_tests = false
54+
# add .so files to the lib package instead of dev
55+
so_to_lib = false
56+
# configure build for avx2
57+
use_avx2 = false
58+
# configure build for avx512
59+
use_avx512 = false
60+
# add clang flags
61+
use_clang = false
62+
# configure build for lto
63+
use_lto = false
64+
# require package verification for build
65+
verify_required = false
66+

pkgconfig_add

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains additional pkgconfig build requirements that did
2+
# not get picked up automatically. One name per line, no whitespace.

pkgconfig_ban

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains pkgconfig build requirements that get picked up
2+
# but are undesirable. One entry per line, no whitespace.

pypi-jaraco.functools.spec

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#
2+
# This file is auto-generated. DO NOT EDIT
3+
# Generated by: autospec.py
4+
#
5+
Name : pypi-jaraco.functools
6+
Version : 3.5.0
7+
Release : 35
8+
URL : https://files.pythonhosted.org/packages/1e/c8/6733dc1c6afca663c08534e7f4e7b14751019f6dd3476c40dbecb3904449/jaraco.functools-3.5.0.tar.gz
9+
Source0 : https://files.pythonhosted.org/packages/1e/c8/6733dc1c6afca663c08534e7f4e7b14751019f6dd3476c40dbecb3904449/jaraco.functools-3.5.0.tar.gz
10+
Summary : Functools like those found in stdlib
11+
Group : Development/Tools
12+
License : MIT
13+
Requires: pypi-jaraco.functools-license = %{version}-%{release}
14+
Requires: pypi-jaraco.functools-python = %{version}-%{release}
15+
Requires: pypi-jaraco.functools-python3 = %{version}-%{release}
16+
BuildRequires : buildreq-distutils3
17+
Provides: jaraco.functools
18+
Provides: jaraco.functools-python
19+
Provides: jaraco.functools-python3
20+
BuildRequires : pluggy
21+
BuildRequires : py-python
22+
BuildRequires : pypi(more_itertools)
23+
BuildRequires : pypi(setuptools)
24+
BuildRequires : pypi(setuptools_scm)
25+
BuildRequires : pytest
26+
BuildRequires : setuptools_scm
27+
BuildRequires : tox
28+
BuildRequires : virtualenv
29+
30+
%description
31+
.. image:: https://img.shields.io/pypi/v/jaraco.functools.svg
32+
:target: `PyPI link`_
33+
34+
%package license
35+
Summary: license components for the pypi-jaraco.functools package.
36+
Group: Default
37+
38+
%description license
39+
license components for the pypi-jaraco.functools package.
40+
41+
42+
%package python
43+
Summary: python components for the pypi-jaraco.functools package.
44+
Group: Default
45+
Requires: pypi-jaraco.functools-python3 = %{version}-%{release}
46+
47+
%description python
48+
python components for the pypi-jaraco.functools package.
49+
50+
51+
%package python3
52+
Summary: python3 components for the pypi-jaraco.functools package.
53+
Group: Default
54+
Requires: python3-core
55+
Provides: pypi(jaraco.functools)
56+
Requires: pypi(more_itertools)
57+
58+
%description python3
59+
python3 components for the pypi-jaraco.functools package.
60+
61+
62+
%prep
63+
%setup -q -n jaraco.functools-3.5.0
64+
cd %{_builddir}/jaraco.functools-3.5.0
65+
66+
%build
67+
export http_proxy=http://127.0.0.1:9/
68+
export https_proxy=http://127.0.0.1:9/
69+
export no_proxy=localhost,127.0.0.1,0.0.0.0
70+
export LANG=C.UTF-8
71+
export SOURCE_DATE_EPOCH=1641447495
72+
export GCC_IGNORE_WERROR=1
73+
export CFLAGS="$CFLAGS -fno-lto "
74+
export FCFLAGS="$FFLAGS -fno-lto "
75+
export FFLAGS="$FFLAGS -fno-lto "
76+
export CXXFLAGS="$CXXFLAGS -fno-lto "
77+
export MAKEFLAGS=%{?_smp_mflags}
78+
python3 -m build --wheel --skip-dependency-check --no-isolation
79+
80+
%install
81+
export MAKEFLAGS=%{?_smp_mflags}
82+
rm -rf %{buildroot}
83+
mkdir -p %{buildroot}/usr/share/package-licenses/pypi-jaraco.functools
84+
cp %{_builddir}/jaraco.functools-3.5.0/LICENSE %{buildroot}/usr/share/package-licenses/pypi-jaraco.functools/8e6689d37f82d5617b7f7f7232c94024d41066d1
85+
pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl
86+
echo ----[ mark ]----
87+
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
88+
echo ----[ mark ]----
89+
90+
%files
91+
%defattr(-,root,root,-)
92+
93+
%files license
94+
%defattr(0644,root,root,0755)
95+
/usr/share/package-licenses/pypi-jaraco.functools/8e6689d37f82d5617b7f7f7232c94024d41066d1
96+
97+
%files python
98+
%defattr(-,root,root,-)
99+
100+
%files python3
101+
%defattr(-,root,root,-)
102+
/usr/lib/python3*/*

release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
35

requires_add

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains additional runtime requirements that did not get
2+
# picked up automatically. One name per line, no whitespace.

requires_ban

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file contains runtime requirements that get picked up but are
2+
# undesirable. One entry per line, no whitespace.

testresults

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Total : 0
2+
Pass : 0
3+
Fail : 0
4+
Skip : 0
5+
XFail : 0

upstream

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3a2b3f8d538c3dcbf71d7cc1365cc7536df34dd0/jaraco.functools-3.5.0.tar.gz

versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.5.0

whatrequires

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file contains recursive sources that require this package

0 commit comments

Comments
 (0)