Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for python 3.12 #1255

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
dependencies: [normal]
database: [sqlite]
# Test other databases only with one version of Python (Debian buster has 3.7)
Expand Down Expand Up @@ -66,6 +66,9 @@ jobs:
- python-version: "3.11"
dependencies: minimal
database: sqlite
- python-version: "3.12"
dependencies: minimal
database: sqlite

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -100,4 +103,4 @@ jobs:
TESTING_SQLALCHEMY_DATABASE_URI: 'mysql+pymysql://root:ihatemoney@localhost:3306/ihatemoney_ci'
- name: Run Lint & Docs
run: tox -e lint_docs
if: matrix.python-version == '3.11'
if: matrix.python-version == '3.12'
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document describes changes between each past release.
## 6.1.2 (unreleased)


- Nothing changed yet.
- Add support for python 3.12 (#757)


## 6.1.1 (2023-10-04)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ highly encouraged to do so.

## Requirements

- **Python**: version 3.7 to 3.11.
- **Python**: version 3.7 to 3.12.
- **Backends**: SQLite, PostgreSQL, MariaDB (version 10.3.2 or above),
Memory.

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Some Paas (Platform-as-a-Service), provide a documentation or even a quick insta

«Ihatemoney» depends on:

- **Python**: any version from 3.7 to 3.11 will work.
- **Python**: any version from 3.7 to 3.12 will work.
- **A database backend**: choose among SQLite, PostgreSQL, MariaDB (>=
10.3.2).
- **Virtual environment** (recommended): [python3-venv]{.title-ref}
Expand Down
2 changes: 1 addition & 1 deletion ihatemoney/tests/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def api_add_member(self, project, name, weight=1):
def get_auth(self, username, password=None):
password = password or username
base64string = (
base64.encodebytes(f"{username}:{password}".encode("utf-8"))
base64.encodebytes(f"{username}:{password}".encode("utf-8")) # noqa: E231
.decode("utf-8")
.replace("\n", "")
)
Expand Down
4 changes: 2 additions & 2 deletions ihatemoney/tests/budget_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ def test_rss_feed(self):
<pubDate>Tue, 25 Jul 2023 00:00:00 +0000</pubDate>
</item>
</channel>
</rss>""" # noqa: E501
</rss>""" # noqa: E221, E222, E231, E501
assert resp.data.decode() == expected_rss_content

def test_rss_feed_history_disabled(self):
Expand Down Expand Up @@ -1865,7 +1865,7 @@ def test_rss_feed_history_disabled(self):
<pubDate>Tue, 25 Jul 2023 00:00:00 +0000</pubDate>
</item>
</channel>
</rss>""" # noqa: E501
</rss>""" # noqa: E221, E222, E231, E501
assert resp.data.decode() == expected_rss_content

def test_rss_if_modified_since_header(self):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py311,py310,py39,py38,py37,lint_docs
envlist = py312,py311,py310,py39,py38,py37,lint_docs
skip_missing_interpreters = True

[testenv]
Expand Down
Loading