Skip to content

Commit

Permalink
feat: add official python 3.12 support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
IdoKendo authored Oct 18, 2023
1 parent 74b5688 commit 24b3cf2
Show file tree
Hide file tree
Showing 8 changed files with 560 additions and 555 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
experimental: [false]
include:
- python-version: "3.12-dev"
- python-version: "3.13-dev"
os: ubuntu-latest
experimental: true

Expand All @@ -41,7 +41,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}

- name: upload coverage to Codecov
if: "matrix.python-version == '3.11'"
if: "matrix.python-version == '3.12'"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
python-version: "3.12"

- name: Install poetry and dependencies
run: |
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

2023-10-18
==========

Added
-----

- Official support to Python 3.12.
- Experimental support to Python 3.13-alpha.

Security
--------

- Updated minimum version for many dependencies.

2023-05-24
==========

Expand Down
1,061 changes: 525 additions & 536 deletions poetry.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mysql-context-manager"
version = "0.2.0"
version = "0.2.1"
description = "Work with MySQL databases asynchronously, and in context."
license = "MIT"
authors = ["IdoKendo <ryuusuke@gmail.com>"]
Expand All @@ -10,22 +10,22 @@ repository = "https://github.com/IdoKendo/mysql-context-manager"

[tool.poetry.dependencies]
python = "^3.8"
databases = "^0.7"
PyMySQL = "^1.0"
aiomysql = "^0.1.1"
PyMySQL = "^1.1"
aiomysql = "^0.2"
databases = "^0.8"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
pytest = "^7.3"
pre-commit = "^3.3"
scriv = { extras = ["toml"], version = "^1.3" }
tox = "^4.5"
mypy = "^1.6"
pre-commit = "^3.5"
pytest = "^7.4"
pytest-asyncio = "^0.21"
pytest-mock = "^3.10"
pytest-cov = "^4.0"
mypy = "^1.3"
pytest-cov = "^4.1"
pytest-mock = "^3.11"
scriv = { extras = ["toml"], version = "^1.4" }
tox = "^4.11"

[tool.pytest.ini_options]
addopts = "--cov=mysql_context_manager --cov-report xml"
Expand Down
2 changes: 1 addition & 1 deletion src/mysql_context_manager/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pylint: disable=C0114,C0115,R0913
from __future__ import annotations

__version__ = "0.2.0"
__version__ = "0.2.1"

import contextlib
import json
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mysql_context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_version():
assert __version__ == "0.2.0"
assert __version__ == "0.2.1"


def test_connection_string():
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist =
py310,
py311,
py312,
py313,
lint,

[testenv]
Expand Down Expand Up @@ -33,5 +34,6 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint
3.12-dev: py312
3.11: py311
3.12: py312, lint
3.13-dev: py313

0 comments on commit 24b3cf2

Please sign in to comment.