timeout-iterator 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/pypi-publish.yml +7 -15
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/python-test.yml +8 -18
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.gitignore +5 -7
- timeout_iterator-0.2.2/LICENSE +11 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/PKG-INFO +16 -6
- timeout_iterator-0.2.2/pyproject.toml +65 -0
- timeout_iterator-0.2.2/setup.cfg +4 -0
- timeout_iterator-0.2.2/timeout_iterator/__init__.py +7 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/_version.py +2 -2
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/PKG-INFO +16 -6
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/SOURCES.txt +2 -2
- timeout_iterator-0.2.2/uv.lock +403 -0
- timeout_iterator-0.2.0/poetry.lock +0 -509
- timeout_iterator-0.2.0/pyproject.toml +0 -46
- timeout_iterator-0.2.0/setup.cfg +0 -34
- timeout_iterator-0.2.0/timeout_iterator/__init__.py +0 -5
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/dependabot.yml +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/renovate.json5 +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/gitignore-in.yml +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/happy.yml +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/spellcheck.yml +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.gitignore.in +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/README.md +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/__init__.py +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/test_terminate.py +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/test_without_terminate.py +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/terminate.py +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/without_terminate.py +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/dependency_links.txt +0 -0
- {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/top_level.txt +0 -0
|
@@ -22,24 +22,16 @@ jobs:
|
|
|
22
22
|
with:
|
|
23
23
|
python-version: ${{ env.python_version }}
|
|
24
24
|
|
|
25
|
-
- name: Set up
|
|
26
|
-
uses:
|
|
25
|
+
- name: Set up uv
|
|
26
|
+
uses: astral-sh/setup-uv@v5
|
|
27
27
|
|
|
28
|
-
- name:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
key: ${{ runner.os }}-build-${{ env.python_version }}-${{ hashFiles('**/poetry.lock') }}
|
|
33
|
-
restore-keys: |
|
|
34
|
-
${{ runner.os }}-build-${{ env.python_version }}-${{ hashFiles('**/poetry.lock') }}
|
|
35
|
-
${{ runner.os }}-build-${{ env.python_version }}-
|
|
36
|
-
${{ runner.os }}-
|
|
37
|
-
|
|
38
|
-
- run: poetry install
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: |
|
|
30
|
+
uv python pin ${{ env.python_version }}
|
|
31
|
+
uv sync
|
|
39
32
|
|
|
40
33
|
- name: Build
|
|
41
|
-
|
|
42
|
-
run: poetry run poe build
|
|
34
|
+
run: uv build
|
|
43
35
|
|
|
44
36
|
- name: Publish distribution to Test PyPI
|
|
45
37
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -25,28 +25,18 @@ jobs:
|
|
|
25
25
|
with:
|
|
26
26
|
python-version: "${{ matrix.python }}"
|
|
27
27
|
|
|
28
|
-
- name: Set up
|
|
29
|
-
uses:
|
|
30
|
-
|
|
31
|
-
- name: Cache
|
|
32
|
-
uses: actions/cache@v4
|
|
33
|
-
with:
|
|
34
|
-
path: ~/.cache/pypoetry/virtualenvs
|
|
35
|
-
key: ${{ runner.os }}-build-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
|
|
36
|
-
restore-keys: |
|
|
37
|
-
${{ runner.os }}-build-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
|
|
38
|
-
${{ runner.os }}-build-${{ matrix.python }}-
|
|
39
|
-
${{ runner.os }}-
|
|
28
|
+
- name: Set up uv
|
|
29
|
+
uses: astral-sh/setup-uv@v5
|
|
40
30
|
|
|
41
31
|
- name: Install dependencies
|
|
42
|
-
run:
|
|
32
|
+
run: uv sync
|
|
43
33
|
|
|
44
34
|
- name: Lint
|
|
45
|
-
run:
|
|
35
|
+
run: uv run poe check
|
|
46
36
|
|
|
47
37
|
- name: Check Python version
|
|
48
38
|
run: |
|
|
49
|
-
actual_version=$(
|
|
39
|
+
actual_version=$(uv run python --version)
|
|
50
40
|
expected_version="Python ${{ matrix.python }}"
|
|
51
41
|
if [ "$actual_version" == *"$expected_version"* ]; then
|
|
52
42
|
echo "Expected $expected_version, but got $actual_version"
|
|
@@ -54,14 +44,14 @@ jobs:
|
|
|
54
44
|
fi
|
|
55
45
|
|
|
56
46
|
- name: Test
|
|
57
|
-
run:
|
|
47
|
+
run: uv run poe test
|
|
58
48
|
|
|
59
49
|
- name: Coverage
|
|
60
|
-
run:
|
|
50
|
+
run: uv run poe coverage-xml
|
|
61
51
|
|
|
62
52
|
- name: Upload coverage report to Codecov
|
|
63
53
|
if: matrix.python == '3.13'
|
|
64
|
-
uses: codecov/codecov-action@
|
|
54
|
+
uses: codecov/codecov-action@v5
|
|
65
55
|
with:
|
|
66
56
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
67
57
|
files: ./coverage.xml
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# -----------------------------------------------------------------------------
|
|
6
6
|
# gibo dump Linux
|
|
7
7
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
8
|
-
### https://raw.github.com/github/gitignore/
|
|
8
|
+
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Global/Linux.gitignore
|
|
9
9
|
|
|
10
10
|
*~
|
|
11
11
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
# -----------------------------------------------------------------------------
|
|
24
24
|
# gibo dump Windows
|
|
25
25
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
26
|
-
### https://raw.github.com/github/gitignore/
|
|
26
|
+
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Global/Windows.gitignore
|
|
27
27
|
|
|
28
28
|
# Windows thumbnail cache files
|
|
29
29
|
Thumbs.db
|
|
@@ -52,7 +52,7 @@ $RECYCLE.BIN/
|
|
|
52
52
|
# -----------------------------------------------------------------------------
|
|
53
53
|
# gibo dump macOS
|
|
54
54
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
55
|
-
### https://raw.github.com/github/gitignore/
|
|
55
|
+
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Global/macOS.gitignore
|
|
56
56
|
|
|
57
57
|
# General
|
|
58
58
|
.DS_Store
|
|
@@ -83,7 +83,7 @@ Temporary Items
|
|
|
83
83
|
# -----------------------------------------------------------------------------
|
|
84
84
|
# gibo dump Python
|
|
85
85
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
86
|
-
### https://raw.github.com/github/gitignore/
|
|
86
|
+
### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Python.gitignore
|
|
87
87
|
|
|
88
88
|
# Byte-compiled / optimized / DLL files
|
|
89
89
|
__pycache__/
|
|
@@ -193,10 +193,8 @@ ipython_config.py
|
|
|
193
193
|
#pdm.lock
|
|
194
194
|
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
195
195
|
# in version control.
|
|
196
|
-
# https://pdm.fming.dev
|
|
196
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
197
197
|
.pdm.toml
|
|
198
|
-
.pdm-python
|
|
199
|
-
.pdm-build/
|
|
200
198
|
|
|
201
199
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
202
200
|
__pypackages__/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2024-2025 Kitsu Yui
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: timeout-iterator
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Iterator with timeout
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Author-email: Yui KITSU <kitsuyui+github@kitsuyui.com>
|
|
6
|
+
License: Copyright 2024-2025 Kitsu Yui
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
|
+
Project-URL: Homepage, https://github.com/kitsuyui/python-timeout-iterator
|
|
9
18
|
Classifier: Development Status :: 3 - Alpha
|
|
10
19
|
Classifier: License :: OSI Approved :: BSD License
|
|
11
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -17,6 +26,7 @@ Classifier: Intended Audience :: Developers
|
|
|
17
26
|
Classifier: Topic :: Software Development :: Libraries
|
|
18
27
|
Requires-Python: >=3.9
|
|
19
28
|
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
20
30
|
|
|
21
31
|
# python-timeout-iterator
|
|
22
32
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "timeout-iterator"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
requires-python = ">=3.9"
|
|
5
|
+
dependencies = []
|
|
6
|
+
description = "Iterator with timeout"
|
|
7
|
+
readme = {file = "README.md", content-type = "text/markdown"}
|
|
8
|
+
license = { file = "LICENSE" }
|
|
9
|
+
authors = [
|
|
10
|
+
{name = "Yui KITSU", email = "kitsuyui+github@kitsuyui.com"}
|
|
11
|
+
]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 3 - Alpha",
|
|
14
|
+
"License :: OSI Approved :: BSD License",
|
|
15
|
+
"Programming Language :: Python :: 3.9",
|
|
16
|
+
"Programming Language :: Python :: 3.10",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Intended Audience :: Developers",
|
|
21
|
+
"Topic :: Software Development :: Libraries",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Homepage = "https://github.com/kitsuyui/python-timeout-iterator"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools]
|
|
28
|
+
package-data = { "timeout_iterator" = ["py.typed"], "*" = ["README.md, LICENSE"] }
|
|
29
|
+
package-dir = { "timeout_iterator" = "timeout_iterator" }
|
|
30
|
+
|
|
31
|
+
[tool.uv]
|
|
32
|
+
dev-dependencies = [
|
|
33
|
+
"pytest",
|
|
34
|
+
"pytest-cov",
|
|
35
|
+
"poethepoet",
|
|
36
|
+
"setuptools-scm",
|
|
37
|
+
"ruff",
|
|
38
|
+
"mypy",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[build-system]
|
|
42
|
+
requires = ["setuptools", "setuptools_scm"]
|
|
43
|
+
build-backend = "setuptools.build_meta"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools_scm]
|
|
46
|
+
write_to = "timeout_iterator/_version.py"
|
|
47
|
+
version_scheme = "only-version"
|
|
48
|
+
local_scheme = "no-local-version"
|
|
49
|
+
|
|
50
|
+
[tool.poe.tasks]
|
|
51
|
+
test = "pytest"
|
|
52
|
+
coverage-xml = "pytest --cov=timeout_iterator --doctest-modules --cov-report=xml"
|
|
53
|
+
format = "ruff format timeout_iterator tests"
|
|
54
|
+
check = [
|
|
55
|
+
{ cmd = "ruff check timeout_iterator tests" },
|
|
56
|
+
{ cmd = "mypy timeout_iterator tests" },
|
|
57
|
+
]
|
|
58
|
+
build = "python -m build"
|
|
59
|
+
|
|
60
|
+
[tool.mypy]
|
|
61
|
+
strict = true
|
|
62
|
+
ignore_missing_imports = false
|
|
63
|
+
|
|
64
|
+
[tool.ruff]
|
|
65
|
+
line-length = 79
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from timeout_iterator.without_terminate import without_terminate
|
|
2
|
+
from timeout_iterator.terminate import terminate
|
|
3
|
+
|
|
4
|
+
# https://packaging-guide.openastronomy.org/en/latest/advanced/versioning.html
|
|
5
|
+
from ._version import __version__
|
|
6
|
+
|
|
7
|
+
__all__ = ["terminate", "without_terminate", "__version__"]
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: timeout-iterator
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Iterator with timeout
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Author-email: Yui KITSU <kitsuyui+github@kitsuyui.com>
|
|
6
|
+
License: Copyright 2024-2025 Kitsu Yui
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
|
+
Project-URL: Homepage, https://github.com/kitsuyui/python-timeout-iterator
|
|
9
18
|
Classifier: Development Status :: 3 - Alpha
|
|
10
19
|
Classifier: License :: OSI Approved :: BSD License
|
|
11
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -17,6 +26,7 @@ Classifier: Intended Audience :: Developers
|
|
|
17
26
|
Classifier: Topic :: Software Development :: Libraries
|
|
18
27
|
Requires-Python: >=3.9
|
|
19
28
|
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
20
30
|
|
|
21
31
|
# python-timeout-iterator
|
|
22
32
|
|