forked from adamhmetal/redbeanpython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (70 loc) · 2.63 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "redbeanpython"
version = "1.0.2"
description = "RedBeanPython ORM"
authors = ["Adam Puza <[email protected]>"]
readme = "README.md"
license = "MIT"
packages = [
{ include = "redbeanpython" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
]
[tool.poetry.urls]
Homepage = "https://redbeanpython.org/"
Documentation = "https://redbeanpython.org/"
Changelog = "https://redbeanpython.org/changelog/"
"Source Code" = "https://github.com/adamhmetal/redbeanpython"
"Issue Tracker" = "https://github.com/adamhmetal/redbeanpython/issues"
[tool.poetry.scripts]
redbean = "redbeanpython.cli.cli:main"
[tool.poetry.dependencies]
python = ">= 3.11"
SQLAlchemy = ">= 2.0.0"
alembic = ">= 1.8.0"
[tool.poetry.group.postgres.dependencies]
psycopg = ">= 3.0.18"
[tool.poetry.group.mysql.dependencies]
PyMySQL = ">= 1.0.2"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.24.4"
black = "^24.1.1"
twine = "^4.0.2"
[tool.poetry.group.test.dependencies]
poethepoet = "^0.24.4"
colored = "^2.2.4"
mkdocs-material = "^9.5.5"
[tool.black]
line-length = 120
[tool.poe.tasks]
test.cmd = 'bash -c "poe test_postgres && poe test_mysql && poe test_sqlite"'
test_compatibility.script = 'tests.run_compatibility_tests:run_compatibility_tests'
docs_serve.cmd = 'mkdocs serve --watch-theme'
docs_build.cmd = 'mkdocs build'
[tool.poe.tasks.test_postgres]
cmd = 'docker compose -f tests/docker/docker-compose.yml run --build --rm --service-ports --entrypoint "poetry run poe test" package-postgres'
env = { PYTHON_VERSION = "3.12", DB_VERSION = "postgres:latest" }
[tool.poe.tasks.test_mysql]
cmd = 'docker compose -f tests/docker/docker-compose.yml run --build --rm --service-ports --entrypoint "poetry run poe test" package-mysql'
env = { PYTHON_VERSION = "3.12", DB_VERSION = "mysql:latest" }
[tool.poe.tasks.test_sqlite]
cmd = 'docker compose -f tests/docker/docker-compose.yml run --build --rm --service-ports --entrypoint "poetry run poe test" package-sqlite'
env = { PYTHON_VERSION = "3.12" }
[tool.poe.tasks.test_dev]
help = "Quick run tests, with inotifywait and live reload. Useful for development."
cmd = 'tests/run_dev_tests.sh $database'
[[tool.poe.tasks.test_dev.args]]
name = "database"
default = "postgres"
help = "Database to run tests against (postgres, mysql, sqlite)"
options = ["-d", "--database"]