Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
- name: setup uv
uses: yezz123/setup-uv@v4
with:
uv-version: "0.2.30"
uv-venv: ".venv"

- name: Install Dependencies
run: uv pip install -r requirements/all.txt
run: uv sync

- name: Typecheck with mypy
run: bash scripts/mypy.sh
Expand Down Expand Up @@ -59,11 +58,10 @@ jobs:
- name: setup UV
uses: yezz123/setup-uv@v4
with:
uv-version: "0.2.30"
uv-venv: ".venv"

- name: Install Dependencies
run: uv pip install -e . && uv pip install -r requirements/testing.txt
run: uv sync

- name: Freeze Dependencies
run: uv pip freeze
Expand Down Expand Up @@ -105,11 +103,10 @@ jobs:
- name: setup UV
uses: yezz123/setup-uv@v4
with:
uv-version: "0.2.30"
uv-venv: ".venv"

- name: Install Dependencies
run: uv pip install -e . && uv pip install -r requirements/testing.txt
run: uv sync

- name: Install pydantic v1
run: uv pip install pydantic==1.10.17
Expand Down
12 changes: 11 additions & 1 deletion docs/development/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ After activating the environment as described above, Now lets install all the pa
<div class="termy">

```console
$ uv pip install -r requirements/all.txt
$ uv sync

---> 100%
```
Expand Down Expand Up @@ -156,6 +156,16 @@ The documentation uses

All the documentation is in Markdown format in the directory `./docs`.

<div class="termy">

```console
uv pip install requirements-docs.txt

bash scripts/docs_build.sh
```

</div>

### Including

To Build AuthX Documentation we need the following packages, which are:
Expand Down
2 changes: 0 additions & 2 deletions docs/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ I use the following reference to get The package done:

- <https://fastapi.tiangolo.com/>
- <https://pydantic-docs.helpmanual.io/>
- <https://indominusbyte.github.io/fastapi-jwt-auth/>
- <https://camillovisini.com/article/abstracting-fastapi-services/>
- <https://pyjwt.readthedocs.io/en/latest/>

## [License](license.md)
Expand Down
4 changes: 0 additions & 4 deletions docs/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ $ pip install authx_extra
$ git clone https://github.com/yezz123/authx.git

---> 100%

$ cd authx

$ bash scripts/install.sh
```

</div>
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@ dynamic = ["version"]
[tool.hatch.metadata]
allow-direct-references = true

[tool.uv]
dev-dependencies = [
'pytest',
'pytest-asyncio',
'pytest-cov',
'httpx',
'requests',
'SQLAlchemy',
'itsdangerous',
'websockets',
'freezegun',
'async-asgi-testclient',
'pre-commit',
'mypy',
'black',
'pyupgrade',
'ruff',
'types-python-dateutil',
'types-pytz',
'codespell',
]

[project.urls]
Homepage = "https://github.com/yezz123/authx"
Documentation = "https://authx.yezz.me/"
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions requirements/all.txt

This file was deleted.

24 changes: 0 additions & 24 deletions requirements/docs.in

This file was deleted.

8 changes: 0 additions & 8 deletions requirements/linting.in

This file was deleted.

50 changes: 0 additions & 50 deletions requirements/linting.txt

This file was deleted.

58 changes: 0 additions & 58 deletions requirements/pyproject.txt

This file was deleted.

10 changes: 0 additions & 10 deletions requirements/testing.in

This file was deleted.

67 changes: 0 additions & 67 deletions requirements/testing.txt

This file was deleted.

12 changes: 1 addition & 11 deletions scripts/requirements.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#!/usr/bin/env bash

refresh-lockfiles() {
echo "Updating requirements/*.txt files using uv"
find requirements/ -name '*.txt' ! -name 'all.txt' -type f -delete
uv pip compile requirements/linting.in -o requirements/linting.txt
uv pip compile requirements/testing.in -o requirements/testing.txt
uv pip compile requirements/docs.in -o requirements/docs.txt
uv pip compile pyproject.toml -o requirements/pyproject.txt
uv pip install -r requirements/all.txt
}

refresh-lockfiles
uv lock --upgrade
Loading