3 Commits

Author SHA1 Message Date
b11519194d Add test dependencies to support testing on python 3.12 2023-10-13 16:19:44 -04:00
f6e3870067 Bump version to 1.3.1 2023-10-13 14:29:52 -04:00
e96999ed43 Add tests and classifiers for python 3.12
Update transient deps
2023-10-13 14:28:42 -04:00
6 changed files with 687 additions and 730 deletions

View File

@@ -24,6 +24,8 @@ jobs:
toxenv: py310
- version: "3.11"
toxenv: py311
- version: "3.12"
toxenv: py312
fail-fast: true
steps:
- name: Checkout

View File

@@ -49,11 +49,12 @@ import peewee_plus
### Constants
| `SQLITE_DEFAULT_PRAGMAS` | The default pragmas to use with an SQLite database
connection, taken directly from the
[Peewee docs](http://docs.peewee-orm.com/en/latest/peewee/database.html#recommended-settings)
| | `SQLITE_DEFAULT_VARIABLE_LIMIT` | The maximum number of variables an SQL query can use
when using SQLite |
`SQLITE_DEFAULT_PRAGMAS` - The default pragmas to use with an SQLite database connection,
taken directly from the
[Peewee docs](http://docs.peewee-orm.com/en/latest/peewee/database.html#recommended-settings).
`SQLITE_DEFAULT_VARIABLE_LIMIT` - The maximum number of variables an SQL query can use
when using SQLite
### Functions
@@ -67,8 +68,8 @@ without creating nested transactions
### Classes
`PathField` - A Peewee database field for storing
[pathlib.Path](https://docs.python.org/3/library/pathlib.html#pathlib.Path) objects,
optionally relative to a runtime value.
[Pathlib](https://docs.python.org/3/library/pathlib.html) objects, optionally relative to
a runtime value.
`PrecisionFloatField` - A Peewee database field for storing floats while specifying the
[MySQL precision parameters](https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html)
@@ -76,8 +77,7 @@ optionally relative to a runtime value.
`JSONField` - A Peewee database field for storing arbitrary JSON-serializable data
`EnumField` - A Peewee database field for storing
[`enum.Enum`](https://docs.python.org/3/library/enum.html#enum.Enum) objects by name
`EnumField` - A Peewee database field for storing Enums by name
`TimedeltaField` A Peewee database field for natively storing
[`datetime.timedelta`](https://docs.python.org/3/library/datetime.html#datetime.timedelta)

View File

@@ -33,7 +33,7 @@ import peewee
__title__ = "peewee-plus"
__version__ = "1.3.0"
__version__ = "1.3.1"
__license__ = "MIT"
__summary__ = "Various extensions, helpers, and utilities for Peewee"
__url__ = "https://github.com/enpaul/peewee-plus/"

1385
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "peewee-plus"
version = "1.3.0"
version = "1.3.1"
description = "Various extensions, helpers, and utilities for Peewee"
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
repository = "https://github.com/enpaul/peewee-plus/"
@@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Database",
"Typing :: Typed"
@@ -41,6 +42,8 @@ ruamel-yaml = {version = "^0.17.21", python = "^3.10"}
#
# https://github.com/python-poetry/poetry-plugin-export/issues/176
virtualenv = ">=20.15,<20.16"
setuptools = {version = "^68.2.2", python = "^3.12"}
pip = {version = "^23.2.1", python = "^3.12"}
[tool.poetry.group.ci.dependencies]
poetry = "^1.4.2"

View File

@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311}
py{37,38,39,310,311,312}
static
static-tests
security
@@ -19,6 +19,9 @@ commands =
--cov-config {toxinidir}/.coveragerc \
--cov-report term-missing
[testenv:.package]
basepython = python3.10
[testenv:static]
description = Static formatting and quality enforcement
basepython = python3.10