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.
Files changed (30) hide show
  1. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/pypi-publish.yml +7 -15
  2. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/python-test.yml +8 -18
  3. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.gitignore +5 -7
  4. timeout_iterator-0.2.2/LICENSE +11 -0
  5. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/PKG-INFO +16 -6
  6. timeout_iterator-0.2.2/pyproject.toml +65 -0
  7. timeout_iterator-0.2.2/setup.cfg +4 -0
  8. timeout_iterator-0.2.2/timeout_iterator/__init__.py +7 -0
  9. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/_version.py +2 -2
  10. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/PKG-INFO +16 -6
  11. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/SOURCES.txt +2 -2
  12. timeout_iterator-0.2.2/uv.lock +403 -0
  13. timeout_iterator-0.2.0/poetry.lock +0 -509
  14. timeout_iterator-0.2.0/pyproject.toml +0 -46
  15. timeout_iterator-0.2.0/setup.cfg +0 -34
  16. timeout_iterator-0.2.0/timeout_iterator/__init__.py +0 -5
  17. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/dependabot.yml +0 -0
  18. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/renovate.json5 +0 -0
  19. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/gitignore-in.yml +0 -0
  20. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/happy.yml +0 -0
  21. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.github/workflows/spellcheck.yml +0 -0
  22. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/.gitignore.in +0 -0
  23. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/README.md +0 -0
  24. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/__init__.py +0 -0
  25. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/test_terminate.py +0 -0
  26. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/tests/test_without_terminate.py +0 -0
  27. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/terminate.py +0 -0
  28. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator/without_terminate.py +0 -0
  29. {timeout_iterator-0.2.0 → timeout_iterator-0.2.2}/timeout_iterator.egg-info/dependency_links.txt +0 -0
  30. {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 poetry
26
- uses: abatilo/actions-poetry@v3
25
+ - name: Set up uv
26
+ uses: astral-sh/setup-uv@v5
27
27
 
28
- - name: Cache
29
- uses: actions/cache@v4
30
- with:
31
- path: ~/.cache/pypoetry/virtualenvs
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
- # I use poetry just as a package manager, so this is not `poetry build`
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 poetry
29
- uses: abatilo/actions-poetry@v3
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: poetry install
32
+ run: uv sync
43
33
 
44
34
  - name: Lint
45
- run: poetry run poe check
35
+ run: uv run poe check
46
36
 
47
37
  - name: Check Python version
48
38
  run: |
49
- actual_version=$(poetry run python --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: poetry run poe test
47
+ run: uv run poe test
58
48
 
59
49
  - name: Coverage
60
- run: poetry run poe coverage-xml
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@v4
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/33243d9491911332228307c915ff95707791a91f/Global/Linux.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/33243d9491911332228307c915ff95707791a91f/Global/Windows.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/33243d9491911332228307c915ff95707791a91f/Global/macOS.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/33243d9491911332228307c915ff95707791a91f/Python.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/latest/usage/project/#working-with-version-control
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
1
+ Metadata-Version: 2.2
2
2
  Name: timeout-iterator
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Iterator with timeout
5
- Home-page: https://github.com/kitsuyui/python-timeout-iterator
6
- Author: Yui Kitsu
7
- Author-email: kitsuyui+github@kitsuyui.com
8
- License: BSD-3-Clause
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,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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__"]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.2.0'
16
- __version_tuple__ = version_tuple = (0, 2, 0)
15
+ __version__ = version = '0.2.2'
16
+ __version_tuple__ = version_tuple = (0, 2, 2)
@@ -1,11 +1,20 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: timeout-iterator
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Iterator with timeout
5
- Home-page: https://github.com/kitsuyui/python-timeout-iterator
6
- Author: Yui Kitsu
7
- Author-email: kitsuyui+github@kitsuyui.com
8
- License: BSD-3-Clause
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
 
@@ -1,9 +1,9 @@
1
1
  .gitignore
2
2
  .gitignore.in
3
+ LICENSE
3
4
  README.md
4
- poetry.lock
5
5
  pyproject.toml
6
- setup.cfg
6
+ uv.lock
7
7
  .github/dependabot.yml
8
8
  .github/renovate.json5
9
9
  .github/workflows/gitignore-in.yml