Skip to content

Commit b2c8ad6

Browse files
committed
Update dependencies
1 parent a32296a commit b2c8ad6

4 files changed

Lines changed: 375 additions & 290 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
runs-on: ubuntu-24.04
66
strategy:
77
matrix:
8-
python-version: ['3.9', '3.13', 'pypy3.10']
8+
python-version: ['3.10', '3.14', 'pypy3.11']
99
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v5
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-python@v6
1212
with:
1313
python-version: ${{ matrix.python-version }}
1414
- run: pip install --upgrade pip uv
@@ -17,10 +17,10 @@ jobs:
1717
check-dev:
1818
runs-on: ubuntu-24.04
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-python@v5
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.13'
23+
python-version: '3.14'
2424
- run: pip install --upgrade pip uv
2525
- run: uv sync
2626
- run: uv run make check-lint
@@ -34,10 +34,10 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- uses: actions/setup-python@v5
3636
with:
37-
python-version: '3.13'
37+
python-version: '3.14'
3838
- run: pip install --upgrade pip uv
3939
- run: uv build
40-
- uses: pypa/gh-action-pypi-publish@master
40+
- uses: pypa/gh-action-pypi-publish@release/v1
4141
with:
4242
user: __token__
4343
password: ${{ secrets.pypi_token }}

CHANGELOG.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,46 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
6-
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog], and this project adheres to [Semantic
6+
Versioning].
77

8-
## Unreleased
8+
## [Unreleased]
99

10-
* Drop support for Python 3.7, Python 3.8 and PyPy3.8.
11-
* Add tests with Python 3.13 and PyPy3.10.
10+
- Drop support for Python 3.7, Python 3.8 and PyPy3.8.
11+
- Add tests with Python 3.14 and PyPy3.11.
1212

1313
## [1.1.0] - 2022-12-29
1414

15-
* Improve performance.
15+
- Improve performance.
1616

1717
## [1.0.2] - 2022-06-18
1818

19-
* Drop support for Python 3.5, 3.6 and PyPy3.6.
20-
* Add tests with Python 3.10 and PyPy3.8.
19+
- Drop support for Python 3.5, 3.6 and PyPy3.6.
20+
- Add tests with Python 3.10 and PyPy3.8.
2121

2222
## [1.0.1] - 2020-10-28
2323

24-
* Fix release script.
24+
- Fix release script.
2525

2626
## [1.0.0] - 2020-10-28
2727

28-
* Drop support for Python 2.7 and 3.4
29-
* Add type hints
28+
- Drop support for Python 2.7 and 3.4
29+
- Add type hints
3030

3131
## [0.2] - 2016-10-09
3232

33-
* Add support for Python 2
33+
- Add support for Python 2
3434

3535
## [0.1] - 2016-08-06
3636

37-
* Initial public release
38-
39-
[Unreleased]: https://github.com/bbc2/shuffled/compare/1.1.0...main
40-
[1.1.0]: https://github.com/bbc2/shuffled/compare/1.0.2...1.1.0
41-
[1.0.2]: https://github.com/bbc2/shuffled/compare/1.0.1...1.0.2
42-
[1.0.1]: https://github.com/bbc2/shuffled/compare/1.0.0...1.0.1
43-
[1.0.0]: https://github.com/bbc2/shuffled/compare/v0.2...1.0.0
44-
[0.2]: https://github.com/bbc2/shuffled/compare/v0.1...v0.2
45-
[0.1]: https://github.com/bbc2/shuffled/tree/v0.1
37+
- Initial public release
38+
39+
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
40+
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
41+
[Unreleased]: https://github.com/bbc2/shuffled/compare/1.1.0...main
42+
[1.1.0]: https://github.com/bbc2/shuffled/compare/1.0.2...1.1.0
43+
[1.0.2]: https://github.com/bbc2/shuffled/compare/1.0.1...1.0.2
44+
[1.0.1]: https://github.com/bbc2/shuffled/compare/1.0.0...1.0.1
45+
[1.0.0]: https://github.com/bbc2/shuffled/compare/v0.2...1.0.0
46+
[0.2]: https://github.com/bbc2/shuffled/compare/v0.1...v0.2
47+
[0.1]: https://github.com/bbc2/shuffled/tree/v0.1

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Shuffled: Random iterators for large integer ranges
22

3+
## Usage
4+
35
Shuffled is a library for iterating randomly and without repetition over integer ranges.
4-
It doesn't store all the integers in memory so that you can work with ranges of up to
6+
It doesnt store all the integers in memory so that you can work with ranges of up to
57
2<sup>128</sup> elements, even with your standard RAM available.
68

7-
```python
9+
``` python
810
>>> shuffled_range = Shuffled(10)
911
>>> list(shuffled_range)
1012
[4, 1, 2, 9, 8, 5, 3, 0, 6, 7]
@@ -13,7 +15,7 @@ It doesn't store all the integers in memory so that you can work with ranges of
1315
[4, 1, 2, 9, 8, 5, 3, 0, 6, 7]
1416
```
1517

16-
```python
18+
``` python
1719
>>> network = ipaddress.IPv4Network('10.0.0.0/8')
1820
>>> shuffled_range = Shuffled(network.num_addresses)
1921
>>> for index in shuffled_range:
@@ -27,3 +29,10 @@ It doesn't store all the integers in memory so that you can work with ranges of
2729
10.19.5.91
2830
[...]
2931
```
32+
33+
## Release
34+
35+
- Update the [changelog](CHANGELOG)
36+
- Bump the version identified in [`pyproject.toml`](pyproject.toml)
37+
- After those changes are merged into `main`, tag the commit on `main` and push it.
38+
- The CI/CD process will publish the new package version on PyPI.

0 commit comments

Comments
 (0)