Skip to content

Commit 002c4b9

Browse files
authored
Version 1.0.0 release (#87)
* Version 1.0.0 release * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI
1 parent cbc499c commit 002c4b9

File tree

7 files changed

+1017
-882
lines changed

7 files changed

+1017
-882
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ['3.7', '3.8', '3.9', '3.10']
21-
env-type: ['dev', 'redis', 'aioredis']
20+
python-version: ['3.8', '3.9', '3.10', '3.11']
21+
redis-image: ['redis:7.0-alpine']
22+
env-type: ['redis']
23+
24+
include:
25+
- python-version: '3.10'
26+
env-type: 'aioredis'
27+
redis-image: 'redis:7.0-alpine'
28+
- python-version: '3.9'
29+
env-type: 'dev'
30+
redis-image: 'redis:7.0-alpine'
2231

2332
steps:
2433
- uses: actions/checkout@v3
@@ -45,6 +54,8 @@ jobs:
4554
run: |
4655
docker-compose pull
4756
docker-compose up --detach
57+
env:
58+
REDIS_IMAGE: ${{ matrix.redis-image }}
4859

4960
- name: Run checks
5061
run: make test

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@
33
We follow [Semantic Versions](https://semver.org/).
44

55

6+
## Version 1.0.0
7+
8+
### Features
9+
10+
- *breaking*: Removes `python3.7` support
11+
- Adds `python3.11` support
12+
13+
### Misc
14+
15+
- Updates multiple deps
16+
17+
618
## Version 0.2.0
719

820
### Features
921

10-
- Add support for `aioredis`
22+
- Adds support for `aioredis`
1123

1224

1325
## Version 0.1.1

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ unit:
1212
.PHONY: package
1313
package:
1414
poetry check
15-
poetry run pip check
15+
# TODO: enable when [email protected]
16+
# poetry run pip check
1617
poetry run safety check --full-report
1718

1819
.PHONY: test

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Rate limiter for async functions using Redis as a backend.
1818
- Works with any amount of processes
1919
- Works with both [`redis.asyncio.client.Redis`](https://redis-py.readthedocs.io/en/stable/examples/asyncio_examples.html) and [`aioredis`](https://github.com/aio-libs/aioredis-py)
2020
- Free of race-conditions (hopefully!)
21+
- Supports `redis` since `7.0`
2122
- Fully typed with annotations and checked with mypy, [PEP561 compatible](https://www.python.org/dev/peps/pep-0561/)
2223

2324

@@ -29,7 +30,7 @@ pip install asyncio-redis-rate-limit
2930

3031
Extras available:
3132
- `pip install asyncio-redis-rate-limit[redis]`
32-
- `pip install asyncio-redis-rate-limit[aioredis]`
33+
- `pip install asyncio-redis-rate-limit[aioredis]` (for python versions `<3.11`)
3334

3435

3536
## Example

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version: '3.8'
44

55
services:
66
redis:
7-
image: redis:alpine
7+
image: ${REDIS_IMAGE:-'redis:alpine'}
88
ports:
99
- "6379:6379"

poetry.lock

Lines changed: 973 additions & 863 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "asyncio-redis-rate-limit"
33
description = "Rate limiter for async functions using Redis as a backend"
4-
version = "0.2.0"
4+
version = "1.0.0"
55
license = "MIT"
66
readme = "README.md"
77

@@ -20,7 +20,7 @@ keywords = [
2020
]
2121

2222
classifiers = [
23-
"Development Status :: 3 - Alpha",
23+
"Development Status :: 4 - Beta",
2424
"Intended Audience :: Developers",
2525
"Operating System :: OS Independent",
2626
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -30,28 +30,28 @@ classifiers = [
3030
"Funding" = "https://github.com/sponsors/wemake-services"
3131

3232
[tool.poetry.dependencies]
33-
python = "^3.7"
33+
python = "^3.8"
3434

35-
redis = { version = ">=4.3", optional = true }
36-
aioredis = { version = ">=2.0", optional = true }
35+
redis = { version = ">=4.5,<5", optional = true }
36+
# aioredis and python3.11 are not compatible:
37+
aioredis = { version = ">=2.0", optional = true, python = "<3.11" }
3738
typing-extensions = ">=3.10"
3839

3940
[tool.poetry.group.test.dependencies]
40-
mypy = "^0.982"
41-
types-redis = "^4.3"
42-
types-mock = "^4.0"
41+
mypy = "^1.2"
42+
types-redis = "^4.5"
43+
types-mock = "^5.0"
4344

4445
wemake-python-styleguide = "^0.17"
4546
flake8-pytest-style = "^1.6"
46-
doc8 = "^1.0"
47-
nitpick = "^0.32"
47+
nitpick = "^0.33"
4848

4949
safety = "^2.3"
5050

51-
pytest = "^7.1"
51+
pytest = "^7.2"
5252
pytest-cov = "^4.0"
5353
pytest-randomly = "^3.12"
54-
pytest-asyncio = "^0.19"
54+
pytest-asyncio = "^0.21"
5555
pytest-freezegun = "^0.4"
5656
pytest-repeat = "^0.9"
5757

@@ -62,7 +62,7 @@ dev = ["redis", "aioredis"]
6262

6363

6464
[build-system]
65-
requires = ["poetry-core>=1.2.0"]
65+
requires = ["poetry-core>=1.5.0"]
6666
build-backend = "poetry.core.masonry.api"
6767

6868

0 commit comments

Comments
 (0)