Skip to content

Commit

Permalink
Bump version to 1.0.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdumandag committed Dec 4, 2023
1 parent aa6dcc3 commit fe017b7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 756 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ cython_debug/
.DS_Store

.vscode

poetry.lock
2 changes: 1 addition & 1 deletion examples/flask-server/hello.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Flask # type: ignore
from flask import Flask # type: ignore
from upstash_redis import Redis

from upstash_ratelimit import FixedWindow, Ratelimit
Expand Down
1 change: 0 additions & 1 deletion examples/vercel/api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ def do_GET(self):
else:
self.send_response(200)
self.wfile.write("Hello!".encode("utf-8"))

750 changes: 0 additions & 750 deletions poetry.lock

This file was deleted.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tool.poetry]
name = "upstash-ratelimit"
version = "0.5.1"
version = "1.0.0"
description = "Serverless ratelimiting package from Upstash"
authors = ["Upstash <[email protected]>", "Zgîmbău Tudor <[email protected]>"]
maintainers = ["Upstash <[email protected]>"]
readme = "README.md"
repository = "https://github.com/upstash/ratelimit-python"
keywords = ["ratelimit", "rate limit", "Upstash rate limit", "Redis rate limit"]
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand All @@ -19,14 +19,15 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
]
packages = [{include = "upstash_ratelimit"}]

[tool.poetry.dependencies]
python = "^3.8"
upstash-redis = "^0.15.0"
upstash-redis = "^1.0.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.0"
Expand Down
2 changes: 1 addition & 1 deletion upstash_ratelimit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.1"
__version__ = "1.0.0"

from upstash_ratelimit.limiter import FixedWindow, Response, SlidingWindow, TokenBucket
from upstash_ratelimit.ratelimit import Ratelimit
Expand Down

0 comments on commit fe017b7

Please sign in to comment.