3 Commits

4 changed files with 12 additions and 24 deletions

View File

@@ -95,18 +95,6 @@ build-package:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Publish to PyPI (only on tags)
publish-pypi:
extends: .python-base
stage: publish
script:
- uv publish --token $PYPI_TOKEN
rules:
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/
when: manual
needs:
- build-package
# Publish to GitLab Package Registry # Publish to GitLab Package Registry
publish-gitlab: publish-gitlab:
extends: .python-base extends: .python-base

View File

@@ -13,7 +13,7 @@ Want to contribute or just poke around? Here's how to get set up.
### Using uv (the fast way) ### Using uv (the fast way)
```bash ```bash
git clone https://gitlab.com/bereckobrian/fastapi-traffic.git git clone https://gitlab.com/zanewalker/fastapi-traffic.git
cd fastapi-traffic cd fastapi-traffic
# This creates a venv and installs everything # This creates a venv and installs everything
@@ -25,7 +25,7 @@ That's it. uv figures out the rest.
### Using pip ### Using pip
```bash ```bash
git clone https://gitlab.com/bereckobrian/fastapi-traffic.git git clone https://gitlab.com/zanewalker/fastapi-traffic.git
cd fastapi-traffic cd fastapi-traffic
python -m venv .venv python -m venv .venv

View File

@@ -18,26 +18,26 @@ Most rate limiting solutions are either too simple (fixed window only) or too co
```bash ```bash
# Basic installation (memory backend only) # Basic installation (memory backend only)
pip install fastapi-traffic pip install git+https://gitlab.com/zanewalker/fastapi-traffic.git
# With Redis support # With Redis support
pip install fastapi-traffic[redis] pip install git+https://gitlab.com/zanewalker/fastapi-traffic.git[redis]
# With all extras # With all extras
pip install fastapi-traffic[all] pip install git+https://gitlab.com/zanewalker/fastapi-traffic.git[all]
``` ```
### Using uv ### Using uv
```bash ```bash
# Basic installation # Basic installation
uv add fastapi-traffic uv add git+https://gitlab.com/zanewalker/fastapi-traffic.git
# With Redis support # With Redis support
uv add fastapi-traffic[redis] uv add git+https://gitlab.com/zanewalker/fastapi-traffic.git[redis]
# With all extras # With all extras
uv add fastapi-traffic[all] uv add git+https://gitlab.com/zanewalker/fastapi-traffic.git[all]
``` ```
## Quick Start ## Quick Start

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "fastapi-traffic" name = "fastapi-traffic"
version = "0.1.0" version = "0.2.0"
description = "Production-grade rate limiting for FastAPI with multiple algorithms and backends" description = "Production-grade rate limiting for FastAPI with multiple algorithms and backends"
readme = "README.md" readme = "README.md"
requires-python = ">=3.10" requires-python = ">=3.10"
@@ -42,9 +42,9 @@ dev = [
] ]
[project.urls] [project.urls]
Documentation = "https://gitlab.com/fastapi-traffic/fastapi-traffic#readme" Documentation = "https://gitlab.com/zanewalker/fastapi-traffic#readme"
Repository = "https://github.com/fastapi-traffic/fastapi-traffic" Repository = "https://github.com/zanewalker/fastapi-traffic"
Issues = "https://gitlab.com/bereckobrian/fastapi-traffic/issues" Issues = "https://gitlab.com/zanewalker/fastapi-traffic/issues"
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]