File tree 8 files changed +542
-578
lines changed
8 files changed +542
-578
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,18 @@ jobs:
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
- - name : Setup pdm
21
- uses : pdm-project/setup-pdm@v4
22
- with :
23
- python-version : ${{ matrix.python-version }}
20
+ - name : Install uv
21
+ uses : astral-sh/setup-uv@v3
22
+
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ run : uv python install ${{ matrix.python-version }}
24
25
25
26
- name : Install dependencies
26
- run : pdm install -G lint
27
+ run : |
28
+ uv sync --group lint
27
29
28
30
- name : Run lint
29
- run : pdm lint
31
+ run : |
32
+ source .venv/bin/activate
33
+ chmod 755 pre-commit.sh
34
+ ./pre-commit.sh
Original file line number Diff line number Diff line change @@ -17,13 +17,16 @@ jobs:
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
- - name : Setup pdm
21
- uses : pdm-project/setup-pdm@v4
22
- with :
23
- python-version : ${{ matrix.python-version }}
20
+ - name : Install uv
21
+ uses : astral-sh/setup-uv@v3
22
+
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ run : uv python install ${{ matrix.python-version }}
24
25
25
26
- name : Install dependencies
26
- run : pdm install -G test
27
+ run : |
28
+ uv venv
29
+ uv pip install -r requirements.txt
27
30
28
31
- name : Run test
29
- run : pdm run -v pytest
32
+ run : uv run pytest
Original file line number Diff line number Diff line change 7
7
- id : check-toml
8
8
9
9
- repo : https://github.com/charliermarsh/ruff-pre-commit
10
- rev : v0.4.5
10
+ rev : v0.7.2
11
11
hooks :
12
12
- id : ruff
13
13
args :
14
14
- ' --fix'
15
+ - ' --unsafe-fixes'
15
16
- id : ruff-format
16
17
17
- - repo : https://github.com/pdm-project/pdm
18
- rev : 2.12.2
18
+ - repo : https://github.com/astral-sh/uv-pre-commit
19
+ rev : 0.4.29
19
20
hooks :
20
- - id : pdm-export
21
+ - id : uv-lock
22
+ - id : uv-export
21
23
args :
22
- - -o
24
+ - ' -o '
23
25
- ' requirements.txt'
24
- - ' --without-hashes'
25
- files : ^pdm.lock$
26
- - id : pdm-lock-check
26
+ - ' --no-hashes'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " sqlalchemy-crud-plus"
3
3
description = " Asynchronous CRUD operation based on SQLAlchemy2 model"
4
- dynamic = [
5
- " version" ,
6
- ]
4
+ version = ' 1.5.0'
7
5
authors = [
8
6
{
name =
" Wu Clan" ,
email =
" [email protected] " },
9
7
]
@@ -26,16 +24,19 @@ license = { text = "MIT" }
26
24
homepage = " https://github.com/fastapi-practices/sqlalchemy-crud-plus"
27
25
repository = " https://github.com/fastapi-practices/sqlalchemy-crud-plus"
28
26
29
- [tool .pdm .dev-dependencies ]
30
- lint = [
31
- " ruff>=0.4.0" ,
32
- " pre-commit>=3.5.0" ,
33
- ]
34
- test = [
27
+ [dependency-groups ]
28
+ dev = [
35
29
" pytest>=8.1.1" ,
36
30
" aiosqlite>=0.20.0" ,
37
31
" pytest-asyncio>=0.23.6" ,
38
32
]
33
+ lint = [
34
+ " ruff>=0.4.0" ,
35
+ " pre-commit>=3.5.0" ,
36
+ ]
37
+
38
+ [tool .uv ]
39
+ python-downloads = " manual"
39
40
40
41
[tool .ruff ]
41
42
line-length = 120
@@ -58,13 +59,6 @@ order-by-type = true
58
59
quote-style = " single"
59
60
docstring-code-format = true
60
61
61
- [tool .pdm ]
62
- distribution = true
63
- version = { source = " file" , path = " sqlalchemy_crud_plus/__init__.py" }
64
-
65
- [tool .pdm .scripts ]
66
- lint = " pre-commit run --all-files"
67
-
68
62
[build-system ]
69
- requires = [" pdm-backend " ]
70
- build-backend = " pdm.backend "
63
+ requires = [" hatchling " ]
64
+ build-backend = " hatchling.build "
Original file line number Diff line number Diff line change 1
- # This file is @generated by PDM.
2
- # Please do not edit it manually.
3
-
1
+ # This file was autogenerated by uv via the following command:
2
+ # uv export -o requirements.txt --no-hashes
3
+ -e .
4
4
aiosqlite == 0.20.0
5
- annotated-types == 0.6.0
6
- cfgv == 3.4.0
7
- colorama == 0.4.6 ; sys_platform == "win32"
8
- distlib == 0.3.8
9
- exceptiongroup == 1.2.1 ; python_version < "3.11"
10
- filelock == 3.13.4
11
- greenlet == 3.0.3 ; platform_machine == "win32" or platform_machine == "WIN32" or platform_machine == "AMD64" or platform_machine == "amd64" or platform_machine == "x86_64" or platform_machine == "ppc64le" or platform_machine == "aarch64"
12
- identify == 2.5.35
5
+ annotated-types == 0.7.0
6
+ colorama == 0.4.6 ; sys_platform == 'win32'
7
+ exceptiongroup == 1.2.2 ; python_full_version < '3.11'
8
+ greenlet == 3.1.1 ; (python_full_version < '3.13' and platform_machine == 'AMD64' ) or (python_full_version < '3.13' and platform_machine == 'WIN32' ) or (python_full_version < '3.13' and platform_machine == 'aarch64' ) or (python_full_version < '3.13' and platform_machine == 'amd64' ) or (python_full_version < '3.13' and platform_machine == 'ppc64le' ) or (python_full_version < '3.13' and platform_machine == 'win32' ) or (python_full_version < '3.13' and platform_machine == 'x86_64' )
13
9
iniconfig == 2.0.0
14
- nodeenv == 1.8.0
15
- packaging == 24.0
16
- platformdirs == 4.2.0
10
+ packaging == 24.1
17
11
pluggy == 1.5.0
18
- pre-commit == 3.7.1
19
- pydantic == 2.7.1
20
- pydantic-core == 2.18.2
21
- pytest == 8.2.1
22
- pytest-asyncio == 0.23.7
23
- pyyaml == 6.0.1
24
- ruff == 0.4.5
25
- setuptools == 69.5.1
26
- sqlalchemy == 2.0.30
27
- tomli == 2.0.1 ; python_version < "3.11"
28
- typing-extensions == 4.10.0
29
- virtualenv == 20.25.3
12
+ pydantic == 2.9.2
13
+ pydantic-core == 2.23.4
14
+ pytest == 8.3.3
15
+ pytest-asyncio == 0.24.0
16
+ sqlalchemy == 2.0.36
17
+ tomli == 2.0.2 ; python_full_version < '3.11'
18
+ typing-extensions == 4.12.2
Original file line number Diff line number Diff line change 2
2
# -*- coding: utf-8 -*-
3
3
from .crud import CRUDPlus as CRUDPlus
4
4
5
- __version__ = 'v1.4 .0'
5
+ __version__ = '1.5 .0'
You can’t perform that action at this time.
0 commit comments