Skip to content

Commit dfc8546

Browse files
authored
update pyproject (#331)
1 parent 443aee0 commit dfc8546

File tree

5 files changed

+51
-49
lines changed

5 files changed

+51
-49
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@ on:
66

77
jobs:
88
deploy:
9-
runs-on: ubuntu-22.04
10-
env:
11-
POETRY_VIRTUALENVS_CREATE: "false"
9+
runs-on: ubuntu-24.04
1210
steps:
1311
- uses: actions/checkout@v3
1412

15-
- name: Install poetry
13+
- name: Install uv
1614
run: |
1715
python -m pip install --upgrade pip
18-
pip install poetry
16+
pip install uv
1917
2018
- name: Build
2119
run: |
22-
poetry build
20+
uv build
2321
2422
- name: Publish
2523
run: |
26-
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
27-
poetry publish
24+
uv publish --token ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
pip install -e .[develop]
47+
pip install -e .[dev]
4848
- name: Typing check
4949
run: mypy .
5050
- name: Run tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Developing
123123
Install dependencies using pip:
124124

125125
```bash
126-
pip install -e .[develop]
126+
pip install -e .[dev]
127127
```
128128

129129
Run databases:

docs/peewee_async/installing.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,7 @@ Install dependencies using pip:
3535

3636
.. code-block:: console
3737
38-
pip install -e .[develop]
39-
40-
41-
Or using `poetry`_:
42-
43-
.. _poetry: https://python-poetry.org/docs/
44-
45-
.. code-block:: console
46-
47-
poetry install -E develop
38+
pip install -e .[dev]
4839
4940
5041
Running tests

pyproject.toml

Lines changed: 43 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,53 @@
1-
[tool.poetry]
1+
[project]
22
name = "peewee-async"
33
version = "1.2.1"
44
description = "Asynchronous interface for peewee ORM powered by asyncio."
5-
authors = ["Alexey Kinev <rudy@05bit.com>", "Gorshkov Nikolay(contributor) <nogamemorebrain@gmail.com>"]
5+
authors = [
6+
{name = "Alexey Kinev", email="rudy@05bit.com"},
7+
{name = "Gorshkov Nikolay", email = "nogamemorebrain@gmail.com"},
8+
]
9+
requires-python = ">=3.10"
610
readme = "README.md"
11+
dependencies = [
12+
"peewee>=3.15.4",
13+
"typing-extensions>=4.12.2"
14+
]
715

816

9-
[tool.poetry.dependencies]
10-
python = "^3.10"
11-
peewee = "^3.15.4"
12-
typing-extensions = "^4.12.2"
13-
14-
aiopg = { version = "^1.4.0", optional = true }
15-
aiomysql = { version = "^0.2.0", optional = true }
16-
cryptography = { version = "^43.0.1", optional = true }
17-
pytest = { version = "^7.4.1", optional = true }
18-
pytest-asyncio = { version = "^0.21.1", optional = true }
19-
pytest-mock = { version = "^3.14.0", optional = true }
20-
sphinx = { version = "^7.1.2", optional = true }
21-
sphinx-rtd-theme = { version = "^1.3.0rc1", optional = true }
22-
mypy = { version = "^1.10.1", optional = true }
23-
types-PyMySQL = { version = "^1.1.0.20240524", optional = true }
24-
psycopg = { version = "^3.2.0", optional = true }
25-
psycopg-pool = { version = "^3.2.0", optional = true }
26-
27-
[tool.poetry.extras]
28-
postgresql = ["aiopg"]
29-
mysql = ["aiomysql", "cryptography"]
30-
develop = ["aiopg", "aiomysql", "cryptography", "pytest", "pytest-asyncio", "pytest-mock", "mypy", "types-PyMySQL", "psycopg", "psycopg-pool"]
31-
docs = ["aiopg", "aiomysql", "cryptography", "sphinx", "sphinx-rtd-theme"]
32-
psycopg = ["psycopg", "psycopg-pool"]
17+
[project.optional-dependencies]
18+
postgresql = [
19+
"aiopg>=1.4.0",
20+
]
21+
mysql = [
22+
"aiomysql>=0.2.0",
23+
"cryptography>=43.0.1"
24+
]
25+
psycopg = [
26+
"psycopg>=3.2.0",
27+
"psycopg-pool>=3.2.0"
28+
]
29+
docs = [
30+
"Sphinx>=8.1.3",
31+
"sphinx-rtd-theme>=3.1.0",
32+
]
33+
dev = [
34+
"pytest==7.4.1",
35+
"pytest-asyncio==0.21.1",
36+
"pytest-mock>=3.14.0",
37+
"peewee-async[postgresql]",
38+
"peewee-async[mysql]",
39+
"peewee-async[psycopg]",
40+
"mypy>=1.19.0",
41+
"types-PyMySQL>=1.1.0"
42+
]
3343

3444
[build-system]
35-
requires = ["poetry-core"]
36-
build-backend = "poetry.core.masonry.api"
45+
requires = ["uv_build>=0.9.6,<0.10.0"]
46+
build-backend = "uv_build"
47+
48+
[tool.uv.build-backend]
49+
module-name = "peewee_async"
50+
module-root = ""
3751

3852
[tool.mypy]
3953
python_version = "3.10"
@@ -52,4 +66,4 @@ disallow_incomplete_defs = true
5266
exclude = "(venv|load-testing|examples|docs)"
5367

5468
[tool.pytest.ini_options]
55-
asyncio_mode = "auto"
69+
asyncio_mode = "auto"

0 commit comments

Comments
 (0)