Skip to content

Commit a7fe491

Browse files
authored
Bump version to 1.0.0 (#11)
Updated the development status, and added 3.12 to the supported python versions as well. Also, removed the poetry.lock from the repo, with a similar reasoning to redis-python repo. Also, run isort and black on the code.
1 parent aa6dcc3 commit a7fe491

File tree

6 files changed

+8
-756
lines changed

6 files changed

+8
-756
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,5 @@ cython_debug/
162162
.DS_Store
163163

164164
.vscode
165+
166+
poetry.lock

examples/flask-server/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask import Flask # type: ignore
1+
from flask import Flask # type: ignore
22
from upstash_redis import Redis
33

44
from upstash_ratelimit import FixedWindow, Ratelimit

examples/vercel/api/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ def do_GET(self):
2525
else:
2626
self.send_response(200)
2727
self.wfile.write("Hello!".encode("utf-8"))
28-

poetry.lock

Lines changed: 0 additions & 750 deletions
This file was deleted.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tool.poetry]
22
name = "upstash-ratelimit"
3-
version = "0.5.1"
3+
version = "1.0.0"
44
description = "Serverless ratelimiting package from Upstash"
55
authors = ["Upstash <support@upstash.com>", "Zgîmbău Tudor <tudor.zgimbau@gmail.com>"]
66
maintainers = ["Upstash <support@upstash.com>"]
77
readme = "README.md"
88
repository = "https://github.com/upstash/ratelimit-python"
99
keywords = ["ratelimit", "rate limit", "Upstash rate limit", "Redis rate limit"]
1010
classifiers = [
11-
"Development Status :: 4 - Beta",
11+
"Development Status :: 5 - Production/Stable",
1212
"Intended Audience :: Developers",
1313
"License :: OSI Approved :: MIT License",
1414
"Operating System :: OS Independent",
@@ -19,14 +19,15 @@ classifiers = [
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2223
"Programming Language :: Python :: Implementation :: CPython",
2324
"Topic :: Software Development :: Libraries",
2425
]
2526
packages = [{include = "upstash_ratelimit"}]
2627

2728
[tool.poetry.dependencies]
2829
python = "^3.8"
29-
upstash-redis = "^0.15.0"
30+
upstash-redis = "^1.0.0"
3031

3132
[tool.poetry.group.dev.dependencies]
3233
pytest = "^7.3.0"

upstash_ratelimit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.5.1"
1+
__version__ = "1.0.0"
22

33
from upstash_ratelimit.limiter import FixedWindow, Response, SlidingWindow, TokenBucket
44
from upstash_ratelimit.ratelimit import Ratelimit

0 commit comments

Comments
 (0)